Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2008
    Location
    Memphis, USA
    Posts
    299
    Plugin Contributions
    0

    customer issue Globally add manufacturer to products?

    Hi,

    I have two manufacturers set up in my store so people can search by manufacturer. Is there a way to globally assign a manufacturer to each product within a category?

    If not, does this mean I manually have to go to each product and individually assign a manufacturer to each?

    Thanks in advance for any input.

    Coucho

    www.internationalcoffeeandbeverage.com

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Globally add manufacturer to products?

    There's a much quicker way using SQL.

    1. Backup your database
    2. Double check that you have backed up your database
    3. Go to Admin > Catalog > Manufacturers and hove over the icons towards the right for each manufacturer. In the bottom left of your screen will appear a URL. And in that URL will be a parameter called mID. This is each manufacturer's ID. Make a note of it.
    4. Similarly, find out your categories' IDs from Admin > Catalog > Categories/Products. This is a bit easier because they're displayed in the listings left column, but also trickier if you have subcategories, as it's the subcategories with the products in that you need.
    5. Go to Admin > Tools > Insert SQL Patches and run the following request in the big box for each manufacturer.

    update products set manufacturers_id=nnn where master_categories_id in (mmm,mmm,mmm);
    where nnn is replaced by the mID and mmm,mmm,mmm is replaced by a comma-separated list of the category IDs for that manufacturer.
    Kuroi Web Design and Development | Twitter

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

  3. #3
    Join Date
    Jan 2008
    Location
    Memphis, USA
    Posts
    299
    Plugin Contributions
    0

    Default Re: Globally add manufacturer to products?

    Thanks for your help. Your solution worked like a charm.

  4. #4

    Default Re: Globally add manufacturer to products?

    Hello,

    I did this and it seemed to work perfectly.....but today I noticed that many different manufacturers and catagories (nothing to do with specific manufacturer) are showing when I filter by manufacturer. Is there a way to globally remove the manufacturer from specific categories.

    Thanks in advance.

    Tom

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Globally add manufacturer to products?

    That's very similar to what's used to to add them ... update products set manufacturers_id=NULL where master_categories_id in (mmm,mmm,mmm);
    Kuroi Web Design and Development | Twitter

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

  6. #6

    Default Re: Globally add manufacturer to products?

    Thank You!!! How about to remove all manufacturers?

    update products set manufacturers_id=NULL where master_categories_id < 1;

    Please let me know if that will do it.

    Regards,
    Tom

  7. #7

    Default Re: Globally add manufacturer to products?

    Quote Originally Posted by pokerdis View Post
    Thank You!!! How about to remove all manufacturers?

    update products set manufacturers_id=NULL where master_categories_id < 1;

    Please let me know if that will do it.

    Regards,
    Tom

    Sorry it was late, meant to write

    update products set manufacturers_id=NULL where master_categories_id >0;

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Globally add manufacturer to products?

    The effects of the SQL that you propose would depend upon how you have allocated products to categories, so I can't comment on the likely results.

    But if your objective is now to simply to remove all references to manufacturers, why not just use "update products set manufacturers_id=NULL"
    Kuroi Web Design and Development | Twitter

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

 

 

Similar Threads

  1. 'Add to Cart' change globally to 'Quantity'
    By tcarden in forum Customization from the Admin
    Replies: 3
    Last Post: 15 Dec 2012, 08:39 PM
  2. How to add Lightbox globally?
    By stefanl in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Mar 2011, 06:12 PM
  3. Add atrributes to ALL Products, Globally
    By drhiii in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 24 Nov 2008, 04:09 AM
  4. Altering the new products box (add manufacturer and category)
    By poosk in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Aug 2008, 12:35 AM

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