How to show upsell pop-up on your home page

You can enable Candy Rack pop-up on home page by adding a script to your index.liquid file. To do so, please follow these three steps.

➡️ Step 1 – Edit your theme

First, go to Themes and click Edit code on the currently active theme.

➡️ Step 2 – Add a custom script to your template

In your Templates folder, you should see index.liquid file. Open it and add the following code to the bottom of the file.

<script>
  CANDYRACK_PRODUCT_HANDLE = "YOUR_PRODUCT_HANDLE"
</script>

➡️ Step 3 – Replace the default handle

Please make sure you replace YOUR_PRODUCT_HANDLE by the handle of the product you have on your home page. The product handle is the last part of your product URL after products/.

For example, the product handle for the product below is “moving-in-terminal-sticker” and the script to trigger pop-up on the home page is:

<script>
  CANDYRACK_PRODUCT_HANDLE = "moving-in-terminal-sticker"
</script>

Now everything should be set and you can go ahead and test if the pop-up is triggered right on your home page. If not, please contact us and we will be happy to help you further.

Happy upselling,

Your Digismoothie Team

About Author

Tom Jarvis

Tom is one of our Customer Success Gurus and knows everything about our apps and how to set them up. He's likely the guy you will talk to when you need help. Tom's favorite topic is upselling/cross-selling about which he also likes to write on our blog. If he's not helping merchants he's likely out doing something crazy like parachuting or downhill longboarding.

Leave A Reply