Problems with custom URL and Buy Button

Problems with custom URL and Buy Button

photobeth
Visitor
2 0 0

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. 

Replies 3 (3)

Nilankar
Shopify Partner
70 9 13

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.

Mark this as accepted if it fixed your problem. Need custom development or technical assistance?
Say hello on WhatsApp | Email : nilankar19@gmail.com
Feeling Generous? Buy Me a Coffee
photobeth
Visitor
2 0 0
I was beginning to think that same thing. I am not real tech savvy and
only know a little about the code to make a shopping cart work.
I read and was told this would work outside of Shopify's servers if I had
my DNS settings correct and added my custom domain to the Buy Button Code.
But I am so tired of trying for days to get it to work that I am willing to
just go with Shopify's domain.
I only wanted to use the Buy Button as a less expensive alternative, but I
may have to try setting up a store instead.
I actually have an online store as an iframe on my site from Fine Art
America and it works well. It is also inexpensive. But they have strict
design styling limitations and they do discount sales that take away from
my mark up, so that's why I wanted to try something new.
I am willing to try to Embed The Online Store in an iframe, but don't have
a clue where to start. I will see if I can look at any guides or tutorials.
Any suggestions would be great.
Thanks so much for the reply. I really appreciate it.
-Beth

gigamedics
Visitor
1 0 0

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