Support

Home Forums Event Espresso Premium Discount Code Decimal Places

Discount Code Decimal Places

Posted: May 2, 2014 at 10:05 am


N A Coleman

May 2, 2014 at 10:05 am

Wordpress 3.8
Event Espresso – 3.1.36.1.P Get Version 3.9

Plugins
Event Espresso – Custom Template Display
Event Espresso – Multi Event Registration
Event Espresso – Ticketing
Event Espresso API Plugin

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.

Thanks
Anthony


Josh

  • Support Staff

May 5, 2014 at 9:27 am

Hi Anthony,

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.

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.

Event Espresso