Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    215
    Plugin Contributions
    0

    Default MySQL: setting a new price factor in attributes

    My knowledge of MySQL is scant. I need to be able to change the following fields:

    `fws_products_attributes` WHERE `attributes_price_factor_offset` = 0.1750 so that the price factor offset = 0.20

    Can anyone tell me how to do this? many thanks. Using phpMyAdmin is too slow (475 records). However, please note, not all fields contain 0.175 already some are blank
    e.g. in the existing DB I have
    Rows attributes_price_factor
    3700 0.0000
    473 0.1750
    1 0.2000 (Changed this manually)

    Yes, I know, backup first!

    Many thanks.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: MySQL: setting a new price factor in attributes

    You could backup your database then run in the Tools ... Install SQL Patches ...
    Code:
    UPDATE products_attributes SET attributes_price_factor_offset = 0.20 WHERE attributes_price_factor_offset = 0.1750;
    NOTE: if you run that in phpMyAdmin, you will need to add your table prefix, if you are using them ...
    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!

  3. #3
    Join Date
    Sep 2007
    Posts
    215
    Plugin Contributions
    0

    Default Re: MySQL: setting a new price factor in attributes

    Many thanks. Tried this using Tools and message read theat i statement processed but when I checked a product it still had the old figure in it. Why would that be?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: MySQL: setting a new price factor in attributes

    Browse the products_attributes table and check that you are using the correct values and fields for the change that you want to make ...
    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!

 

 

Similar Threads

  1. Setting up price attributes
    By volkswest in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 30 Jun 2011, 12:45 AM
  2. Attributes Price Factor Not Showing on Cart
    By Decostyle in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 15 Apr 2009, 04:17 PM
  3. Including Attribute Price Factor In Base Price Dropdown Menu
    By rob28870 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Oct 2008, 10:14 AM
  4. Price Factor: Based on other attributes?
    By 01011010 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Nov 2007, 08:06 PM
  5. Attribute price factor for total price
    By lloydwatkin in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 30 May 2007, 01:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg