• Resolved sujeet036

    (@sujeet036)


    Hey,

    I am developing a digital marketplace. It seems the seller is able to delete products. What if a buyer comes back to download their purchase
    again (I know I have) and the product has gone. As they buy it from us should we ensure it. How can we disable it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @sujeet036 ,

    This is a good question.

    We have two filters available to modify the product actions. Use these code in your theme’s functions.php file to remove the delete options from the vendor dashboard –

    add_filter('dokan_product_row_actions', function($row_action) {
    	unset($row_action['delete']);
    	return $row_action;
    });
    
    add_filter('dokan_bulk_product_statuses', function($bulk_actions) {
    	unset($bulk_actions['delete']);
    	return $bulk_actions;
    });

    Let me know if you have any more questions.

    Thank you ??

    Thread Starter sujeet036

    (@sujeet036)

    Thank You @rur165

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deleting Products’ is closed to new replies.