• Resolved rcochran93

    (@rcochran93)


    Let me preface this by saying that I’m looking for more of an overview of a method which will accomplish my goal and not specific code.

    Goal
    Point woocommerce my account pages and endpoints to another subdomain.

    Current development environment
    I’m working with a WordPress multi-site network with 7 subdomains, three of which have woocommerce enabled. Access to two subdomains is restricted to specific user roles, let’s call them

    partner-type-1.example.com
    and
    partner-type-2.example.com

    The other subdomain is shop.example.com

    I have other features that signed in users without access to the two private subdomains need to be able to access such as marking their products as stolen, managing a user profile that will be used to send alerts to local partners when a product is marked as stolen, transferring ownership of products to another individual, viewing the service history of their products, scheduling maintenance, etc, so I’ve created my-account.example.com

    Question

    This is my first time working with WordPress multisite and woocommerce, so I’m still not 100% sure how everything works. Is it possible to force the woocommerce my-account pages and endpoints to point to the same URL structure on a different subdomain? I.e. Shop.example.com’s my account pages would be hosted at my-account.example.com while the URL’s on the other two subdomains would remain unaffected by the change? If so, would it be a simple redirect rule, or will it be more involved, and if it’s more involved, where should I start with my research?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @rcochran93

    Out of the box, WooCommerce and WordPress only shares information across one database. So, if you have two or more WordPress installations, in the main domain and in the subdomains, then they will act as different websites.

    That said, I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources portal for resources on developing for WooCommerce.

    Finally, you might want to visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    And if you need help building this, I highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    Seems we’ve not had additional inputs on this thread. Thus, we encourage you to make use of the above resources.

    I’ll go ahead and mark the thread as resolved but please feel free to create a new thread if you have further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress multisite network and woocommerce my-account’ is closed to new replies.