Hi there
I have modified the /includes/process-registration/add_attendees_to_db.php to give me a discount code box with an apply code button. There are two rows showing discounts, the top row shows coupon code discounts which is formatted to 2 decimal places. The row below shows total discounts also formatted to 2 DP. However when I click the apply button, the total discounts row gets formatted to 0 DP and the Total Amount Due row gets formatted to 3 DP.
For example if the price is £10.00 and I enter a 25% discount, the top row shows ‘-2.50’ (correct), the second row shows ‘£2′(incorrect) and the last row shows ‘£7.5′(incorrect)
This means that when I click through to paypal it doesn’t apply the proper discount. I’m happy to send you the code for this page or send a screenshot.
It turns out that we do not support modifying the code in /includes/process-registration/add_attendees_to_db.php to include a promotion code box. The supported promo code box appears on the registration and/or multi-registration page.
Viewing 1 reply thread
The support post ‘Discount Code Decimal Places’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.