Page 1 of 1

Coupon notification displaying currency as well as percent

PostPosted: September 28th, 2010, 4:29 am
by nathardwick
When I apply a coupon code of 50%, on the green notification bar it's stating 'Coupon applied. £50% off.' How do I remove the currency as it shouldn't be there - it's a percentage.

Thanks,
N

Re: Coupon notification displaying currency as well as perce

PostPosted: October 15th, 2010, 3:15 am
by nathardwick
Any fix for this...? Or does anyone know where I can find ref in code so I can change it myself...?

Re: Coupon notification displaying currency as well as perce

PostPosted: October 23rd, 2010, 1:29 am
by Jason Caldwell
Hi Nathan. Thanks for your patience.
~ Apologies for the delay.


I'm logging this for a change in the next official release of s2Member Pro. Until then, you can remove the percentage sign by modifying line #'s 410 and 411 inside this file:
/s2member-pro/includes/functions/paypal-utilities.inc.php

Change this:
Code: Select all
$response = '<div>Coupon applied. <strong>' . $cs . number_format ($coupon["percentage"], 0) . '% off</strong>. ( New ' . $tr . ': <strong>' . $cs . $ra . $tx . '</strong> )</div>';
$desc = 'COUPON ' . $cs . number_format ($coupon["percentage"], 0) . '% off. ( New ' . $tr . ': ' . $cs . $ra . $tx . ' )'; 

To this instead:
Code: Select all
$response = '<div>Coupon applied. <strong>' . number_format ($coupon["percentage"], 0) . '% off</strong>. ( New ' . $tr . ': <strong>' . $cs . $ra . $tx . '</strong> )</div>';
$desc = 'COUPON ' . number_format ($coupon["percentage"], 0) . '% off. ( New ' . $tr . ': ' . $cs . $ra . $tx . ' )';