You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sparkyhd Doesn't it already do that? The addToCartBtnSelector: '[type="submit"]', part should make it so it picks up any element with type set to submit. So I'm sure even if it's a button as longs as it has type=submit, it should work.
I'd like to put the product title inside the Add to Cart description and break it across 2 lines. To style it I'd like to use instead of
<input type="submit" name="button" class="add" value="Add {{ product.title }} to Cart - {{ variant.price | money }}" />
replaced with
<button type="submit" name="button" class="add">Add to Cart<br>{{ product.title }} - {{ variant.price | money }}</button>
Could the script be more generic so it picks an element by id rather than looking for the submit button?
The text was updated successfully, but these errors were encountered: