Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Add to cart button not working for specific products

1 0 1

Hello, the button does not work for some specific products, this is an example:


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-{{}}" 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-{{ }}"> {{ 'products.product.add_to_cart' | t }}</span>
       <img src="">
     {% endunless %}  


Reply 1 (1)

Shopify Partner
5581 642 1563

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

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