WebSite X5Help Center

 
Axel  
Axel  
User

Question for experts : how to change currency on fly into e-Commerce part  en

Author: Axel  
Visited 1348, Followers 1, Shared 0  

Hello experts (JS, CS ....)

I would like to change the currency (of the total-amount) on fly into a project in the cart 

So when the cart displayed by example a total of 142,00 $ I would like to change the value into 152,00 Euros (+ currency convert)

I try to get the value of the amount with the variable [PRICE] used into the payment process, by a CSS code like:

:root {
--OriginePrice: [PRICE] ;
}

but in this case the value of OriginePrice is empty  if I try to display it with:

 content: var(--OriginePrice);

Any idea to get the PRICE value of the cart into a CSS variable or JS variable ?

foot-in-mouth

Cheers

https:wsx5.afsoftware.fr

Posted on the
2 ANSWERS
Incomedia
Stefano G.
Incomedia

Good day to you Axel

Even though the official guide mentions this [PRICE] parameter, it is only mentioned to be used in here, as you probably know:

For this reason, it is not guaranteed to be obtainable in order parts of the website as well, for which reason I would suggest trying to go a different way

As you know, unfortunately, the Staff cannot provide support for custom code but I will leave this topic open nonetheless

Thank you fo our understanding

Stefano

Read more
Posted on the from Stefano G.
Sinisa B.
Sinisa B.
User

@ Stefano

That is very interesting for ALL OF US that can not use PayPal in the local currency!
To be able to use PayPal and X5 features for digital goods selling - this should be done by Incomedia.

Incomedia - please give us the code for this OR - even better - update the program with the feature of currency converter on the fly. This will save as A LOT of headache regarding the payment getaway in the local currency!



@ Wsx5.afsoftware.fr  

Thank you for posting this!

Read more
Posted on the from Sinisa B.