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
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
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
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!
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!
Start with the file:
/admin/products_to_categories.php
locate where the current code is to:
that is stored in the constant:Copy ALL Products in a Category as LINKED Products to another Category
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!
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="]
[/FONT]
Steve
github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...
Bookmarks