Skip to content

Instantly share code, notes, and snippets.

@sandipklevu
Created June 5, 2023 12:53
Show Gist options
  • Save sandipklevu/bef8669d98c0045b24fb8d5fcb8e7ca3 to your computer and use it in GitHub Desktop.
Save sandipklevu/bef8669d98c0045b24fb8d5fcb8e7ca3 to your computer and use it in GitHub Desktop.
<magento-root>/app/design/frontend/rwd/default/layout/klevu/search.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<block type="core/template"
name="klevu.search.v2.js.init"
template="klevu/search/v2/js-init.phtml"/>
</reference>
</default>
<catalog_product_view>
<reference name="before_body_end">
<block type="klevu_search/catalog_product_tracking" name="klevu_search.catalog.product.tracking"
template="klevu/search/product_tracking.phtml"/>
</reference>
</catalog_product_view>
<search_index_index>
<reference name="head">
<!-- Remove Deprecated JSv1 Stylesheet to avoid conflict -->
<action method="removeItem">
<type>css</type>
<name>css/klevu/klevu-landing-page-style.css</name>
</action>
<action method="removeItem">
<type>css</type>
<name>css/klevu/klevu-landing-responsive.css</name>
</action>
</reference>
<reference name="root">
<action method="setTemplate">
<template>page/1column.phtml</template>
</action>
</reference>
<reference name="content">
<block type="core/template" name="klevu.search.v2.search.index.index"
template="klevu/search/v2/search.phtml"/>
<remove name="search_index"/>
<remove name="search_content_index"/>
<remove name="contentsearch_top_block"/>
</reference>
</search_index_index>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment