• Resolved radi_v

    (@radi_v)


    Hi everyone,

    Today I tried to set up an online store in a subdomain and found out that the checkout page does not like it…

    The problem is that after you add an item to the cart and then press proceed to checkout you will see the checkout page with the address form, but the order total and choose payment sections never finish updating.

    I assume the problem is in the AJAX call not getting the subdomain part correctly.

    Thanks,
    Radi.

    https://www.ads-software.com/extend/plugins/woocommerce/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Check your browser’s error console, and check in Settings > Reading that both URLS (home and site) are the same.

    This will be the problem.

    Thread Starter radi_v

    (@radi_v)

    when you say both URLs are the same do you mean this:

    1.Settings -> Reading – Front page
    2.Settings -> General – Site Address (URL)

    are the same?
    or that Settings -> General:
    WordPress Address (URL) and Site Address (URL) are the same?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Sorry, general settings.

    Thread Starter radi_v

    (@radi_v)

    Well, how do you make a subdomain and still have your WordPress Address (URL) and Site Address (URL) the same?

    I have right now :

    1.WordPress Address (URL) sitename.com/shop/
    2.Site Address (URL) shop.sitename.com

    What do you suggest I should do?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Why can’t they be the same? Pretty sure it will still function the same..

    AJAX requests cannot be cross-domain, so if they don’t match it will give an error.

    Thread Starter radi_v

    (@radi_v)

    I am in no means a WP expert but here is what the Codex says about it:

    1.The "Home" setting is the address you want people to type in their browser to reach your WordPress blog.
    2.The "Site URL" setting is the address where your WordPress core files reside.

    The way host companies do subdomains is that they make a subfolder in your main website that they link to the subdomain…

    Does it make sense?

    I am also not a AJAX expert, but here is what I found Cross-Domain Ajax Request

    PS please correct me if I am wrong.

    Thanks,
    Radi.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Both map to the same place so it really doesn’t matter afaik

    We might support cross domain using jsonp in the future but not yet.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WooCommerce – excelling eCommerce] Checkout page not working properly if used in a subdomai’ is closed to new replies.