What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Add to cart button not working for specific products

Add to cart button not working for specific products

Howard20
Visitor
1 0 1

Hello, the button does not work for some specific products, this is an example: https://starlionmedical.com/products/ammex-x3-vinyl-gloves

 

Api response: {status: "bad_request", message: "Parameter Missing or Invalid",…}
description: "Required parameter missing or invalid: items"
message: "Parameter Missing or Invalid"
status: "bad_request"

 

 

<div class="fixed-button">
    <div class="product-form__item product-form__item--submit  product_payments_btns">
    {% unless section.settings.hide_addtocart %}
       <button type="submit" name="add" id="dT_AddToCart-{{section.id}}" class="dT_AddToCart dt-sc-btn {% if product.options.size == 1 and product.variants[0].title == 'Default Title' and product.variants.size == 1 %} product-form__cart-submit--small{% endif %}">
       <span class="dT_AddToCartText-{{ section.id }}"> {{ 'products.product.add_to_cart' | t }}</span>
       <img src="https://cdn.shopify.com/s/files/1/0617/4231/7786/files/heart-svgrepo-com.svg?v=1640812439">
        </button>
     {% endunless %}  
          
  </div> 
</div>

 

Reply 1 (1)

Zworthkey
Shopify Partner
5581 642 1583

@Howard20 
Welcome to the Shopify community!
Thanks for your good question.


for that, you have to hire Someone to fix it.