Product page showing 2 add to cart

Topic summary

Issue: One specific product page shows two “Add to Cart” buttons; only one works, the other leads to a broken page. The backend lists the standard buy buttons, and a screenshot is provided for context.

Likely cause: Duplicate code in the product’s template/section causing the product form to render twice. Liquid (Shopify’s templating language) snippets like {{ form | product_form }} or references to ‘product-form’ may appear in two places.

Recommended checks:

  • Review theme files, especially sections/main-product.liquid, for repeated product form/button markup.
  • Ensure the “Buy buttons” block isn’t added twice; while uncommon by default, a heavily modified or older theme could allow it.
  • Audit installed apps or custom scripts that inject additional buttons on product pages and temporarily disable them to isolate the source.

Status: No confirmed fix yet; actions focus on code and app review. The discussion remains open pending verification and removal of the duplicate instance.

Notes: The attached image helps illustrate the duplicate button display but isn’t required to follow the troubleshooting steps.

Summarized with AI on December 10. AI used: gpt-5.

I am having a strange issue where only 1 product page is displaying 2 add to cart buttons. Only one of the buttons work and the other one goes to a broken page. I can’t figure out where this came from or why it is happening. In the back end it shows up as the regular ‘buy buttons’ that are on every page. Here is the page Organic Baby Crib Mattress | Safe and Natural Crib Mattress | Obasan

It looks like your product page is showing the “Add to Cart” button twice because there’s probably duplicate code somewhere. The first thing to check is your product template or section, see if there are two instances of the product form code ({{ form | product_form }} or {{ 'product-form' }}).

Also, check any apps that add buttons or custom scripts on product pages, sometimes they inject a second button automatically. Removing the extra instance should fix the broken button issue.

The button seem to be coming from your theme liquid Code, so you should check code of your sections/main-product.liquid

Also make sure that “Buy buttons” block is not added twice – this should not be possible by default, but, who knows, your theme is pretty old and can be seriously modified.