Jump to content

[TUTORIAL] Change currency in order step


shacker

Recommended Posts

A customer had two coins in his store, dollars and Argentine peso. The default currency is pesos, but I wanted the checkout to be dollars. To do this we edit the file classes / Tools.php. The function we are going to edit is the displayPrice that looks like this:

currency1.jpg

And we modify the code marked by this:

currency2.jpg

== 'order' specifies that the currency changes when the user is in the checkout

(int) 1 is the id of currency 1 and (int) 2 is the id of currency 2.

Then we will delete the file class_index.php from the cache folder so that the changes are visible.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...