I want to change the position value of the category product tab in the category page from 0 to 2. When the newly created product is created, its default position value was 0.
This is my progress as off now.
Category ID is 218
I already found the position attribute_id = 53
SELECT * FROM
eav_attribute
WHEREfrontend_label
= 'Position';
I want to change all the position value of the specific category.
What tables do I need to look at?
Best Answer
commonly you may try to use
This script will update all positions and change them from 0 to 2. If you need you may add additional check for product id. You may include it in your logic, create observer or cron job. Hope it will helpful for you.