HubSpot CMS website and WooCommerce

Hi Everyone

We had a WordPress website with WooCommerce running for some years but recently moved to a HubSpot CMS website. After making the relevant DNS changes to point to the new website, we can no longer add WooCommerce products to a shopping cart. The cursor just spins and spins.

Is this as a result of the DNS change? Does this mean we need to run the WordPress WooCommerce store on a separate domain altogether and connect the two websites via links?

Stuck :sad_but_relieved_face: Any suggestions to get our WooCommerce store running again.

Thanks, in advance.

KK

Hi @KKDiaz

My guess is Woocommerce is using the APIs to update data in WordPress.

If the domain now points to HubSpot the API URLs won’t work.

If your shop is on a Sub Domain I would check to see if you can set Woocommerce to use the Sub Domain URL.

While I haven’t done this before, that’s where I would look.

Good luck

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of Webalite a HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world’s first automated HubSpot Portal Audit that helps you work smarter with HubSpot.

Thanks @Mike_Eastwood. Spoke to my domain hosting company and they suggest the sub domain requires me to rename my main domain. Which I’m not preparred to do. Waiting to hear back from my payment gateway provider as they are a bit strict on changes at the domain level. Thanks for the suggestion. I too have a strong feeling that’s the way to go. Much appreciated.

Hi @KKDiaz

Absolutely! Your problem may be due to a DNS change, but there are other possible causes as well. When you migrated your website to HubSpot CMS and updated the DNS, some scripts or AJAX calls from the WooCommerce store may not be loading correctly, causing problems adding products to the shopping cart.

Some possible solutions:

  • Check AJAX calls – The WooCommerce shopping cart relies on AJAX. If it is not working properly, you may get a JavaScript error in the console. You can view the error in the Console and Network tabs via DevTools (by pressing F12).
  • Check CORS policy – If your WooCommerce site and the new HubSpot site are on different domains, the CORS policy may block AJAX calls. To fix this, you need to add the correct headers on the server of the WooCommerce site.
  • Clear cache and CDN – If you are using a CDN or caching plugin (e.g. WP Rocket, Cloudflare), purge it.
  • Update WooCommerce and WordPress – Make sure WooCommerce, WordPress, and other plugins are on the latest version.
  • Reconsider domain structure – If you want to run a WooCommerce store separately, it is better to host it on a subdomain (e.g. store.yourwebsite.com). Then you can link the WooCommerce store pages to the HubSpot website.

If you need help with this process, a WooCommerce Development Company can help you configure your WooCommerce site correctly and troubleshoot the problem.

Last resort:

If all the above solutions do not work, check the website server logs and detailed errors by turning on WooCommerce debug mode. If needed, seek help from a WooCommerce expert.