Support » Plugin: Best WooCommerce Multivendor Marketplace Solution - WC Marketplace » Vendor cannot edit a never-published draft product

  • Resolved meglio

    (@meglio)


    To reproduce:

    1. Disallow vendors to edit a published product.
    2. A vendor creates a product and saves it as a Draft (does not submit for publication).
    3. Now the vendor does not have an “Edit” button for the product in the Products list.

    Expected behaviour: the vendor should be able to edit its draft products regardless of the WCMp setting.

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

    (@dualcube)

    @meglio, thanks for reporting this issue. We are looking into this, will keep you posted.

    Plugin Author Dualcube

    (@dualcube)

    @meglio, this is a typo issue. As there is only one capability to edit products (whether draft / published), hence this setting should call “Edit Product”.

    We will fix this typo in our next update.

    So what’s the idea of not allowing product owners to edit their own product drafts? It is counter-intuitive.

    As a vendor, I may want to save and resume editing a product multiple times until I send it to approval. But if editing published products is disabled, editing drafts becomes disabled as well.

    So, for me as a store manager, how would I configure the store to allow editing draft product until they are approved, but once approved, disable editing.

    This is a serious issue for me too.
    As far as i understand WCMP answer, the backend option will be to Disallow vendors to edit a product, either published or not . Is that right ?

    In this case, the option i nouse.

    The expected behavior should be EXACTLY as meglio wrote:

    “Expected behaviour: the vendor should be able to edit its draft products regardless of the WCMp setting.”

    Plugin Author Dualcube

    (@dualcube)

    @matthieuh, @meglio, WooCommerce provides one capability “edit_products”, this applies for both “draft” as well as “published” product.

    You man want to allow the editing screen per se, but hook into saving action and prevent saving and throw an error when vendors edit a published product and it’s disallowed, but still make it through when they edit a draft / unpublished product.

    Does it make sense for you? Let’s make this feature useful and meaningful.

    Plugin Author Dualcube

    (@dualcube)

    @meglio, @matthieuh, there is a way to let the vendor edit the draft product, for that, you have to enable the capability “let the vendor edit product” via WCMp >> Settings >> Capability.

    Now, you have to do a bit of custom coding and restrict the vendor from editing the published product using edit_private_products edit_published_products capability for the role dc_vendor only.

    Let us know if you have any further query.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Vendor cannot edit a never-published draft product’ is closed to new replies.