0

I need to move the Compare products and My Wish list blocks to the left of the page.

I have my page like, where my Compare products should come to the right:

enter image description here

I did something like :

<?xml version="1.0"?>
<page layout="2columns-left" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
   <body>
       <move element="category.product.addto" destination="product.info.media" /> 
   </body>
</page>

But im not sure if destination element is proper, but the Compare product block is not moving!

1

You need to set the layout of the page to 2columns-left

You can override the layout like this:

app/design/frontend/Vendor/themename/Magento_Catalog/layout/catalog_category_view.xml

and change the layout like this:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

</page>
| improve this answer | |
  • Have updated the answer @Sejal, but the block hasnt moved – Sushivam May 22 '17 at 13:02
  • Can you check if the body has this class? page-layout-2columns-left. If the class is present but the block is not moving then we have to do it via css. – Sejal Shah May 22 '17 at 13:07
  • Whats the correct destination name in my scenario? – Sushivam May 22 '17 at 13:21
  • Lets solve issues one by one. First try to move compare and wishlist from right to left by specifying the layout to "2columns-left" – Sejal Shah May 22 '17 at 13:22
  • 1
    Can you check if the body has this class? page-layout-2columns-left – Sejal Shah May 22 '17 at 13:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.