I have searched these forums and all solutions are for the OC1.5. I have a 2.2 and editing the files doesnt do much the way they show it. Was anybody successful at it with OC2.2? Im talking about displaying only 2 decimal places in admin. It displays fine on the User front Page with 2 decimals (by changing localization settings) but in admin/products - it still shows 4 zeros. I want it down to 2 zeros.
Thanks
Thanks
In admin/controller/catalog/product.php file,
find twice:
replace both with:
This should resolved the problem.
find twice:
Code: Select all
'price' => $result['price']
Code: Select all
'price' => (float)$result['price'] ? $this->currency->format($result['price'], $this->config->get('config_currency')) : false,
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Are you using any contributions from XML or from the modifications folder? If so, these changes needs to be done from those locations if no effect has been taken from the core file itself.
Also make sure that you modify these readings from the same store folder under your FTP / File Manager console.
Also make sure that you modify these readings from the same store folder under your FTP / File Manager console.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I dont really understand what you mean by "contributions from xml". I have a few vqmods and ocmods. 2 templates, 2 stores. But only one admin. All I do is edit the files via FTP and then on the backend I just refresh admin>products page. Im not to open cart so dont assume to much
Should I edit the same thing in admin/view/template/catalog/product_list.tpl ? Would it be all the same?
I tried a few of these things from the oc1.5 forum but not much changed.
Should I edit the same thing in admin/view/template/catalog/product_list.tpl ? Would it be all the same?
I tried a few of these things from the oc1.5 forum but not much changed.
The located lines may be in your VQMod / OCMod (XML) files.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 41 guests