Jump to content
shacker

[TUTORIAL] Change currency in order step

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More