Forums / General Questions / Global price change?

Global price change?

Started by nick_alynn on 9 Oct 2008, 12:36 AM · Views: 16,232

Results 21 to 40 of 53
21 Jan 2010, 11:27 PM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Global price change?

I would have to sit down and write all of the code to manage a Category update of all Products to update the Attribute Price for just the one Category ...

This is not just something that can be thrown together in a minute or two ... :unsure:

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 to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Jan 2010, 6:49 PM
#22
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Global price change?

UPDATE products SET products_price= products_price -5.00 where manufacturers_id = "50";

why dosn't work?

29 Jan 2010, 8:52 AM
#23
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Global price change?

UPDATE products SET products_price= products_price +5.00 WHERE (manufacturers_id LIKE "27");

or this?

29 Jan 2010, 2:29 PM
#24
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Are you getting any error messages?

If I use:

UPDATE products SET products_price= products_price -5.00 where manufacturers_id = "50";

all of my Prices in the products table in the field products_price will be reduced by 5.00 for manufacturers_id 50 ...

NOTE: after running a change like this you should go to the Tools ... Store Manager ... and run an Update on the Products Price Sorter ...

The only reasons this would not change your the Price of your Products would be:

1 You are lowering the products_price in the products table but in the wrong database

2 Your Products are all Priced by Attribute and this means the prices are not in the products table

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 to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Jan 2010, 3:24 PM
#25
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Global price change?

I didn't get any error message, but didn't changed the price :(

29 Jan 2010, 4:54 PM
#26
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Look at the two files, on the server for:
/includes/configure.php
/admin/includes/configure.php

Are they both using the same database?

Does your database use a prefix on the tables?

Are you apply this change in the Tools ... Install SQL Patches ... or via phpMyAdmin ...

Are you sure that your manufacturers_id is 50 ...

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 to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Feb 2010, 12:04 PM
#27
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Global price change?

Ajeh:

Look at the two files, on the server for:
/includes/configure.php
/admin/includes/configure.php

Are they both using the same database?

Does your database use a prefix on the tables?

Are you apply this change in the Tools ... Install SQL Patches ... or via phpMyAdmin ...

Are you sure that your manufacturers_id is 50 ...

sorry I don't know how can I check the two configure use same database.

I use admin tools install SQL patches

1 Feb 2010, 3:28 PM
#28
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Using your FTP program, you should be able to download, from the server, the current configuration files from:
/includes/configure.php
/admin/includes/configure.php

and compare them to see that both are configured to use the same database etc.

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 to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Feb 2010, 10:47 AM
#29
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Global price change?

my database included a manufacturers/manufacturers_name/ table
and the brand names here are.

2 Feb 2010, 11:32 AM
#30
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Global price change?

Succefull!

I use wrong id.

Thanks for all help.

2 Feb 2010, 2:51 PM
#31
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Thanks for the update that you have this working now and that the problem was related to using the incorrect id ... :smile:

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 to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Feb 2010, 6:00 PM
#32
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Global price change?

What about just change price for certain category?
All my waterslide sub-categories decals are same price under Main Category "Waterslide Decals"

is there a simple way to change the price without change one product at time?

Thank you for your time.

17 Feb 2010, 6:55 PM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Do you use Linked Products?

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 to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Feb 2010, 7:24 PM
#34
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Global price change?

No, I did not.

there are many sub decal categories under Main "Water slide decals" categories, but I did not link them because they are different designs, but they are all same price.

17 Feb 2010, 7:33 PM
#35
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

A global price change using a SELECT statement needs to be able to use something common about the Products ...

Usually, this is easily done with the manufactuers_id or the master_categories_id ...

Products that are in the same Top Level Category have different master_categories_id as the master_categories_id is the immediate categories_id that the Product belongs to ...

So if you have a Top Level or Main Category called Water Decals with categories_id 27 ... then sub-categories below that that hold Products, you need to know those sub-categories categories_id that are the master_categories_id of the Product ...

If you have 7 sub-categories, there will be 7 master_categories_id for these products ...

If you are still unsure about the master_categories_id then you can edit a Product to see what it is ...

Does that make sense to you on what categories_id you need to find for these Products in order to run a SELECT statement to update the prices?

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 to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Feb 2010, 9:52 PM
#36
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Global price change?

I think so,
My Main (top) Waterslide decal id is 1, and sub-categories (master) id are 33, 47, 3, 4, 5, 34, 6, 37, 39, 40 41, and 38 (I found these ID by go to Admin > catalog > categories/products, and they are on left side with subcategory name)

So I would need to Run SELECT statement to globally change my prices by go to "Install MySQL patches"?

could you show me the SELECT statement that I do to run...
Thank you so much for your time!

18 Feb 2010, 12:31 AM
#37
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

That is correct, each categories_id that you see in the master_categories_id would need to have this statement run:

UPDATE products SET products_price = XX.XX WHERE master_categories_id = YY;

NOTE: Backup your database before using this and replace the XX.XX with the Product Price for all Products that are in the master_categories_id where YY is the master_categories_id such as 33, 47, 3, 4, 5, 34, 6, 37, 39, 40, 41, and 38 ...

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 to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Feb 2010, 1:06 AM
#38
missinglife avatar

missinglife

Zen Follower

Join Date:
Apr 2009
Location:
Portland, OR
Posts:
104
Plugin Contributions:
0

Re: Global price change?

Thank you so much,

I am going to back up my database first before I run this statement. will let you know how it turn out.

once again Thanks!!!

18 Feb 2010, 5:15 PM
#39
l371juk avatar

l371juk

New Zenner

Join Date:
Feb 2010
Posts:
2
Plugin Contributions:
0

Re: Global price change?

mprough:

I use quick updates (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=101) to accomplish this... Nice thing for you is the added ability to change by percentage (like to cover currency fluctuations) for all products or just selected products.

~Melanie

Hi Melanie,
I have just installed this, but nothing seems to have changed. How do you use it?:unsure:

7 Mar 2010, 11:19 PM
#40
tannie avatar

tannie

New Zenner

Join Date:
Mar 2010
Posts:
4
Plugin Contributions:
0

Re: Global price change?

I've had a look around but had no luck with anything I've found so far.

What I'm looking for is to change all products of a set price. Eg. All items worth 45 to change to 46 .

I've tried editing the SQL code but with no luck due to my relatively poor coding knowledge