Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    21
    Plugin Contributions
    1

    Default Linking Products using a SQL script

    Can anyone help me out

    I have loads of items in a store that need to be linked to multiple categories. I have all the cat IDs and product IDs, and was thinking is there a simple sql script that I could run to create the links for me?

    I am currently using Zen Cart 1.3.8a

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Linking Products using a SQL script

    If you have solid knowledge of MySQL and tools like phpMyAdmin, and all your products have valid master_categories_id set, then you can link the products to other categories by adding records to the products_to_categories table.

    Naturally, the safest method is to use the store's admin screen to choose your linking properly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2005
    Posts
    21
    Plugin Contributions
    1

    Default Re: Linking Products using a SQL script

    Many thanks for the sound advice - I have just found the Multiple Link option in Admin

 

 

Similar Threads

  1. Disable Discount Coupon Lookup Cross Linking Script
    By Pablo1719 in forum General Questions
    Replies: 1
    Last Post: 10 Dec 2013, 09:56 PM
  2. Changing shipping settings of all products using SQL
    By bigstore in forum Customization from the Admin
    Replies: 2
    Last Post: 6 Feb 2012, 05:53 PM
  3. Adding an attribute to all products using SQL command?
    By arniesbarmyarmy in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 20 Oct 2009, 03:47 AM
  4. SQL Script - Can't get Tabbed Products Pro and HoverBox to work
    By Alfa in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 17 Oct 2008, 04:35 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