Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Edit private product

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #129948
      MaxenceTP
      Participant

      Hello,

      Is it normal that a seller can see his products on the store page when they are private, but he can’t modify them on his seller dashboard?
      I would like him to be able to modify them, even if they are in private.

      Thanks 🙂

    • #129966

      Hi, the default flow of products works like this.
      If you make a product private then the vendor will be able to see that product only on his shop page. In order to let vendors edit products from the shop page, it must be made public.
      However, you can always do custom code to add this modifictaion in your site.

    • #129978
      MaxenceTP
      Participant

      Okay, okay, I understand. Can you help me with the custom code to use?

      If not, how can I create a product as an admin that can be edited by the vendor on his dashboard but without the product being visible to the users?
      For me there is only the private mode that allows to hide it really, but the seller can’t edit it on his dashboard. Maybe there is another way?

    • #129979

      Hi,

      Using below filter vendor can edit the private product but after submit the product the product status will be publish and public status no more.

      Please add this code in the function.php of the current active theme :
      add_filter('wcmp_vendor_dashboard_default_product_list_statues', 'wcmp_product_list_add_private' );
      function wcmp_product_list_add_private( $status ) {
      	$status = array('publish', 'pending', 'draft', 'private');
      return $status;
      }
      Copy

      Regards,

    • #130119
      MaxenceTP
      Participant

      Thank you!
      This problem is solved 🙂

Viewing 4 reply threads

The topic ‘Edit private product’ is closed to new replies.