I want to display bestseller products just below the compare product list. How can I do that?

1 Answer 1


You can use after attribute with your block/container that you are using for bestseller products in your layout. for eg:

<referenceContainer name="sidebar.additional">
     <block class="Namespace\Module\Block\YourBlockClass" name="xyz" after="catalog.compare.sidebar" template="your/template/path.html" />

Note after="catalog.compare.sidebar" here, the name catalog.compare.sidebar is block name of compare product sidebar.

Or even you can use move tag to put your block after compare product side bar

<move element="your.block.name" destination="sidebar.additional" after="catalog.compare.sidebar" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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