In developing of online stores, developers faced with need to implement function that will allow admin to enter prices in one currency and show the prices to customers on online store frontend in other one. Often the price of the goods in the back-end set in dollars or euros, and users need to withdraw or ruble or the hryvnia.
The problem is that Opencart has a single setting for the whole store and prevents setting different currencies for admin and customers setcion. Author’s extension for OpenCart Nikita_Sp Frontend Currency allow you to solve this problem and set different currency for your customers in your online store.
Installation and setup of this extension is very simple. You just need to follow a few steps:
- upload files from upload folder to your store root;
- go to Opencart Admin – System – Settings – Edit – Localisation tab, and choose your currency for new option.
- change index.php file in your store root folder;
That is how it looks like (sorry for russian screens):
Modification of index.php file in the root are quite simple, just find (~204 line):
$registry->set('currency', new Currency($registry));
And paste after it:
// Nikita Spivak MOD FOR DEFAULT CURRENCY SET $registry->get('currency')->set($config->get('config_frontend_currency'));
Now you can set any currency for customers part of your online store on Opencart, and separately for admin part.
In the archive you can find standard complexion of my extensions: eng and rus screenshots, eng and rus README files, files for uploading. No file will be overwritten on uploading.
Thank you for your trust, don’t forget to subscribe, rate and share this page, because through your likes and shares I can see that this work is not in vain, and comments give me inspiration to create new extensions and to update existing ones!
Also I will be glad to hear your comments on this and other of my modules, as well as suggestions for improvement and ideas for writing new modules!
Download FrontEnd Currency by Nikita Spivak для Opencart 1.5.x: nikita_sp-fronend-currency