sorting - Change default position of product in categories from 1 to product ID in Magento 1.7.0.2 -


in magento 1.7.0.2, adding lot of products backend positions of these new items in corresponding categories 0 or 1. when sorting on frontend, arbitrary sorting postion.

i set position of these items in categories equal product_id directly on database (table catalog_category_product), , sorting works correctly. solution set position of product in category equal product_id in code, don't know , how that.

any help?

many thanks

ok function _savecategories in class mage_catalog_model_resource_product appears looking for. have around call insertmultiple. take in $data array containing category_id, product_id , position (which oddly set 1)

i think @ point can make edit. though suggest rewrite class rather editing core code.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -