WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Checkout page not working properly if used in a subdomai (8 posts)

  1. radi_v
    Member
    Posted 2 years ago #

    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/

  2. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. radi_v
    Member
    Posted 2 years ago #

    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?

  4. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry, general settings.

  5. radi_v
    Member
    Posted 2 years ago #

    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?

  6. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  7. radi_v
    Member
    Posted 2 years ago #

    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.

  8. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic