PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Coupon notification displaying currency as well as percent

s2Member Plugin. A Membership plugin for WordPress®.

Coupon notification displaying currency as well as percent

Postby nathardwick » September 28th, 2010, 4:29 am

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
User avatar
nathardwick
Registered User
Registered User
 
Posts: 25
Joined: August 8, 2010

Re: Coupon notification displaying currency as well as perce

Postby nathardwick » October 15th, 2010, 3:15 am

Any fix for this...? Or does anyone know where I can find ref in code so I can change it myself...?
User avatar
nathardwick
Registered User
Registered User
 
Posts: 25
Joined: August 8, 2010

Re: Coupon notification displaying currency as well as perce

Postby Jason Caldwell » October 23rd, 2010, 1:29 am

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 . ' )'; 
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron