How to redirect Add to Cart to External Link?

To redirect Add to Cart on all products to same external link, you can use this code to Website Tools > Code Injection > Footer.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
  $(document).ready(function(){
$('.sqs-add-to-cart-button-wrapper').click(function() {
    window.location.href = 'https://www.google.com';
});
  });
</script>


Replace Google with your desired url

1 Like

The square space cart seems to work okay when ordering from the product page. when i access the Free assessment and get to the recommended products and then add to cart - it does not add. In simple I want to add product to the cart when some click any other button instead of add to card button

1 Like

Do you have link to page/product where you have problem?

1 Like

bachremedyfinder ca/free-assessment

Where is add to cart on this page? I don’t see button

First user have to fill 7 check atleast then click get remedy then click order my remedy once he order I want it to be at cart then use proceed the checkout as normally