Automatically change product status after disapproval

WCMp Advanced Frontend Manager

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #140015
      Tim Kerremans
      Participant

      Hi,

      I would like to automatically change product status to draft or disapproved status after a product has been disapproved. It would be better if the product status can be changed to disapproved to clearly distinguish every product status from each other.

      Currently it’s really hard to manage all products as on the pending product page, there is no way to differentiate products that have been disapproved and products that have just been submitted and thus have not yet been checked.

    • #140035

      Hi,
      As per your requirement you need to good amount of custom code. First you have to add a custom woocommerce product status after that you have to modify our custom code.

      WCMp added dismiss function using this hook

      add_action('wp_ajax_dismiss_vendor_to_do_list', array(&$this, 'dismiss_vendor_to_do_list'));
      Copy

      You have to remove this hook and add aging with your custom function.

      Regards,

    • #140036
      Tim Kerremans
      Participant

      This is if we want to change the status to disapproved, but what if we just want to change the product status to draft after rejecting product?

    • #140081

      Tim, as shared earlier, WCMp added dismiss function using this hook

      add_action(‘wp_ajax_dismiss_vendor_to_do_list’, array(&$this, ‘dismiss_vendor_to_do_list’));
      So, you need to add your code using this hook, to set the product status as Draft.

    • #144906

      Hi Tim, we haven’t heard back from you for a while.
      So we presume this issue has been fixed. We are closing this for now.

Viewing 4 reply threads

The topic ‘Automatically change product status after disapproval’ is closed to new replies.