Get the book

Go Back   Zen Cart Support > General Questions > General Questions

General Questions Questions that don't fit elsewhere

Reply
 
Thread Tools Display Modes
Old 10th November 2007, 05:53 PM   #1
genesis@genesissyste
New Zenner
 
genesis@genesissyste's Avatar
 
Join Date: May 2007
Posts: 3
Default Increase price on all products universally?

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..........
genesis@genesissyste is offline   Reply With Quote
Old 10th November 2007, 06:40 PM   #2
Ajeh
Oba-san
 
Ajeh's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 51,207
Default Re: Increase price on zen_products

This is two step ...

Backup your database before doing this ...

In the Tools ... Insert SQL Patch ... you can run the command:
PHP Code:
UPDATE products SET products_price products_price 1.35
Then go to the Tools ... Store Manager ... and run the Update Products Price Sorter ...

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
Ajeh is offline   Reply With Quote
Old 11th November 2007, 11:51 PM   #3
Marg
Totally Zenned
 
Marg's Avatar
 
Join Date: Mar 2004
Posts: 661
Default Re: Increase price on zen_products

I'll thank you for that one!! Handy little tid-bit!
Marg
Marg is offline   Reply With Quote
Old 12th November 2007, 01:26 PM   #4
genesis@genesissyste
New Zenner
 
genesis@genesissyste's Avatar
 
Join Date: May 2007
Posts: 3
Default Re: Increase price on zen_products

Hello AJEH

your MYSQL script work very good.........

thanks
genesis@genesissyste is offline   Reply With Quote
Old 12th November 2007, 05:31 PM   #5
kitcorsa
Totally Zenned
 
Join Date: Feb 2007
Posts: 1,093
Default Re: Increase price on zen_products

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.
kitcorsa is offline   Reply With Quote
Old 17th March 2008, 09:31 PM   #6
coucho
Zen Follower
 
coucho's Avatar
 
Join Date: Jan 2008
Location: Memphis, USA
Posts: 125
Default Re: Increase price on zen_products

Quote:
Originally Posted by Ajeh View Post
This is two step ...

Backup your database before doing this ...

In the Tools ... Insert SQL Patch ... you can run the command:
PHP Code:
UPDATE products SET products_price products_price 1.35
Then go to the Tools ... Store Manager ... and run the Update Products Price Sorter ...

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 ...
If I need to decrease prices by 5% do I change the 1.35 referenced in the quote to 0.95?
coucho is offline   Reply With Quote
Old 6th September 2008, 12:46 PM   #7
raimond
Zen Follower
 
Join Date: Jul 2004
Location: The Netherlands, Wierden
Posts: 410
Default Re: Increase price on zen_products

Don't forget the products_price_sorter either with this
Code:
UPDATE products SET products_price_sorter = products_price_sorter * 1.35;  
raimond is offline   Reply With Quote
Old 6th September 2008, 10:54 PM   #8
Ajeh
Oba-san
 
Ajeh's Avatar
 
Join Date: Sep 2003
Location: Ohio
Posts: 51,207
Default Re: Increase price on zen_products

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
Ajeh is offline   Reply With Quote
Old 28th January 2009, 02:07 PM   #9
miles
Zen Follower
 
Join Date: Oct 2006
Location: At Home
Posts: 370
Default Re: Increase price on zen_products

If I want to increase the price to 4%, is this the right setting?
PHP Code:
UPDATE products SET products_price products_price 0.04
miles is offline   Reply With Quote
Old 28th January 2009, 02:07 PM   #10
data_digger
Zen Follower
 
Join Date: Jan 2009
Posts: 175
Default Re: Increase price on zen_products

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
data_digger is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 12:49 PM.

Learn tips, tricks & secrets for your Zen Cart™
Sign up for our FREE Newsletter

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content and Graphics Copyright (c) 2006, 2007, 2008, 2009, 2010 Zen Ventures, LLC - all rights reserved
Get Zen Cart E-Commerce Shopping Cart at SourceForge.net. Fast, secure and Free Open Source software downloads