Hey Alok,
Just one problem with this code. “Buy Now” sticky button is on the entire website including homepage, blog pages and not just on product page. Is there any way it can only be present on product page only.
A user seeks to implement a sticky “Buy Now” button on product pages for their Shopify store using the Dawn theme. The site uses a direct checkout button instead of a standard “Add to Cart” option.
Initial Solution:
theme.liquid file to make the payment button fixed at the bottom of the screenImplementation Issues & Fixes:
{% if template.name == 'product' %} conditional tagAlternative Recommendations:
Current Status:
Hey Alok,
Just one problem with this code. “Buy Now” sticky button is on the entire website including homepage, blog pages and not just on product page. Is there any way it can only be present on product page only.