Post by doktorek » Fri May 13, 2016 1:30 am

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

New member

Posts

Joined
Thu Apr 28, 2016 8:40 pm

Post by straightlight » Fri May 13, 2016 1:40 am

In admin/controller/catalog/product.php file,

find twice:

Code: Select all

'price'      => $result['price']
replace both with:

Code: Select all

'price'      => (float)$result['price'] ? $this->currency->format($result['price'], $this->config->get('config_currency')) : false,
This should resolved the problem.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by doktorek » Fri May 13, 2016 1:59 am

No, it didnt work. I tried so many different ways. But no change in Catalog>products

New member

Posts

Joined
Thu Apr 28, 2016 8:40 pm

Post by straightlight » Fri May 13, 2016 2:07 am

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by doktorek » Fri May 13, 2016 2:25 am

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.

New member

Posts

Joined
Thu Apr 28, 2016 8:40 pm

Post by straightlight » Fri May 13, 2016 5:05 am

The located lines may be in your VQMod / OCMod (XML) files.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by doktorek » Fri May 13, 2016 9:27 am

Ok. Im lost.

New member

Posts

Joined
Thu Apr 28, 2016 8:40 pm
Who is online

Users browsing this forum: No registered users and 12 guests