How to test Slide Cart in an unpublished theme.
There are times when you may want to test our app in an unpublished theme without having the app active on your live store.
Since Slide Cart is injected into all your themes, you can disable it from the live theme by adding a snippet to the theme's code.
Here's how you can do that:
- From your Shopify admin, go to Online Store > Themes.
- Find your published theme, and then click on the three dots > Edit code.
- In the left sidebar, under Layout, click on theme.liquid.
- Find the opening
<head>
tag and paste the following snippet right below it:
<!-- DISABLE SLIDE CART --> <script>window.SLIDECART_DISABLE = true</script> <!-- END DISABLE SLIDE CART -->
It should look like this:
Always remember to click Save to apply the changes, and that's it! You have successfully disabled Slide Cart on your published theme.
If you want to test Slide Cart on the theme you have published but do not want to make the app live, you can create a copy of your current Published theme and test Slide Cart there.
If you create the copy after adding the disabling code, remember to remove it from the theme.liquid so the app works as expected.
Not seeing Slide Cart? Check out this guide with the steps for Installing Slide Cart in your theme.