Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    help question Help Write SQL QUERY to Add Specific Attribute to ALL Products in Specific Category

    I need to assign attribute #409 to every product in category #350.

    Can anyone help me with the SQL QUERY I need to use please?

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Help Write SQL QUERY to Add Specific Attribute to ALL Products in Specific Catego

    Never mind, it's an admin function!

    http://www.zen-cart.com/showthread.p...-or-a-category

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

    Default Re: Help Write SQL QUERY to Add Specific Attribute to ALL Products in Specific Catego

    Have you ever peeked at the bottom of the screen on the Catalog ... Option Value Name ... and seen the section:
    Copy Option Name/Value to Products with existing Option Name ...
    Select an Option Name and Value that currently exists on a product or products to add to all products or to only the products in the selected category that have the selected Option Name.
    Example: Add Option Name: Color Option Value: Red to all Products with Option Name: Size
    Example: Add Option Name: Color Option Value: Green with default values from Products ID: 34 to all Products with Option Name: Size
    Example: Add Option Name: Color Option Value: Green with default values from Products ID: 34 to all Products with Option Name: Size for Categories ID: 65
    Have you every wondered what might happen if you were to make a really good backup of your database and tried to see what would happen if you tried it?

    Wouldn't it be cool if that was built into Zen Cart?!

    I do believe that is the magic that you are looking for, but I gotta get going soon and did not play with it recently to be 100% positive, but that is why I think I built that in there eons ago ...
    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: v1.5.5]
    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. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Help Write SQL QUERY to Add Specific Attribute to ALL Products in Specific Catego

    Quote Originally Posted by limelites View Post
    Never mind, it's an admin function!

    http://www.zen-cart.com/showthread.p...-or-a-category
    Be careful ... make sure you do a backup and practice as those things can be nasty if you don't ...
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Help Write SQL QUERY to Add Specific Attribute to ALL Products in Specific Catego

    Hi Linda,

    Thanks for getting back, really helpful as always. I always backup before running an SQL script but it seems to have worked well. The problem is with products in category 350. They don't really need any attributes but if we don't give them an attribute then the ADD TO CART button becomes hidden. So, now they all have an attribute "bespoke flowers".

    It's a new site now. We finally upgraded to the latest Zen Cart:

    www.silkblooms.co.uk

 

 

Similar Threads

  1. mass price change for all products in a specific category
    By chaiavi in forum Setting Up Categories, Products, Attributes
    Replies: 21
    Last Post: 5 May 2019, 03:28 PM
  2. Replies: 7
    Last Post: 17 May 2011, 02:00 PM
  3. Query to grab orders for specific products
    By andrewtayloruk in forum Managing Customers and Orders
    Replies: 0
    Last Post: 9 Mar 2010, 06:03 PM
  4. Show Specific Category on Index Listing or Add Entire Category to Featured Products.
    By devnut in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 8 Oct 2008, 04:29 PM
  5. Search for all products that use 1 specific attribute
    By crosswraith in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 21 Apr 2007, 04:32 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR