Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by aneudy1702

  1. you need to update the product-variants element dataset


    var productEl = document.querySelector(".product-variants");
    var productDataset = productEl.dataset;
    var variants = JSON.parse(productDataset.variants);
    productDataset.variantInStock = "true";
    productDataset.unselectedOptions = "[]";
    // this will select the first variant. change this to whatever logic you have to select the right variant
    productDataset.selectedVariant = JSON.stringify(variants[0]);


  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.