Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Show currency symbol after the amount
Tagged: currency symbol
- This topic has 8 replies, 6 voices, and was last updated 5 years, 8 months ago by admin.
-
AuthorPosts
-
June 8, 2010 at 8:00 am #1333rickfalkMember
Hi,
for swedish currency you have the currency symbol after the amount, like 45kr. In wp-estore cart it is displayed like kr45.
Is there any way to change so that i get the currency symbol after the amount?
June 8, 2010 at 2:57 pm #21506rickfalkMemberIssue solved!
Replaced the following line in the “wp_eStore1.php” file:
return $symbol.number_format($price, 2, $decimal, $thousands_sep);
with the following
return number_format($price, 2, $decimal, ',') . $symbol;
November 25, 2010 at 12:17 pm #21507AronDMemberHi,
In which file did you do that?
Thank you.
November 26, 2010 at 12:17 am #21508amin007ParticipantIt is in the “wp_eStore1.php” file.
November 26, 2010 at 1:16 pm #21509AronDMemberI changed it, refreshed the page, but it’s still the same.
June 23, 2011 at 10:35 am #21510SusnosMemberHi, I’m from sweden too and did that change to the wp_eStore1.php, worked perfectly, thank you. But I’m going to use variations and the currency symbol in that field is still before the price. Any idea how to fix this too? I posted this question togetter with another post and got an uppdate, but still the currency symbol is at the wrong place, but love that you can specyfy what to have in “Variation Addition Symbol” instead of just “+”
Trouble selling both digital and non-digital products at the same time
So is there a way to also get the symbol right in the variations fields?
June 24, 2011 at 1:11 am #21511amin007ParticipantI have done another build where I made it so the variation prices also use that function to display the amount and the currency symbol. Please get this build from here and then do the change mentioned in the above post and your variation should display the currency symbol on the right:
March 27, 2019 at 2:28 pm #21512hParticipantHi,
I´ve searched for the following code: return $symbol.number_format($price, 2, $decimal, $thousands_sep);
…in the wp_eStore1.php file but without any success. I´ve also tried to choose “Right” under the Dashboard > WP eStore > Advanced Settings > Currency Position. But still the buyer body email is sent with the currency symbol to the left of the amount. Im referring to the mail merge tag called {product_details}. The currency code is shown to the right as I want it. But the currency symbol is still to the left of the amount.
What has changed since 2012?
Best regards,
H
March 28, 2019 at 6:55 am #21513adminKeymasterThere is a settings option for this. Look in the following settings interface
eStore Settings -> Advanced Settings -> Price Display Settings
-
AuthorPosts
- You must be logged in to reply to this topic.