On my site I have the following structure to an item that I want to have shipping calculated at checkout, but upon trying several different things including defining data-item-weight
, data-item-height
, data-item-length
, and data-item-width
I can’t get around the “Since no weight was specified, free shipping is returned” error.
Checking my site via curl requests show that these HTML attributes are setup on the page that contains the snipcart-add-item
element.
$ curl -s "<path-to-item>" | grep -B 4 "data-item-weight"
class="kg-product-card-button kg-product-card-btn-accent snipcart-add-item"
target="_blank" rel="noopener noreferrer"
data-item-id="<my-item-id>"
data-item-price="0.75"
data-item-weight="100"
Though this following error keeps showing up in the developer logs.
Since no weight was specified, free shipping is returned. Make sure you specify the product dimensions. https://docs.snipcart.com/v3/setup/products#product-dimensions
Is there something else I’m missing here?