Hello, I just wanted to know why my add to cart buttons aren’t working properly, as well as my Price.
Here’s the link: Trinity Performance Labs | Engineered Nutrition for the Relentless.
It’s supposed to display 42.99, and actually does so in checkout, but the homepage button doesnt seem to work…
It also displays it correctly when its on the actual product page itself.
Hope someone can help me with this, thanks in advance!
Hey @Tanmingbye! I’d recommend checking:
- Whether the homepage section is using a custom add-to-cart button instead of Shopify’s native product form
- If the button is linked to a product without specifying a variant ID
- Any upsell, bundle, or custom price script affecting homepage sections
If this is a theme section, try re-adding it or switching the button to “View product” instead of “Add to cart.” If it’s app-generated, contact the app or theme support—they’ll usually need to fix the button logic.
Have you tried in incognito mode or on another device?
As it seem to be working fine for me…
I can see 42.99 price on the homepage.
It’s working well on my end. Did you try using a different browser to check?
yup thanks everyone, i tinkered around abit more and finally got it to work haha 
Thanks for all the contribution!
Can you elaborate for future merchants, you can also mark your own posts so solutions when you give details.
Hey,
The “Add to Cart” button on your homepage is not working because it’s missing the necessary form action to submit the product to the cart. The price discrepancy for your product on the homepage is likely due to how product variants are being handled or an issue with the display logic for the default variant price.
To fix the add to cart button:
- In your Shopify admin, go to Online Store > Themes > Actions > Edit code.
- Open the file
Sections/featured-collection.liquid (or similar section file for your homepage collection display).
- Locate the “Add to cart” button code.
- Ensure it’s wrapped in a
<form> tag with the correct action="/cart/add" and a hidden input for id (product variant ID) and quantity.
To address the price display:
- In the same section file, verify that the price is being rendered from
product.price or product.selected_or_first_available_variant.price.
- Check if there’s any JavaScript that might be altering the price display on page load.
Best,
Daniel Smith