WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WooCommerce – excelling eCommerce] Checkout page not working properly if used in a subdomai

[Resolved] [Plugin: WooCommerce – excelling eCommerce] Checkout page not working properly if used in a subdomai

  • 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.

    http://wordpress.org/extend/plugins/woocommerce/

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

    @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.

    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 Author Mike Jolley

    @mikejolley

    Sorry, general settings.

    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 Author Mike Jolley

    @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.

    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 Author Mike Jolley

    @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 ‘[Resolved] [Plugin: WooCommerce – excelling eCommerce] Checkout page not working properly if used in a subdomai’ is closed to new replies.