Buy it now button not working (doesn't react)

Hello all,

My “Buy it now” button (renamed “Add to cart”) is not reacting even when clicked or tapped in the desktop, mobile, and incognito (Chrome) modes. My “Buy it now” button (now “Add to cart”) worked for 1 day, but after I set up Shopify Payments and PayPal, it stopped working (I’m not sure if that has to do with the button’s functioning).

I am using the Dawn theme for my Shopify store.

I previously took out the original “Add to cart” button by deleting these lines of code from main-product.liquid:

                    <button
                      type="submit"
                      name="add"
                      class="product-form__submit button button--full-width {% if block.settings.show_dynamic_checkout and product.selling_plan_groups == empty %}button--secondary{% else %}button--primary{% endif %}"
                    {% if product.selected_or_first_available_variant.available == false %}disabled{% endif %}
                    >

My “Show dynamic checkout buttons” on my theme editor is on.

Here is a link to my product page:

https://bionotix.com/products/bionotix%E2%84%A2-automatic-soap-dispenser

The way I renamed my “Buy it now” button to “Add to cart” was by replacing the “Buy it now” text to “Add to cart” in this line of code in main-product.liquid:


if you uninstall the zrx-sticky button app does it work?

Hi, thanks for the response!

I tried uninstalling the zrx-sticky app, but my “Buy it now” still didn’t work unfortunately (so I reinstalled the app again)

At the edit code, go back to a previous date on the page you edited the text,

Add to cart

1 Like

Hi JumpingFox!

So I tried to go back to previous dates with the method you showed, but the button didn’t work even on the oldest version.

Fortunately, I had saved some old copies of my shop theme, so I was able to go back to an old one where the button works (although I have to redo some other changes I made).

Thanks a lot for the suggestion! I really appreciate it!

1 Like

Glad I could help

1 Like