Last active
August 29, 2015 13:56
-
-
Save peterjaap/9346846 to your computer and use it in GitHub Desktop.
Place products in a specified category based on attribute set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT @cat_id := entity_id FROM catalog_category_flat_store_1 WHERE url_path = 'merken/makita'; | |
SELECT @attr_set_id := attribute_set_id FROM eav_attribute_set WHERE attribute_set_name = 'Makita'; | |
INSERT IGNORE catalog_category_product (category_id,product_id) SELECT @cat_id, entity_id FROM catalog_product_entity WHERE attribute_set_id = @attr_set_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment