How to use the prestige theme ajax in collection page add to cart button

I am looking for add cart button on collection page.
on store prestige theme using .

i added code into snippest/product-item.liquid

{%- form 'product', product, class: 'ProductForm' -%}
            
            

            
            {% if product.variants.size == 1 %}
              
              {% else %}
              
            {% endif %}

            

              
              
  
            
  
   {%- endform -%}

the product form and data attributes are the same also enables theme drawer from theme option.

this theme ajax not working.

thanks for help

Hi @AvidBrio ,

I checked and ajax cart only supports the product page, when you add code anywhere else it wont work. It’s already bundled by the theme and you can’t edit it. https://i.imgur.com/AVM2OXc.png

So if you want ajax cart at item products, you can contact the theme support or hire an expert.

Because it is a complicated request and it is difficult for anyone to guide you in detail. You can post on the group, there will be many experts to help you: https://community.shopify.com/category/shopify-job-board

Hope it helps!

If you find my answer helpful for you, please mark it as a solution. Thank you so much and good luck,

@LitExtension I have the same clone as per prestige theme product ajax all elements need theme.js
Thanks for your reply
if you found the same solution update her.