• I have WooCommerce and Multisite installed on my “parent site,” meaning I don’t need WooCommerce installed on the multisites. One of my products is “Website Maintenance.” If a user has created three multisites, for example, then I need that “Website Maintenance” product to be offered once for each multisite.

    The only way I can think to accomplish this is by manually creating new products for each multisite that’s created. Maybe it’s possible to automatically create new products upon registration of a multisite. Or a single person could have multiple accounts on my “parent site.”

    Any help is greatly appreciated.

    I should mention that the reason I don’t want WooCommerce on each multisite is that each site will get deleted after a couple of months, and I need subscriptions to last indefinitely.

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

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

    (@mikejolley)

    Are you saying WooCommerce is network activated? Because that isn’t a supported setup – it works on a per-site basis.

    I\m not sure what you’re doing however.

    > then I need that “Website Maintenance” product to be offered once for each multisite.

    What do you mean by this? What are you selling, and what does that give the user?

    Thread Starter davidkonicek

    (@davidkonicek)

    It is not network activated. It’s only on the “parent site.”

    It’s a virtual product. I have several products, but I’m using a product called “Website Maintenance” as an example. I don’t think it should matter what I’m selling to resolve this.

    Say a user creates two multisites, one called “Forever Piers” and another called “Lighting Gallery.” I’m using those two sites as development sites for those companies, which I will eventually migrate to their own domain when development is complete. So on my “parent site” I want a product called “Forever Piers Website Maintenance” and another product called “Lighting Gallery Website Maintenance”

    One way to do this would be for me to manually create a product called “Forever Piers Website Maintenance” after they have created that multisite, and I would show that product only to that user.

    Thank you very much for your reply.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thats the part I’m not clear on:

    One way to do this would be for me to manually create a product called “Forever Piers Website Maintenance” after they have created that multisite, and I would show that product only to that user.

    “Show that product only to that user” I don’t understand what you’re showing them. If users are purchasing services from yourself, there is nothing to ‘show’.

    Thread Starter davidkonicek

    (@davidkonicek)

    That’s really a separate issue I’ll work on later. I just don’t want someone who is not associated with Forever Piers to be able to check out with the product “Forever Piers Website Maintenance.” So I would basically hide my entire shop, and create a page showing only products associated with their multisite.

    I’ll try to lay out the scenario again as it developed for me – I had my parent site with several virtual products (basically invoices). One product, for example, is called “Website Development” and a user could buy that product to pay for my time developing their site. That will always be a flat fee. There is another product called “Website Maintenance” that they can purchase, get charged once a month, and I maintain their site for them. The problem arises when they have created more than one multisite, and they need to purchase “Website Development” and “Website Maintenance” for each of those multisites. The way WooCommerce is set up initially, if they purchased “Website Maintenance” twice, I wouldn’t know which multisite that is associated with. So I could resolve that by simply manually creating products every time someone registers a multisite. The products would be called “Forever Piers Website Maintenance,” “Forever Piers Website Development,” “Lighting Gallery Website Maintenance” and “Lighting Gallery Website Development.”

    Hope we’re getting closer here. Thanks again.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    If “Forever Piers” is a client, why not just add invoices manually and send via email? Then the client can come in and pay

    Otherwise you may want to look into a membership system and restrict access to products that way.

    Thread Starter davidkonicek

    (@davidkonicek)

    Yes, I can do all of this manually. I was wondering if there is a way to automate it. When a new multisite gets created, I want to clone some products, and add the new site title to each of those products names.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Whilst I’m sure it can be done using WP hooks (then inserting a product either via REST API or programmatically), if you did manual orders you wouldn’t need a product per client – you’d set the name + price when creating the order.

    Thread Starter davidkonicek

    (@davidkonicek)

    Thanks. I now realize this is a more complex issue than I initially thought. I will continue to develop this feature and post my results here, but feel free to set this as resolved at any time if you want.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Products for each multisite’ is closed to new replies.