Support

Home Forums Event Espresso Premium Product Surcharge Snippet

Product Surcharge Snippet

Posted: July 14, 2017 at 2:27 pm

Viewing 3 reply threads


kroskopf

July 14, 2017 at 2:27 pm

I’m having problems getting the Product Surcharge snippet to work (https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_ee_add_product_surcharge.php).

CODE:
I’ve taken the snippet and added it to a plugin called Event Espresso – Product Surcharge. I can tell the code is running because when this plugin is active I see additional lines on the payment summary page.

MODIFICATIONS:
The only changes I’ve made to bc_ee_add_product_surcharge.php is…

        'product_question_id'     => 60,
        'product_qty_question_id' => 61,

EE QUESTIONS / GROUP:
I have a question #60 T-Shirt Type and #61 T-Shirt Quantity.

These questions are in group Women’s Retreat

EE EVENT:
I’m asked the questions on the registration form for the event. (For testing, use the bottom ticket since it only has one attendee.)
https://www.chicagochurch.org/registration/2017-womens-retreat/

UNEXPECTED RESULT:
On the payment page there is a new line below the ticket selected:
Line Item: John Doe $0.00 252 $0.00
The new line does not have correct data.

I’ll send login details via premium support request.


Josh

  • Support Staff

July 14, 2017 at 3:47 pm

Hi Kurt,

There was actually some debug code that managed to get left in by mistake, and that’s been fixed in the snippet just now. Here’s a link to the line number that got fixed:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_ee_add_product_surcharge.php#L246

Since you have FTP access for your site you should be able to make the same change there.


kroskopf

July 14, 2017 at 3:53 pm

It appears to be working like a charm now! Thanks for your help!


Josh

  • Support Staff

July 14, 2017 at 4:28 pm

You’re welcome.

Viewing 3 reply threads

The support post ‘Product Surcharge Snippet’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso