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


  • Content Count

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @creedon OH that makes sense! Glad we got that sorted. Thanks again!
  2. I'm building on online store for a cannabis company, and certain laws and regulations are presenting me with unique challenges. For example, we aren't allowed to directly sell cannabis products on our site, so I've made our "add to cart" buttons link to the BC Cannabis website instead of adding the item to the cart. My next challenge is to hopefully set up the squarespace store pages to automatically update the product prices when they change on the government website, in order to save time and prevent miscommunications that might frustrate customers. Does anybody have any insight in
  3. @creedon https://bat-tambourine-b37e.squarespace.com/products/p/kissbeverage Not sure what there is to learn, but here's one of the product pages; site password is "testvibes". Note that none of them are working at the moment, and all of them worked before things suddenly went wrong. By the way, did you by any chance back up the code you made before adding functionality for variants? I regrettably did not, but if possible I'd like to see if that still works.
  4. @creedon WELL it worked for a very short time, and then suddenly for seemingly no reason none of the Add to Cart buttons were links anymore. I'm sorry to rely on you once again, but I'm at my wit's end trying to figure out what's causing the sudden problem 🙃 To the best of my knowledge, I didn't make any meaningful changes to the script between when it worked and when it didn't but I've attached my current code at the bottom in case you can see something I cannot. I've also verified that the sku codes didn't change for the products, so that isn't the issue. The notable changes t
  5. @creedon Works perfectly! You're a wizard, thanks for taking care of this so quickly!! 😁
  6. @creedon I appreciate you checking it out! Well idk if this helps but I did confirm that I can specify which variant to select for the link by changing the value in this line: const sku = Static.SQUARESPACE_CONTEXT.product.variants [ 2 ].sku; However, still no idea how to read the user's input. Also, if the value isn't set to 0 the products without variants go back to adding to cart. Let me know if you think of anything! By the way, I tried simply repeating the line with each possible value like so: Static.SQUARESPACE_CONTEXT.product.variants [ 0 ].sku; Static.SQUA
  7. @creedon Thanks so much!! This MOSTLY works. The only problem is that it doesn't work for products with variants, like the attached screenshot. Although I made separate entries for each sku in the list, the "add to cart" button redirects to the link associated with first item (SQ94*****) regardless of which variation is selected in the drop-down menu. Do you perchance know of a way around this besides giving each item its own page?
  8. This worked for me! However, this makes it so that every "add to cart" button links to the same url. Is there a way to use different links for different products on the site?
  • Create New...