While navigating through search results, to preserve the page number and selected filters follow the steps below based on your store:
-
Magento 1
- In Magento Admin Panel, Go to System → Configuration
- Go to General → Design → HTML Head → Miscellaneous Scripts
-
Add the following script.
<script> var klevu_addPageNumberToUrl = true, klevu_addSelectedFiltersToUrl = true; </script> - Please clear Magento cache.
-
Magento 2
- In Magento Admin Panel, Go to Content → Configuration
- Edit the theme from the list which is enabled for the frontend.
- Go to Footer → Miscellaneous HTML and paste the code
-
Add the following script.
<script> type="text/javascript" var klevu_addPageNumberToUrl = true, klevu_addSelectedFiltersToUrl = true; </script> - Please clear Magento cache.
-
Custom stores ( Non-Magento)
-
Add the following script on your page.
<script> type="text/javascript" var klevu_addPageNumberToUrl = true, klevu_addSelectedFiltersToUrl = true; </script>
-
Add the following script on your page.
-
Shopify
-
Add the following script in
theme.liquid file
before closing the body tag.
<script> type="text/javascript" var klevu_addPageNumberToUrl = true, klevu_addSelectedFiltersToUrl = true; </script>
-
Add the following script in
theme.liquid file
before closing the body tag.
-
BigCommerce
-
Add the following script in the
base.html file before closing the
body tag.
<script> type="text/javascript" var klevu_addPageNumberToUrl = true, klevu_addSelectedFiltersToUrl = true; </script>
-
Add the following script in the
base.html file before closing the
body tag.