Support » Plugin: Broadcast » Using this plugin can a whole database be shared across sites?

  • Resolved ananddevops

    (@ananddevops)


    Hello,

    I am on multisite with a primary domain + subsite. I would like to share some data and tables from my primary domain to the subsite, infact across the whole network. How can I achieve the same using this plugin?
    Does it work like a link, so when data is updated on primary domain it automatically updates on subsites? And vice versa?

    Kindly suggest
    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    First, just so we’re on the same page: Broadcast copies / shares data between sites on the same WordPress Network install.

    Second, the posts are copied from one site on the network to another. If the posts are also linked to each other, which is standard behavior, updating the parent post will also update the child posts.

    Vice versa, updating the parent from the child, is possible, not recommended due to the complicated reversal work, but doable using the Back To Parent add-on.

    And just to clarify, you can broadcast from site 1 to sites 2, 3, 4, or from 2 to 1,3,4. The parent/child relationship of the posts are decided on a per-post basis, not per-site.

    I hope I haven’t confused you too much now…

    ananddevops

    (@ananddevops)

    @edward_plainview,

    I wouldn’t say I am confused, but many queries have sprung up from your explaination.

    The primary one of consequence is:

    1. You have mentioned have Posts, what if I am talking about any other data share from the database, across the network sites? My understanding is if posts are, the same should be as well possible for other data. But in any case how are posts shared – some databse config is tweaked by the plugin? Maybe the same can be applied for another data type as well.

    Thanks

    Plugin Author edward_plainview

    (@edward_plainview)

    Posts, pages and custom post types can be broadcasted (copied / shared). Some custom post types require some extra help on the way (attachment IDs in custom fields or whatever) but the base idea is that posts-like-objects are shared.

    ananddevops

    (@ananddevops)

    @edward_plainview It is a very interesting point you make. As in I am aware that in a Multisite the database is shared, but like in case of plugins, each has to be individually activated per site, which I am guessing would be saved in the database as a flag (on/off).

    Now products are also custom post types, right? So how could I share(not copy) them across sites? Or if you could just give an example per say any custom post type using the plugin, it will help understand better.

    Thanks

    Plugin Author edward_plainview

    (@edward_plainview)

    Perhaps this video can make things clearer: https://broadcast.plainviewplugins.com/doc/an-introduction-to-broadcast/

    WooCommerce products are custom post types. When broadcasting those, it creates a copy of the product on the child blog and copies over all the data, including images, to the child blog.

    When you update the parent product’s text or price or whatever, the changes are shown on the child blog(s).

    ananddevops

    (@ananddevops)

    @edward_plainview Thank you for sharing the video, it was very helpful and gives a lot of clarity to configure the plugin.

    I have two further queries to your points:

    1. When Broadcasted, why is a product and its data copied, why can’t it be shared? Like incase of a plugin, where it is flagged to be activated per site. The database is shared, so why create a duplicate copy and not share it and flag it per site?

    2. I know you have mentioned earlier –

    Vice versa, updating the parent from the child, is possible, not recommended due to the complicated reversal work, but doable using the Back To Parent add-on.

    Consider a child site to sell a broadcasted product, hence the stock quantity would reduce. In order for the reduced stock quantity to show back on to the parent, would I need the above addon and is it fool proof? Is there a simpler way to do it?

    Thanks

    Plugin Author edward_plainview

    (@edward_plainview)

    1. Because that’s the way WordPress itself works – post IDs are per site, not per network. So posts and attachments need to exist locally on each site.

    2. The WooCommerce add-on, together with the BackToParent add-on, can sync orders and stock between broadcasted products.

    ananddevops

    (@ananddevops)

    @edward_plainview

    1. Ah Ok. For the lack of my indepth knowledge of WP Multisite at an implementation level, would you help me understand, how does it work for plugins? I mean somewhere there must be some config which says:
    – admin user shared across network
    – plugins, flagged active per site
    – other user flagged active per site
    These must be flags in the DB which are toggled depending on activation/deactivation from front end, right? They can’t be copies
    Similarly, using Broadcast, can we achieve the same, like when network enabled, it is flagged across all sites on the network? Just curious if it is at all a possibility

    2. You mean the regular WooComm plugin? And can all parameters, other than stock, like billing, shipping, etc be synced back?

    Thanks

    Plugin Author edward_plainview

    (@edward_plainview)

    1. Explaining how WordPress works is getting way beyond the scope of support for a simple plugin. If you want more details, ask the WordPress creators themselves.

    The short answer is that only the user database is shared between sites. Nothing else.

    2. Stock can be automatically synced between the linked products.

    THe other things, billing and shipping etc, can be manually copied using the Settings Copy tool (see the screenshots on the Broadcast WooCommerce add-on page), since they are settings for WooCommerce itself, not the products.

    ananddevops

    (@ananddevops)

    @edward_plainview Absolutely :). Much appreciate the help already provided. Will reach back for further relevant queries.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.