Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Change Product Model Numbers en masse?

    Got it and Thank you.
    Using Zen Cart 1.5.1

  2. #12
    Join Date
    May 2013
    Posts
    38
    Plugin Contributions
    0

    Default Re: Change Product Model Numbers en masse?

    Quote Originally Posted by Kevin205 View Post
    Code:
    UPDATE zen_products SET products_model = CONCAT("GHD-",products_model) WHERE manufacturers_id = 5;
    As long as those column names match up to your, this seems correct.

    Yes, you can execute this from PHPMyAdmin. There should be a place to execute custom queries.

    Like I said, though, you should make a backup first.

  3. #13
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Change Product Model Numbers en masse?

    Backup...

    All the time.
    Using Zen Cart 1.5.1

  4. #14
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default Re: Change Product Model Numbers en masse?

    Quote Originally Posted by Kevin205 View Post
    All of my cart tables have zen_ prefix in SQL. So it would be:
    Code:
    UPDATE zen_products SET products_model = CONCAT("GHD-",products_model) WHERE manufacturers_id = 5;

    This should be executed from PHPMyAdmin. Correct?
    if "zen_" is your db prefix, then this is the correct code to run from phpMyAdmin

  5. #15
    Join Date
    Feb 2011
    Location
    Lumberton, TX
    Posts
    629
    Plugin Contributions
    0

    Default Re: Change Product Model Numbers en masse?

    Understand that anything more complex than this simple task would not be done this way.

    If I had to do anything more complex than this.... I would make a copy of my database and TEST the sql statement on that new copy. Then you evaluate the changes done by the SQL statement. If it works as expected, then I would do it on the real database.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Auto Increment Product Model Numbers?
    By jaqdaw in forum General Questions
    Replies: 0
    Last Post: 8 Feb 2011, 06:06 PM
  2. Trying to change/add model numbers with EZPopulate
    By fredsjo in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Jul 2010, 09:36 AM
  3. Model Numbers With Product Options
    By DiZZ in forum General Questions
    Replies: 8
    Last Post: 17 Nov 2006, 04:16 PM
  4. Attribute product model numbers
    By Muddler in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 17 Oct 2006, 11:10 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