Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Help Linking Products

    Hi All,

    Can anyone tell me a simple db query I could run to link all products with two specific manufactuers id's to one new category I want to create?

    cheers

    Phil

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Help Linking Products

    looking at multiple categories manager, what I want to do is similar to the built in global facility:

    "Copy ALL Products in a Category as LINKED Products to another Category"

    however I need to do the following:

    Copy ALL Products in a Category (WHERE MANUFACTURES ID is equal to X) as LINKED Products to another Category

    hope that makes sense

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

    Default Re: Help Linking Products

    That is not a built in feature for the Copy method ...
    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: v1.5.5]
    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!

  4. #4
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Help Linking Products

    Quote Originally Posted by Ajeh View Post
    That is not a built in feature for the Copy method ...
    not iwith only selecting products with specific manufacturers...

  5. #5
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Help Linking Products

    Quote Originally Posted by philip937 View Post
    not iwith only selecting products with specific manufacturers...
    sorry misread you reply.

    I know its not a built in method, which is why I am after an sql query I can run to do it..

    thanks

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

    Default Re: Help Linking Products

    You could customize the code further to check for a manufacturers_id and that would limit the Products to just those in the Category and with the manufacturers_id that you want to select ...

    You could write it to default to all manufacturers_id or when 1 is selected to only use those ...
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Help Linking Products

    Quote Originally Posted by Ajeh View Post
    You could customize the code further to check for a manufacturers_id and that would limit the Products to just those in the Category and with the manufacturers_id that you want to select ...

    You could write it to default to all manufacturers_id or when 1 is selected to only use those ...
    you got it, thats what I need, but I need to know what / where the defaukt query is?

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

    Default Re: Help Linking Products

    Start with the file:
    /admin/products_to_categories.php

    locate where the current code is to:
    Copy ALL Products in a Category as LINKED Products to another Category
    that is stored in the constant:
    TEXT_INFO_COPY_ALL_PRODUCTS_TO_CATEGORY_LINKED

    You then need to add something like a dropdown for the Manufacturer with a default for ALL ...

    Then follow the code to customize the code for that new feature ... it appears to be using the action:
    copy_categories_products_to_another_category_linked

    find that case and see how the current SELECT statement is made and how you can add in a manufacturers_id into it ...
    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: v1.5.5]
    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!

  9. #9
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default Re: Help Linking Products

    If I wanted this feature, I would speak to the guy who coded this mod for me:
    Multiple Categories Link Manager (which I think should be core as its so great!!!)

    http://www.zen-cart.com/index.php?ma...oducts_id=1854


    [FONT=&quot]
    [/FONT]
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

 

 

Similar Threads

  1. Help with Linking EZ Pages to Products
    By Karimah in forum General Questions
    Replies: 5
    Last Post: 1 Dec 2011, 08:07 AM
  2. Help with linking products (fomatting question)
    By deannasdreams in forum General Questions
    Replies: 6
    Last Post: 29 Mar 2009, 07:21 AM
  3. linking to products from outside my store, to auto-add download products to my cart
    By JakeAy in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 19 Nov 2007, 04:06 AM
  4. Products Random linking ?? Help
    By Pedro NZ in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 13 Jan 2007, 07:10 AM
  5. Products image linking directly to products url
    By duffster2004 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 17 May 2006, 07:19 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR