I am going to be retiring about 1000 products in my store from multiple master categories.
I have created a new master category for the retirement sale and will be setting it at a % off
I want to bulk move items into this category based on the following:
•the product was added over a year ago
•and it sold 2 or less times
I don't have any problem finding the products from the products table that I want to retire using a SQL query
I can also use the same query to set the master category ID to the retirement category
this makes the price update correctly
HOWEVER, the products do not show IN the category yet.
I need to do something to update the products_to_categories where it will insert a new record based on the query above. I am seeing that they will not display in the category until there is a record inserted in this table. But this table ONLY references productID and categoryID.
I only know enough to run a SQL query in one table.
How do I write query to insert a record into products_to_categories based on the date/numbered order selection from the products table?
THANKS
Bookmarks