|
|||||||
| General Questions Questions that don't fit elsewhere |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Zenner
Join Date: May 2007
Posts: 3
|
Hello guys
I need to increase 35% to all my products in zen_products Can you help with the script to used in mysql Please help.......... |
|
|
|
|
|
#2 |
|
Oba-san
Join Date: Sep 2003
Location: Ohio
Posts: 51,207
|
This is two step ...
Backup your database before doing this ... In the Tools ... Insert SQL Patch ... you can run the command: PHP Code:
NOTE: If you have attributes you have to look to see if you can use something similar for them as well ... NOTE: if you have Specials, you will need to update those as well but it depends on how your specials are made ...
__________________
Linda McGrath If you have to think ... you haven't been zenned ... Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here Are you using the latest? Perhaps you've a problem that's fixed in --> [Upgrade today: v1.3.8a] Officially PayPal-Certified! Just click here |
|
|
|
|
|
#3 |
|
Totally Zenned
Join Date: Mar 2004
Posts: 661
|
I'll thank you for that one!! Handy little tid-bit!
Marg |
|
|
|
|
|
#4 |
|
New Zenner
Join Date: May 2007
Posts: 3
|
Hello AJEH
your MYSQL script work very good......... thanks |
|
|
|
|
|
#5 |
|
Totally Zenned
Join Date: Feb 2007
Posts: 1,093
|
i have a post regarding inflation etc and it goes into a little more detail. if you search for inflation you should find it.
__________________
My Stores | Rubber Duck Bathrooms | HairOrder Please feel free to visit and comment. |
|
|
|
|
|
#6 | |
|
Zen Follower
Join Date: Jan 2008
Location: Memphis, USA
Posts: 125
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Zen Follower
Join Date: Jul 2004
Location: The Netherlands, Wierden
Posts: 410
|
Don't forget the products_price_sorter either with this
Code:
UPDATE products SET products_price_sorter = products_price_sorter * 1.35;
__________________
|
|
|
|
|
|
#8 |
|
Oba-san
Join Date: Sep 2003
Location: Ohio
Posts: 51,207
|
Wait ... don't do the Products Price Sorter in that method ...
![]() You want to use the updater in the Tools ... Store Manager ... as I mentioned above to do the fix on the products_price_sorter ... That price is not always the same as the products_price and updates to it need to be processed ... While a percentage change to both fields may "appear" to work, this is not always the case and will result in displays in price order to become jumbled ... It can work under "some" circumstances, however, the safe and sure way to update that field is to use the Update in the Store Manager and do it the right way ...
__________________
Linda McGrath If you have to think ... you haven't been zenned ... Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here Are you using the latest? Perhaps you've a problem that's fixed in --> [Upgrade today: v1.3.8a] Officially PayPal-Certified! Just click here |
|
|
|
|
|
#9 |
|
Zen Follower
Join Date: Oct 2006
Location: At Home
Posts: 370
|
If I want to increase the price to 4%, is this the right setting?
PHP Code:
|
|
|
|
|
|
#10 |
|
Zen Follower
Join Date: Jan 2009
Posts: 175
|
No, this is:
Code:
UPDATE products SET products_price = products_price * 1.04;
__________________
data_digger, Query Cache v1.5 Reduce query count by 80% | Randomized Tests www.data-diggers.com |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Product price automatically increase | yonghs | Setting Up Categories and Products | 3 | 9th February 2009 05:57 PM |
| Storewide price increase | JMcGov | General Questions | 2 | 31st May 2008 01:04 AM |
| Price increase to attributes | trueblue | Attributes - Product Options | 12 | 23rd October 2006 10:00 AM |