magento - MultiStore with different products -
i have magento store configured use single website 2 stores (and 1 store view each).
both stores must have different products. when created them, each store had own root category, expected magento divide products associated category. somehow worked on local test @ first, didn't on production , after changing categories locally didn't work - changing did not fix problem.
searching found change status per store view, @ side of product status, says "website" , when change it, both views change. change visibility i'm not sure if won't slow down store. so, 2 questions:
- is possible separate products each store based on root category?
- is visibility per store view optimized? (i have 500 products, 400 in 1 store , 100 on other, , don't want slow down store)
edit: couldn't find solution this, used workaround instead:
i have on cms homepage:
{{block type="catalog/product_list_random" name="home_products" template="catalog/product/list.phtml"}}
and showing products other store. extended mage_catalog_block_product_list class include filter current store root category id:
$_rootcatid = mage::app()->getstore()->getrootcategoryid(); $collection ->joinfield('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null, 'left') ->addattributetofilter('category_id', array('in' => $_rootcatid));
the products other store still show on searches, that's ok me.
when editing product should see tab called 'websites'. there can assign or remove products to/from specific website. can bulk change websites selecting products in grid , selecting action change attributes. again should see 'websites' tab.
visibility, there no problem. if enable flat catalog each store view new table created , visibility simple flag used in where
statements of selects.
Comments
Post a Comment