In Default, Magento themes have a right compare product sidebaar. defined in checkout.xml catalog.xml.
in the file near line no 57 according to Magento ver. 1.9.0.1. If you wish to move it in to left, we can use local.xml file in layout.
<!--Add Compare product block to left sidebar for non anchor category-->
<catalog_category_default translate="label">
<remove name="catalog.compare.sidebar" />
<reference name="left">
<block type="catalog/product_compare_sidebar" after="catalog.leftnav" name="catalog.compare.newsidebar" template="catalog/product/compare/sidebar.phtml"/>
</reference>
</catalog_category_default>
<!--Add Compare product block to left sidebar for Anchor category-->
<catalog_category_layered translate="label">
<remove name="catalog.compare.sidebar" />
<reference name="left">
<block type="catalog/product_compare_sidebar" after="catalog.leftnav" name="catalog.compare.newsidebar" template="catalog/product/compare/sidebar.phtml"/>
</reference>
</catalog_category_layered>
——————————–OR——————————–
Note: You Can directly copy the following code from catalog.xml and paste it in reference name=”left” section from reference name=”right” section
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
0 Comments