A user wants to replace the default âBuy Nowâ or âAdd to Cartâ button on their Shopify Dawn theme product page with a custom enquiry button that redirects to a specific URL.
Solutions Provided:
Two community members offered similar step-by-step solutions:
Disable default buttons: Turn off âShow dynamic checkout buttonsâ in the product page customization settings
Add custom button: Use the âCustom Liquidâ block feature in the theme editor
Insert code: Paste HTML/CSS code that creates a styled button linking to the desired URL
Position correctly: Drag the Custom Liquid block below the âBuy buttonsâ section
Both solutions include screenshots demonstrating each step and provide sample code for the custom button.
Current Status:
The original poster confirmed the solution worked successfully. However, follow-up questions emerged:
One user is experiencing 404 errors and asks where to insert the custom URL in the code
Another user (in Italian) asks how to apply this to collection pages instead of product pages, specifically replacing âAdd to cartâ with âBuy on WhatsAppâ
These additional questions remain unanswered.
Summarized with AI on November 9.
AI used: claude-sonnet-4-5-20250929.
Itâs good practice to create a copy of your theme and work on that to preview the changes before applying, especially if you are editing the raw code. Alternatively, you can also use the Shopify theme editorâs versions to revert to previous versions, but it is not recommended if you are making multiple changes.
Now to your specific question on replacing Shopifyâs default âBuy Nowâ button with a custom link. First, you will need to disable the âBuy Nowâ button from the customization settings of the product page, as shown in the screenshot below:
Hi, I am attempting to use this. I keep getting a 404 error. Iâm guessing you have to insert a custom url but I am wondering where in the code does it go and where can I get the url from? Thank in advance.
Ciao @Vinsinfo , e se invece volessi sostituire il collegamento per i pulsanti disponibili nella pagina del prodotto per una singola collezione da âaggiungi al carrelloâ ad âacquista su whats appâ?