Wholesale Reduction of Prices

  • dlaughter
  • Topic Author
11 years 11 months ago #82708

I saw a sql command on here earlier to increase all prices at one, which was UPDATE #__hikashop_price SET price_value = price_value * 1.35;

If I wanted to reduce all prices at once, say by 33%, would it be UPDATE #__hikashop_price SET price_value = price_value / 0.33;?

Please Log in or Create an account to join the conversation.

  • Posts: 260
  • Thank you received: 25
11 years 11 months ago #82712

An easier and a lot safer, would be to export products to csv, increase/decrease price, then do an iport; either the cvs back again or just via text import of the product name, prod code and new price.


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Please Log in or Create an account to join the conversation.

  • dlaughter
  • Topic Author
11 years 11 months ago #82728

I tend to agree and that's the way I went. Much more tedious but I keep my master csv accurate, then re-import it.

I think I found the correct query though, I believe to reduce all prices by 33%, it would be UPDATE #_hikashop_price SET price = price*.66;

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #82773

You will have to use: UPDATE #_hikashop_price SET price_value = price_value*0.66;

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum