soleane85 Posted December 16, 2020 Share Posted December 16, 2020 Members 1 8 posts Report post Posted just now Hello everyone! I don't find out any answer to my problem. I want to show the price in UNIT PRICE (KG or LB) but : 1- I can only put the price in Tax Excluded in the BO (but it's Okay) 2 - Then, when we go to the front office, we can see the price with about 6 decimals!!! I found solutions for the "final price" (the amount that you really pay the product). But my problem is not this price. I found solutions in general administration too but it's not for the UNIT PRICE and I still have the price per weight with 6 decimals. Any ideas? See attached files to understand better my problem. Thanks for your solutions PS: Sorry for my english. Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2020 Share Posted December 16, 2020 (edited) The unit price without VAT is given for the product. The customer sees the price including VAT. Where is the problem ? Edited December 16, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
soleane85 Posted December 16, 2020 Author Share Posted December 16, 2020 Yes, The problem is not the unit price without VAT. The problem is that I want the following format of number in the FRONT END: 11.18 I don't want 11.183001 Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2020 Share Posted December 16, 2020 (edited) Tools::ps_round(Tools::displayPrice (..... ..),2) Edited December 16, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2020 Share Posted December 16, 2020 ps_round(value, decimal) Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2020 Share Posted December 16, 2020 If you give me the whole code, I'll edit it. Link to comment Share on other sites More sharing options...
soleane85 Posted December 16, 2020 Author Share Posted December 16, 2020 I don't find the ps_round Nothing in PhPMyAdmin and nothing in FTP. Where is it? Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2020 Share Posted December 16, 2020 Oh no, I'm sorry, but you obviously don't know what's going on. You had to make adjustments to your layout template. So you have to change the code there. If you don't have an original PrestaShop layout template, then I can't help. Do you have no knowledge of Prestashop? Link to comment Share on other sites More sharing options...
soleane85 Posted December 16, 2020 Author Share Posted December 16, 2020 I don't have knowledge of Prestahop. It's a purchase template but for prices I don't use options of the purchase template It's the WAREHOUSE theme purchased on themeforest.net Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2020 Share Posted December 16, 2020 (edited) Ok, and why are you solving it on the Prestashop forum and not solving it with the template supplier? They use their own Javascripts and modules, which we will not affect. It was nice of you to contact the Prestashop forum, but it is not possible to reply to modules or topics that are not original. Edited December 16, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
soleane85 Posted December 16, 2020 Author Share Posted December 16, 2020 Ok. I thought here all questions related to prestashop where available. I do my catalog with the original part of prestashop, not with theme's options. Link to comment Share on other sites More sharing options...
soleane85 Posted December 16, 2020 Author Share Posted December 16, 2020 (edited) I found the price_round_mode with value 4 in PS_configuration. I don't know wich value I have to put. Edited December 16, 2020 by soleane85 (see edit history) Link to comment Share on other sites More sharing options...
soleane85 Posted December 16, 2020 Author Share Posted December 16, 2020 I found it!! It was in PS_currency I had to modify the precision from 6 to 2! What a difficulty when you are a newbie. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now