How to add custom js?
Go to Shopify theme editor -> Click Theme settings -> Choose App embeds
Available settings and functions for custom js:
  • DcUpsellGlobalSetting.delayRedirectOnSkip = 0
  • DcUpsellGlobalSetting.delayRedirectOnCheckout = 0
  • DcUpsellGlobalSetting.maxMobileWidth = 768
  • DcUpsellGlobalSetting.onShowPopup = function(){ //Paste your code here }
  • DcUpsellGlobalSetting.onSkip = function(){ //Paste your code here }
  • DcUpsellGlobalSetting.onCheckout = function(){ //Paste your code here }

Add custom selectors

  1. 1.
    Go to shopify theme editor
  2. 2.
    Paste your selector in Custom trigger selectors input
Example: {"page": "cart", "selector": ".class"}
Available page options: cart, product
Copy link