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:
