How do I find the script

NAVE1312
New Member
10 0 0

https://shopmanestreet.com/products/brazilian-hair-weave-bundles-loose-body-wave-28-30-32-1-3-4-bund...

There's an "add to cart" button which I need to change the functionality of, but I can't find the script that's generating it (I did not create this website). I found the section file "main-product.liquid" which renders "quantity-breaks" which is the section right above the button, but neither "main-product.liquid" nor the quantity breaks file seem to contain the add to cart button or the form containing it.
I'm new to shopify so I might be missing something but I'm kind of lost, do you know where that file might be?

Replies 3 (3)

tim
Shopify Expert
3546 298 1315

theme seems to be based on Dawn, so have a look at snippets/buy-button.liquid

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
NAVE1312
New Member
10 0 0

That is the button, but I can't seem to find the actual code that the form sends data to. The form itself is inside a custom element named product-form, and the related script is a debeautified js script, so I don't know if it's actually what I'm looking for.

tim
Shopify Expert
3546 298 1315

Then it's in assets/product-form.js, https://shopmanestreet.com/cdn/shop/t/3/assets/product-form.js?v=133912708973626843101706755769 

looks pretty similar to Dawns one...

Screenshot 2024-05-20 at 12.11.39 pm.png

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com