How to allow a vendor delete his Product from front-end?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 year ago
nopcommerce 4.50

i want to allow vendors to delete their own products from front-end

so just check if the product is created by this user and if yes then show a link in _productbox like this for example <a href="/smth/delete-product-id-4444">delete product</a>

any ideas how to do this without changing the source code?

thanks
1 year ago
Hello,

You can create delete button and load into product box through widget. And display that button only if current login user is vendor and the product is not from other vendor.

Above is the best idea for without touching nopCommerce core code.

Thanks,
Jatin
1 year ago
forefront wrote:
Hello,

You can create delete button and load into product box through widget. And display that button only if current login user is vendor and the product is not from other vendor.

Above is the best idea for without touching nopCommerce core code.

Thanks,
Jatin


How to do it? :)
1 year ago
https://docs.nopcommerce.com/en/developer/plugins/how-to-write-widget-for-nopCommerce.html?q=widget
1 year ago
New York wrote:

Does creating plugin requires changing the source code?
1 year ago
arthur_shneider wrote:
Does creating plugin requires changing the source code?

Well you dont change the core source code
but you need to use Visual Studio to create the plugin using source code as a seperate project
Then build the solution
Then install the plugin
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.