While there is no default feature to completely disable product editing for vendors, you could achieve it by editing the PHP template.
The way I see this working is by copying the edit-product.php file from the MarketKing core files to your child theme and editing it there. If you simply remove the action buttons like "Publish Product" or "Save as Draft" from the template, that should effectively solve it and leave vendors with only a view option.
Hi,
I would like to disable product editing for sellers, leaving only the view option. How can I add it?
Thank you in advance.
Hi Tabard,
Thanks for reaching out.
While there is no default feature to completely disable product editing for vendors, you could achieve it by editing the PHP template.
The way I see this working is by copying the
edit-product.phpfile from the MarketKing core files to your child theme and editing it there. If you simply remove the action buttons like "Publish Product" or "Save as Draft" from the template, that should effectively solve it and leave vendors with only a view option.You can find a guide on how to safely edit and override templates in our documentation here:
https://woocommerce-multivendor.com/docs/how-to-edit-marketking-pages-templates/
Let me know if you have any questions about this,
Kind regards,
Stefan
Hi,
Thanks for your reply.
I modified the file products.php by removing the link to the product edit and the Edit action.
That's enough for me. Thank you.