Signup

Wholesale - All in one by DigitalCoo

Within your themes storepickup-addons.liquid file add the following code:

<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(event) {
  window.customCheckoutValidation = function() {
    document.getElementById("checkoutBtn").innerHTML = "Loading ...";
   
    _coup('a', function(){
      var discount = (window.win_coupanCode === 'undefined') ? ' ' : window.win_coupanCode;
      var checkout_params = Zapiet.Widget.getCheckoutParams();
      checkout_params.discount = discount;
     
      window.location = '/checkout?' + new URLSearchParams(checkout_params);  
    });
  };
});
</script>

That's it. Now both apps should play well together. 

I
Ismail is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.