shopify Liquid error: Could not find asset snippets/product-form.liquid

Mariana_Gonçalv
New Member
7 0 0

Hello everyone,

I am struggle with the error on the Subject.

This error happened after i hide a Add To cart Button from a specifiq collection products.

I followed the steps on this post to remove the Add To Cart from the collections page :

https://help.invisiblethemes.com/article/60-advanced-hide-add-to-cart-button-for-certain-products

And this post to remove the button and quantity selector from the products page:

https://shopify.dev/tutorials/customize-theme-replace-add-to-cart-button

 

EDIT: I created an snipett with product-form (without any code inside ) name and the error disappeared but i'm not sure if this will not cause other errors.

 

What i can't understand is that this error only shows on the other products. Anyone can help?

Store url: www.oteucabelo.comerror 1.png

0 Likes
JoesIdeas
Shopify Expert
1188 104 287

It sounds like you either deleted the product-form.liquid snippet, or you are including it somewhere.

If you need that snippet, grab it from the previous theme before you edited this one.

If you don't need the snippet, look for in the template / section for product.liquid and remove {% render 'product-form' %} or {% include 'product-form' %}.

Of course, always work on a backup theme so you have the most recent working version saved + your live site isn't affected if you make a mistake. (I wrote a guide on how to safely work on Shopify themes, if you're not familiar: https://speedboostr.com/how-to-safely-edit-your-shopify-theme/).

Founder of Speed Boostr (Shopify optimization experts, theme customization, custom app development).
Creator of Shopify Analyzer (first performance analysis tool for Shopify sites, free for the Shopify community).
Creator of Order Automator (auto tag orders and customers + auto fulfill orders + email notifications).
Creator of Theme Scientist (A/B testing app) and Tip Jar (add a tip button to your store).
0 Likes