Martin_S Posted June 18, 2010 Share Posted June 18, 2010 I want to change prices for all product in my shop, but I want to raise them, not lower them. How to do that?? Lets say I need 6% price increase and there are over 300 products in the catalog. I have PS 1.2.5.0.thanks Link to comment Share on other sites More sharing options...
Martin_S Posted June 18, 2010 Author Share Posted June 18, 2010 No solution for this? Link to comment Share on other sites More sharing options...
rocky Posted June 19, 2010 Share Posted June 19, 2010 It is not possible in the Back Office. The only way is to run an SQL query like this: UPDATE `ps_product` SET `price` = `price` + (`price` * 0.06) This code will increase the price of all products by 6%. Change ps_ to your database prefix. Remember to back up the ps_product table before executing the query in case anything goes wrong. Link to comment Share on other sites More sharing options...
Martin_S Posted June 19, 2010 Author Share Posted June 19, 2010 It is not possible in the Back Office. The only way is to run an SQL query like this: UPDATE `ps_product` SET `price` = `price` + (`price` * 0.06) This code will increase the price of all products by 6%. Change ps_ to your database prefix. Remember to back up the ps_product table before executing the query in case anything goes wrong. Isnt it possible with Sales & Discounts module?? anyway thanks Link to comment Share on other sites More sharing options...
rocky Posted June 19, 2010 Share Posted June 19, 2010 I don't think any of the modules that come with PrestaShop let you increase all prices at once. I'm not aware of any "Sales & Discounts module". Do you have a link to this module? Link to comment Share on other sites More sharing options...
Martin_S Posted June 19, 2010 Author Share Posted June 19, 2010 I don't think any of the modules that come with PrestaShop let you increase all prices at once. I'm not aware of any "Sales & Discounts module". Do you have a link to this module? I mean this one:http://www.prestashop.com/forums/viewthread/43988/#195007there is a way to set discounts for all products.. not sure if I can set a price increase though.. Link to comment Share on other sites More sharing options...
UKclearancecentre Posted July 21, 2010 Share Posted July 21, 2010 Incase you want to change it back to the original values here the code to do that also UPDATE `ps_product` SET `price` = `price` - (`price` * 0.06) Link to comment Share on other sites More sharing options...
Mikael Bellina Posted July 21, 2010 Share Posted July 21, 2010 Hi,There is this module if you want : http://www.prestastore.com/bulk-update/168-quick-bulk-update-augmentation-prix.htmlBest regards Mikaël Link to comment Share on other sites More sharing options...
vince123 Posted July 22, 2010 Share Posted July 22, 2010 thanks for #7 Link to comment Share on other sites More sharing options...
UKclearancecentre Posted July 22, 2010 Share Posted July 22, 2010 I realised my code to change it back after increasing it is not correct as it reduces the final price by 6% so the prices will end up wrongEg you increase a product costing 100 original by 6% the new price would be 106But using the code i gave it would deduct 6% of 106 off the price which would give you an price of 99.37 instead of the 100 you started with. Im sure there is a way to work this out but my sql skills arent up to the task im afraid. Link to comment Share on other sites More sharing options...
Martin_S Posted August 27, 2010 Author Share Posted August 27, 2010 Hi,There is this module if you want : http://www.prestastore.com/bulk-update/168-quick-bulk-update-augmentation-prix.htmlBest regards Mikaël Does it allow me to restore the original prices as they were before?Also, if I change the prices will that affect the price of currently placed orders?? Link to comment Share on other sites More sharing options...
rocky Posted August 28, 2010 Share Posted August 28, 2010 My math skills aren't as good as they used to be, but I think this SQL query will undo the percentage increase. Make a backup of your ps_product table, then try running the following query to undo the 6% increase: UPDATE `ps_product` SET `price` = `price` / 1.06 Link to comment Share on other sites More sharing options...
Martin_S Posted August 28, 2010 Author Share Posted August 28, 2010 My math skills aren't as good as they used to be, but I think this SQL query will undo the percentage increase. Make a backup of your ps_product table, then try running the following query to undo the 6% increase: UPDATE `ps_product` SET `price` = `price` / 1.06 yeah, this will work and same for the increase: UPDATE `ps_product` SET `price` = `price` * 1.06 Link to comment Share on other sites More sharing options...
Martin_S Posted August 29, 2010 Author Share Posted August 29, 2010 It is not possible in the Back Office. The only way is to run an SQL query like this: UPDATE `ps_product` SET `price` = `price` + (`price` * 0.06) This code will increase the price of all products by 6%. Change ps_ to your database prefix. Remember to back up the ps_product table before executing the query in case anything goes wrong. Can you please tell me if this also changes the product prices in the active orders that were aleady places but not processed yet? Link to comment Share on other sites More sharing options...
rocky Posted August 30, 2010 Share Posted August 30, 2010 From looking at the database, it would appear that those prices won't change. Once an order is placed, the product prices and order total are hardcoded in the ps_order_detail table instead of read from the ps_product table. Link to comment Share on other sites More sharing options...
Martin_S Posted August 30, 2010 Author Share Posted August 30, 2010 From looking at the database, it would appear that those prices won't change. Once an order is placed, the product prices and order total are hardcoded in the ps_order_detail table instead of read from the ps_product table. Thanks, I will try that. Link to comment Share on other sites More sharing options...
Martin_S Posted September 1, 2010 Author Share Posted September 1, 2010 From looking at the database, it would appear that those prices won't change. Once an order is placed, the product prices and order total are hardcoded in the ps_order_detail table instead of read from the ps_product table. One more question.. If I delete a product that has been ordered by a customer from my catalog, will that product stay in his order so I can process it? According to this reply, it should be so, but I am not sure about the product pictures.thank you Link to comment Share on other sites More sharing options...
rocky Posted September 2, 2010 Share Posted September 2, 2010 I haven't tried it, but looking at the ps_order_detail table, it seems the product name, price, quantity discount, EAN13, reference, supplier reference, weight, tax name, tax rate, ecotax, download hash, download number and download deadline become hardcoded with the order. All other product information is linked by ID, so images and other information will be lost when deleting the product. Link to comment Share on other sites More sharing options...
SonnyBoyII Posted January 5, 2011 Share Posted January 5, 2011 Can I rise prices by reimporting CSV all products with new prices? ( import just product_id, name, price ) Link to comment Share on other sites More sharing options...
rocky Posted January 5, 2011 Share Posted January 5, 2011 Yes, that should work. Link to comment Share on other sites More sharing options...
leeburridge Posted September 14, 2011 Share Posted September 14, 2011 Thanks - this thread just saved me hours and hours of work Link to comment Share on other sites More sharing options...
avantec Posted April 19, 2012 Share Posted April 19, 2012 If you have attributes on your products, with different prices, you should also change the prices in `ps_product_attribute` UPDATE `ps_product_attribute` SET `price` = `price` + (`price` * 0.06) Link to comment Share on other sites More sharing options...
wael_hossam Posted June 7, 2016 Share Posted June 7, 2016 Hello I used this update query and I see the price changed inside the phpMyAdmin and also increased inside the Prestashop SQL Manager in the admin interface. However strange enough I see the price did not change in the Product catalog and not changed on the front end page. Is there any explanation for that? Link to comment Share on other sites More sharing options...
Recommended Posts