AbanteCart Community

Shopping Cart Operations => Support => Topic started by: cymru78 on May 13, 2022, 08:49:52 AM

Title: Add To Cart not displaying on other domains
Post by: cymru78 on May 13, 2022, 08:49:52 AM
Hi,
I have got my main website and three other domains that point to the main site.

When I go to my site using the other domains, the little Add to Cart icon is just a blank square.

Does anyone know why this might be happening, and how I could fix it?

Thank you.
Title: Re: Add To Cart not displaying on other domains
Post by: Basara on May 13, 2022, 09:25:21 AM
Hello.
This can happen if your store URL and the URL you visit are not the same such as www.store.com vs store.com etc
Title: Re: Add To Cart not displaying on other domains
Post by: cymru78 on June 22, 2022, 08:18:12 AM
Hi,
I forgot that I made this post. Oops.

Is there a way of fixing this at all?

My main domain is flauntitvintage.co.uk and the other domain, which redirects, is prewornclothing.co.uk
Actually, I have two domains that direct to the main one.

In fact, I've just realised the blank square also displays for www.flauntitvintage.co.uk as well, which I never noticed before.
Title: Re: Add To Cart not displaying on other domains
Post by: Basara on June 22, 2022, 09:42:08 AM
Try to clean AbanteCart cache
Title: Re: Add To Cart not displaying on other domains
Post by: cymru78 on June 22, 2022, 10:18:05 AM
Unfortunately, it doesn't look like that's worked
Title: Re: Add To Cart not displaying on other domains
Post by: Basara on June 23, 2022, 01:11:42 AM
Hello.
flauntitvintage.co.uk icons look fine on my side. And you redirect to the wrong site. Your store url is flauntitvintage.co.uk, not www.flauntitvintage.co.uk so fix your redirects

Title: Re: Add To Cart not displaying on other domains
Post by: cymru78 on June 23, 2022, 12:40:00 PM
Thank you

I seem to be getting somewhere.

flauntitvintage.co.uk / flauntitvintage.com / prewornclothing.co.uk / prewornclothing.com all seem to be working fine now, with and without the www's

The only one that doesn't seem to be working is www.flauntitvintage.co.uk
In the back-end (set as https), if I change the Secure Store URL setting to www.flauntitvintage.co.uk it works, but then it stops working when accessing the site without the www's

Any ideas?


Title: Re: Add To Cart not displaying on other domains
Post by: Basara on June 24, 2022, 01:22:24 AM
Hello.

www.flauntitvintage.co.uk and flauntitvintage.co.uk are 2 different URLs. Add a redirect from www. to your store URL
Title: Re: Add To Cart not displaying on other domains
Post by: Basara on June 24, 2022, 01:22:51 AM
Hello.
This can happen if your store URL and the URL you visit are not the same such as www.store.com vs store.com etc
Title: Re: Add To Cart not displaying on other domains
Post by: cymru78 on June 24, 2022, 01:57:34 AM
Unfortunately, it doesn't look like there is a way for me to set up a redirect because this is where my store is hosted.

I think I might have to contact my hosting provider to see if it can be done. But at least all the other ways are now working and it's not very often someone will type www. to access my site anyway.
Title: Re: Add To Cart not displaying on other domains
Post by: Basara on June 24, 2022, 02:03:26 AM
Hello.
You can setup a redirect in the .htaccess file
Title: Re: Add To Cart not displaying on other domains
Post by: cymru78 on June 24, 2022, 02:22:45 AM
I didn't know that, so thanks.

However, I've just done another quick refresh of the cache and it now seems to be working fine no matter which domain I use to enter the site.

Thanks for the help.