Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Moving Products from One Category to Another

  1. #1
    joshwold is offline Junior Member
    Join Date
    Oct 2011
    Location
    Fergus Falls, MN
    Posts
    6

    Default Moving Products from One Category to Another

    I'm a little stuck, is there a way to move all the products from one category to the next and removing them from the first? I'm sure that a SQL command would do it, but I really don't know how that works. I have a bunch of products that need to be added to a different category. Any help would be appreciated. THANKS!!!!

  2. #2
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    Code:
    UPDATE ProductCategory
    SET CategoryID = {newCatID}
    WHERE CategoryID = {oldCatID}
    That will literally move all products from one category to another. Try it in a development/test environment before doing it on your live website! Replace {newCatID} and {oldCatID} with the appropriate CategoryID numbers.
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  3. #3
    joshwold is offline Junior Member
    Join Date
    Oct 2011
    Location
    Fergus Falls, MN
    Posts
    6

    Default Great!!!

    Snap! That's awesome. Thanks a ton!!!