To replace an Attribute Price, which is the options_values_price, for a specific Attribute on ALL Products regardless of the original Price of the options_values_price ...
You need to find the:
options_id
for the Option Name Lens Type ...
You need to find the:
options_values_id
for the Option Values:
Bifocal (With Line)
Progressive Lens (No Line)
Single Vision (Far/Close-up)
Backup your database ...
Did you backup your database? (very important step)
Then you can use this in the Tools ... Install SQL Patches ...
For the Bifocal (With Line) you can run, by replacing the options_id=1 with your options_id for Lens Type and the options_values_id=16 with the options_values_id for the Bifocal (With Line) use:
UPDATE products_attributes SET price_prefix='+', options_values_price = 49.99 WHERE options_id= 1 and options_values_id = 16;
For the Progressive Lens (No Line) you can run, by replacing the options_id=1 with your options_id for Lens Type and the options_values_id=17 with the options_values_id for the Progressive Lens (No Line) use:
UPDATE products_attributes SET price_prefix='+', options_values_price = 89.99 WHERE options_id= 1 and options_values_id = 17;
For the Single Vision (Far/Close-up) you can run, by replacing the options_id=1 with your options_id for Lens Type and the options_values_id=26 with the options_values_id for the Single Vision (Far/Close-up) use:
UPDATE products_attributes SET price_prefix='+', options_values_price = 99.99 WHERE options_id= 1 and options_values_id = 26;
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!