Advertisement
orenchuck

iqos don't show form after add to cart

Mar 6th, 2023 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <script>
  2. (function () {
  3. function addKeyToStorage() {
  4. var buttonAddToCart = document.querySelector('.add-all-to-cart');
  5. if (buttonAddToCart) {
  6. buttonAddToCart.addEventListener('click', function () {
  7. localStorage.setItem('adoricAddBundleToCart', true);
  8. });
  9. }
  10. }
  11.  
  12. if (document.readyState === 'loading') {
  13. document.addEventListener('DOMContentLoaded', addKeyToStorage);
  14. } else {
  15. addKeyToStorage();
  16. }
  17. })();
  18. </script>
  19.  
  20.  
  21.  
  22. <script>
  23. (function () {
  24. var isBundleInCart = localStorage.getItem('adoricAddBundleToCart');
  25. if (!isBundleInCart || isBundleInCart !== 'true') {
  26. adoric.trigger('showCampaign');
  27. }
  28. })();
  29. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement