Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Momenta1

Member
  • Content Count

    2
  • Joined

  • Last visited

  1. @brandon I'm getting an error "access not allowed" for that link, try again?
  2. Hello! I'm trying to create a javascript function where after a customer adds something to cart, they are sent to the cart. At the moment, they stay on the product page. I created this javascript, and it works to send the customer to the cart. However, the product doesn't appear in the cart right away. It seems like I need a delay to give Squarespace some time to add the product to the cart. I'm hoping to add a 2 or 3 second delay to allow for this. The button says "Adding..." then "Added!", so I'm not concerned about experience. Any help that can be provided would be great! <script> $(function() { var $button = $('.sqs-add-to-cart-button'); $button.on('click', function(){ window.location.href = 'https://www.pamelacardjewelry.com/cart'; }); }); </script>
×
×
  • Create New...