Forums / Setting Up Categories, Products, Attributes / How do I update all products to 'Product Priced by Attributes'

How do I update all products to 'Product Priced by Attributes'

Locked

Started by kcb410 on 1 Aug 2009, 1:39 PM · Views: 1,711

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Aug 2009, 1:39 PM
#1
kcb410 avatar

kcb410

Zen Follower

Join Date:
Dec 2008
Location:
Toronto
Posts:
348
Plugin Contributions:
0

How do I update all products to 'Product Priced by Attributes'

Hello all!

I have recently uploaded 900 new products to my web site.
They are all priced by attributes. Does anyone know how to change "Product is Priced by Attributes" to yes?

I would like to avoid having to do it one product at a time.

Any help is appreciated.

Thank you!

1 Aug 2009, 2:05 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do I update all products to 'Product Priced by Attributes'

Provided you haven't added an products since, you could back up your database, then run something like the following from the Admin > Tools > Install SQL Patches screen

UPDATE products SET products_priced_by_attribute = 1 WHERE products_date_added >= "2009-07-25";

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

1 Aug 2009, 3:20 PM
#3
kcb410 avatar

kcb410

Zen Follower

Join Date:
Dec 2008
Location:
Toronto
Posts:
348
Plugin Contributions:
0

Re: How do I update all products to 'Product Priced by Attributes'

kuroi:

Provided you haven't added an products since, you could back up your database, then run something like the following from the Admin > Tools > Install SQL Patches screen

UPDATE products SET products_priced_by_attribute = 1 WHERE products_date_added >= "2009-07-25";

That worked perfectly!
Thank you.

4 Aug 2009, 3:42 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: How do I update all products to 'Product Priced by Attributes'

NOTE: when manually altering anything that changes the Price of a Product, you will want to also run from the Tools ... Store Manager ...

Update ALL Products Price Sorter
to be able to sort by displayed prices: Update

This will allow sorting by Price, which is actually using the products_price_sorter for sorting prices, to work properly ...

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!

4 Aug 2009, 3:45 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do I update all products to 'Product Priced by Attributes'

Excellent point. Thanks for the clarification. :blush:

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)