Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Posts
    496
    Plugin Contributions
    0

    Default making the same change to all of my products

    I am wondering if there is a way to make a single change to all of my products that would produce the same result and if I can do so with a script by entering it into admin>install sql patches. I want to change the quantity of ALL of my products to the same quantity. If it can be done, I am asking if someone who knows how to write such a script would post it here for me because I have no clue!

    I normally use Quick Updates to make changes, but since I am looking to make changes to thousands of items, I was wondering if there was a script I could run in admin>install sql patches that would apply these changes to the database quickly. Also, if this can be done with quantity, can it also be done with prices (make all products the same price) and with product descriptions?

    Any help is greatly appreciated!!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: making the same change to all of my products

    Yes, it can be done, easily. I don't have the references here to figure out the exact SQL statement to use, but someone who does can post it.

  3. #3
    Join Date
    Jul 2006
    Posts
    496
    Plugin Contributions
    0

    Default Re: making the same change to all of my products

    Thanks for responding. I thought that it could be done but I wasn't sure so at least now I know! Hopefully I can get someone to write it up for me.

  4. #4
    Join Date
    Jul 2006
    Posts
    496
    Plugin Contributions
    0

    Default Re: making the same change to all of my products

    Well, I tried to figure out how to do it myself by following the instructions here, but it didn't work. I got all excited for nothing. Now it's time to take a break and go scream for a while.

  5. #5
    Join Date
    Jul 2006
    Posts
    496
    Plugin Contributions
    0

    Default Re: making the same change to all of my products

    Okay, instead of screaming, I took a look at the Dual Pricing sql as an example and noticed I was a little off in typing out my code. Once I made a few changes, it worked! I was able to change the quantity of all of my products by entering:

    UPDATE `products` SET `products_quantity = 500` ;

  6. #6
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: making the same change to all of my products

    Quote Originally Posted by craftzombie View Post
    Okay, instead of screaming, I took a look at the Dual Pricing sql as an example and noticed I was a little off in typing out my code. Once I made a few changes, it worked! I was able to change the quantity of all of my products by entering:

    UPDATE `products` SET `products_quantity = 500` ;
    Might work better like this
    UPDATE `products` SET `products_quantity` = 500;

 

 

Similar Threads

  1. How can I change many attribute prices to all be the same?
    By sofasurfer in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 19 Sep 2011, 08:17 AM
  2. Making subcategory images all the same size?
    By RobM in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 20 Jan 2009, 02:52 PM
  3. Making images all the same size on the home page
    By Trish in forum General Questions
    Replies: 4
    Last Post: 30 Sep 2008, 07:03 PM
  4. Making a change to a banner image that doesnt change the layout of all other banners
    By nholdstock in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Sep 2008, 03:37 PM
  5. pics are not all the same width in the view all products?
    By imfsub12 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Sep 2008, 09:51 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