Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2015
    Location
    Lincoln, NE, USA
    Posts
    3
    Plugin Contributions
    0

    help question Implications of Master Category ID Reset on Linked Products

    I have a client who is using linked products, and they would like to use Easy Populate to do some bulk changes. Understanding that by doing so, the master category of linked products may change, what are the implications of a product ending up with a different master category other than SaleMaker (since the product's master category may be different now)?

    I don't think my client will have the need to use SaleMaker, so I want to make sure nothing else gets negatively affected by potentially changing the master category of several linked products after using Easy Populate (and possibly "Reset ALL Products Master Categories ID").

    Thank you in advance for your help.

    Manuel

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

    Default Re: Implications of Master Category ID Reset on Linked Products

    The table:
    products

    does need to know the valid categories_id for the:
    master_categories_id

    As to Linked Product, the table:
    products_to_categories

    does need to know all:
    products_id and categories_id

    to maintain the Linked Products ...
    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!]
    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!

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Implications of Master Category ID Reset on Linked Products

    What condition would result in the master category changing using what version of Easy Populate?

    Would seem would want to not have that possibility.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Apr 2015
    Location
    Lincoln, NE, USA
    Posts
    3
    Plugin Contributions
    0

    Default Re: Implications of Master Category ID Reset on Linked Products

    Quote Originally Posted by Ajeh View Post
    The table:
    products

    does need to know the valid categories_id for the:
    master_categories_id

    As to Linked Product, the table:
    products_to_categories

    does need to know all:
    products_id and categories_id

    to maintain the Linked Products ...
    Thank you for your reply. I probably wasn't clear enough in my concern, and also in explaining how we would use Easy Populate.

    In my short experience with Easy Populate, when we download a CSV file for editing, such file will include several entries for a product with linked references (i.e., product has a master category ID, and several linked category IDs). If the CSV file that we upload includes only one of those entries, and such entry happens not to be the original master category ID, then Zen Cart will assign the uploaded category as the master category ID. It is my understanding that all related database tables respond to this change, and there are no inconsistencies. IF there were inconsistencies, then using the "Reset ALL Products Master Categories ID" would solve this issue, but this would potentially (and very probably) change the master category ID of many products with linked references to the first category ID in the list. The only consequence of this that I am aware of is that, since the Master Category ID as changed, if I were to use SaleMaker, then the sale price would not be applied to a product since its Master Category ID changed. I think we are OK with this consequence because we will not use the SaleMaker feature.

    The big question is, are there other consequences to the Master Category ID being changed after the use of Easy Populate and possibly "Reset ALL Products Master Categories ID" that I am not aware of?

  5. #5
    Join Date
    Apr 2015
    Location
    Lincoln, NE, USA
    Posts
    3
    Plugin Contributions
    0

    Default Re: Implications of Master Category ID Reset on Linked Products

    Quote Originally Posted by mc12345678 View Post
    What condition would result in the master category changing using what version of Easy Populate?

    Would seem would want to not have that possibility.
    I'm pretty sure all versions of Easy Populate do this if you do the following:

    1. Download a CSV file with a product that has linked references, resulting in multiple entries for the same product model.
    2. Keep only one of the entries for modification purposes, but not knowing if such entry is the one that contains the Master Category ID (it is difficult to keep track of this when you are handling thousands of products).
    3. Upload the modified CSV file. The entry included in this CSV file will then become the new Master Category ID.

    I tested this a couple of times with Zen Cart 1.5.1 and Easy Populate v1.2.5.7c.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Implications of Master Category ID Reset on Linked Products

    Quote Originally Posted by mexico View Post
    I'm pretty sure all versions of Easy Populate do this if you do the following:

    1. Download a CSV file with a product that has linked references, resulting in multiple entries for the same product model.
    2. Keep only one of the entries for modification purposes, but not knowing if such entry is the one that contains the Master Category ID (it is difficult to keep track of this when you are handling thousands of products).
    3. Upload the modified CSV file. The entry included in this CSV file will then become the new Master Category ID.

    I tested this a couple of times with Zen Cart 1.5.1 and Easy Populate v1.2.5.7c.
    Not the case with EasyPopulate v4 (https://www.zen-cart.com/showthread....Support-Thread), unless the Master_category_ID is downloaded then changed from the original and again uploaded with the modified master_category_id. Otherwise it leaves the master_category_id alone, but may cause additional linked product if the category information is changed.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Nov 2007
    Location
    Alameda, CA
    Posts
    38
    Plugin Contributions
    0

    Default Re: Implications of Master Category ID Reset on Linked Products

    Quote Originally Posted by mc12345678 View Post
    Not the case with EasyPopulate v4 (https://www.zen-cart.com/showthread....Support-Thread), unless the Master_category_ID is downloaded then changed from the original and again uploaded with the modified master_category_id. Otherwise it leaves the master_category_id alone, but may cause additional linked product if the category information is changed.
    Does anyone know how to do a mass change of master category? We've created a new category called "Purple Rain", where we've linked all of our purple beads. I want to do a sale on purple beads, but it doesn't work to use sale maker on the purple rain category, because most of the beads have a different master category. I've got v154 and EasyPopulate v4. Don't want to do it one by one. Thanks in advance!

    http://www.beadinspirations.com/purple-rain-c-1029.html

  8. #8
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Implications of Master Category ID Reset on Linked Products

    Quote Originally Posted by vickilapp View Post
    Does anyone know how to do a mass change of master category? We've created a new category called "Purple Rain", where we've linked all of our purple beads. I want to do a sale on purple beads, but it doesn't work to use sale maker on the purple rain category, because most of the beads have a different master category. I've got v154 and EasyPopulate v4. Don't want to do it one by one. Thanks in advance!

    http://www.beadinspirations.com/purple-rain-c-1029.html
    I've been trying to carefully review the notes I've made about working with master categories and a feature that was added to EP4. The v_status field can be used to accomplish a couple of things, one of which is to move a product from one master category to another. The thing is, it sounds like you want to keep all your existing linked product, but just want the master category to fall under a single category in order to place all such items on sale.

    So a v_status of 7 will move a product from whatever category it is in and make it's master category the category that is indicated by the categories_name_X text. It will then as applicable and remove the product from its previous category. To keep the product in its previous category(ies) (linked) basically the entry for the product to indicate the master category should be before other entries of the same product.

    If you don't have unique model #s for all of your product, you can add products_id to the user defined field(s) in the configuration and then change to using products_id or blank_new, export your existing data, sort the data on your primary key, find the product that you want to "centralize", for the first instance of each product add a row of data with the category(ies) identified to this new master category, and change the v_status field for that row only to 7.
    Backup database.
    Upload,
    Import
    Verify information,
    Backup again for "safety".
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Nov 2007
    Location
    Alameda, CA
    Posts
    38
    Plugin Contributions
    0

    Default Re: Implications of Master Category ID Reset on Linked Products

    Thanks for the info. I tried what I understood your suggestion to be.

    I set up the easy populate v_status column to be 7, and uploaded and imported, but it did not change the master category. Each item does have a unique model number, and it is listed in more than one category. Ultimately I changed each item's master category one by one, which takes too long. In the future, is there a way to use Easy Populate to do this? Maybe I'm doing it wrong? It would be helpful to have a step-by-step instruction, if this is possible. Thanks so much for your help with this.!

    Vicki

  10. #10
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Implications of Master Category ID Reset on Linked Products

    On the row where the status was set to 7, was the v_categories_name_X field populated to be the desired master category?

    The row(s) that follow with status of 0 or 1 for that product would then be linked to the first.

    As to offering instruction, I'm pretty sure that even if I provided a step-by-step, which I'll try to incorporate into the next Rev for various operations, there will be one or more usages that I'll miss. I admit that the guidance appears to be hidden in the revision notes, the original intention was to offer a way to remove linked product, but knowing that the master category was the object of revision it also serves the purpose requested and doesn't drop the necessary relationships in the database.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139h Global Category Link Changes and Master Category ID Reset not showing anymore
    By lilly06 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 7 Sep 2012, 10:14 AM
  2. Pressed Reset category master ID, now my products are deleted, not showing... DISAST
    By Argyle in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 2 Jan 2012, 05:58 AM
  3. Quantity Discount for Master Category w/ Linked Products?
    By msmith29063 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 6 Oct 2010, 04:59 AM
  4. Master Category ID reset?
    By Tabby in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 22 Jan 2009, 06:40 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