Skip to content

Commit

Permalink
Added add to cart functionality to catalog search page
Browse files Browse the repository at this point in the history
  • Loading branch information
jansentjeu committed Jan 17, 2025
1 parent e781989 commit 3173901
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/view/frontend/layout/catalogsearch_results_index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="columns" remove="true"/>
<move element="customer.customer.data" destination="columns"/>
<move element="customer.section.config" destination="columns"/>
<referenceContainer name="main" remove="true"/>
<referenceContainer name="div.sidebar.main" remove="true"/>
<referenceContainer name="div.sidebar.additional" remove="true"/>
<referenceContainer name="page.wrapper">
<block class="Magento\Framework\View\Element\Template" name="tweakwise-js-add-to-js"
template="Tweakwise_TweakwiseJs::js/category/add-to.phtml">
<arguments>
<argument name="view_model" xsi:type="object">Tweakwise\TweakwiseJs\ViewModel\Merchandising</argument>
</arguments>
</block>
</referenceContainer>
</body>
</page>

0 comments on commit 3173901

Please sign in to comment.