Jump to content

Need helps from Prestashop Core developer


Recommended Posts

Hello folks
As i mentioned at the previous topic
I am using Prestashop for a Vietnamese Project but having a problem when add and display price of each product
I created VND Currency and set them as default. When i create a product with the price is 15000000 it always converts to 9999999. You can see demo here

- Before posting the price : http://beetbe.com/img1.png

- After posting the price : http://beetbe.com/img2.png

The price is always being converted to 1000000 at the Back-end and font-end of the website


It's amazing that the problem not appears at my localhost it only appears on Server and i don't know why

Anyone here or PS developers could give me solution or indicate to me the function that uses for convert functionality?

Thank you very much

11363_0rnwlTibd1XPNaYWrMeD_t

Link to comment
Share on other sites

It is a good idea to describe the problem in the subject when you post.

I can't see it will ever work. The price field in the database is defined as decimal(13,6). If your prefix is ps_ you can run:

ALTER TABLE `ps_product` CHANGE `price` `price` DECIMAL( 17, 2 ) NOT NULL DEFAULT '0.000000';
ALTER TABLE `ps_product` CHANGE `wholesale_price` `wholesale_price` DECIMAL( 17, 2 ) NOT NULL DEFAULT '0.000000';

from phpMyAdmin. You have to adjust fields in the tables delivery, discount, discount_quantity, group, orders, order_detail and order_discount as well.

/Kjeld

Link to comment
Share on other sites

No Presta-dyr! I just use 1 database for Localhost and Server but the just have problem with Server
I run the query as you mentioned above but it's error
"#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '’0.000000’' at line 1 "

Link to comment
Share on other sites

×
×
  • Create New...