latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Currency symbol in welcome email

Home Forums Community Forum Currency symbol in welcome email

This topic contains 4 replies, has 3 voices. Last updated by  Robin Miller 3 years ago.

Topic Author Topic
Posted: Monday Dec 30th, 2013 at 9:46 am #62247
Robin Miller
Username: ilmar

My site accepts payment in USD, GBP or EUR. I have a PayPal Proform set up for each of these. However, although the correct amount is charged in the correct currency, the welcome email to the user always uses the dollar sign for the currency. So for example I get:

Thanks Blahdeblah! Your membership has been approved.

Join [MySite] for only £9.99

Subscr. ID: [subscr_id]
Charges today: $9.99
Recurring charges: $9.99 / yearly

Your Username/Password will arrive shortly, in a separate email. If you have any
trouble, please feel free to contact us.

Best Regards,
[MySite]

How can I fix it so that the correct currency symbol is used?

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Tuesday Dec 31st, 2013 at 5:31 am #62292

The $ symbol is set in s2Member > PayPal Options > Signup Confirmation Email:

Subscr. ID: %%subscr_id%%
Charges today: $%%initial%%
Recurring charges: $%%recurring/regular_cycle%%

I haven’t yet found a way to change it on-the-fly so the easiest option would be to remove the currency symbol all together.

Posted: Wednesday Jan 1st, 2014 at 8:50 am #62338
Jim Sutton
Username: jsutton

I am not a programmer but two ideas to try occur to me:

Idea 1) use HTML code for Pound Sterling sign “£” or “£” in the S2Member code referenced above.
Idea 2) use GBP instead of the $ in the S2Member code referenced above.

As in ” Recurring charges: £%%recurring/regular_cycle%%”
or
” Recurring charges: GBP%%recurring/regular_cycle%%”

Maybe one of these will work.

Posted: Wednesday Jan 1st, 2014 at 10:01 am #62341

Idea 1) use HTML code for Pound Sterling sign “£” or “£” in the S2Member code referenced above.
Idea 2) use GBP instead of the $ in the S2Member code referenced above.

Both of those will work, but Robin wants it to automatically change to USD, GBP or EUR based on the customer’s location.

I haven’t watched it but have you tried @Bruce’s video on Advanced Email Editing? That might have your answer?

Posted: Friday Jan 3rd, 2014 at 9:00 am #62378
Robin Miller
Username: ilmar

Thanks, the PHP code in the advanced email editing is what I needed. I’ve done this:

<?php 
$amount = $paypal["mc_amount3"];
if ($paypal["mc_currency"] == "GBP") {
$symbol = "£";
} else if ($paypal["mc_currency"] == "USD") {
$symbol = "$";
} else if ($paypal["mc_currency"] == "EUR") {
$symbol = "€";
}

$charge = $symbol.$amount;

?>

which seems to work nicely.

Viewing 4 replies - 1 through 4 (of 4 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.