Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am having problems using my custom domain in the Shopify Buy Button code on my website.
I want to use a Buy Button on my Website instead of having a full Shopify Store.
I purchased a custom domain thru Shopify. So Shopify is the Domain's Registrar but the Domain site is hosted at another hosting company. (Cloudways)
When I replace Shopify's domain to the custom domain in the Buy Button Code, the button doesn't work. If it does show up, the cart page URL is showing my custom domain but it shows page not found.
In DNS settings in Shopify, I pointed the Domain to my Host's IP Address using an A Record: @ "Host's IP".
In Domain settings in Shopify, I changed my custom domain to be the Main Domain and I changed the Shopify domain to redirect to my custom domain.
If I use the Shopify URL in the Buy button Code, the button works and the cart page reflects Shopify's web address.... even though my domain settings are not pointed to Shopify's servers anymore in Domain DNS settings.
I have talked with an advisor 2 times, but so far I have not had the issue resolved. I may be missing something really easy, but any help would be appreciated.
My goal is to have the Buy Button show on my webpage and have the cart page reflect my custom domain in the URL. Thanks in advance.
Buy Button needs Shopify’s servers to process the cart/checkout. You can’t swap in your custom domain because your host (Cloudways) doesn’t run Shopify’s checkout system. Either stick with the Shopify domain in the Buy Button or go headless (much more work).
Embed a Shopify "Online Store" page in an iframe in hosted page.
Hi there, I was having this same problem. Here's what you can do to fix it for most other hosted sites:
1) Go to Shopify
2) Create a new Buy it Now Embed code
3) Choose which type of Buy Button you want (Individual or Collection)
4) On the next page look at the "advanced" link to the far left and click on it
5) Under Checkout Behavior Choose "Open New Pop-Up Window"
Now it works perfectly!
- Cory
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025