Vendors being able to Duplicate Vendors Products.

WCMp Core

Vendors being able to Duplicate Vendors Products. Resolved

Viewing 3 reply threads
  • Author
    Posts
    • #1267
      TSIL
      Participant

      In the middle of another thread I asked.

      Is it was possible to allow vendors to duplicate their products in the products dashboard.

      Sandeep replied.

      Hello Glynn,

      Guess what I found a way for this 🙂

      Just add the following code in the function.php file of the child theme.

      add_filter( ‘woocommerce_duplicate_product_capability’, ‘duplicate_product’ );
      function duplicate_product() {
      return “edit_products”;
      }

      It worked for me so I hope it would for you too. If not, do let me know.

      Regards,
      Sandeep

      I done the same and it worked just fine.

      So I thought I’ed post this where everyone could find it.

      Regards
      Glynn.

    • #1268
      WCMp Admin
      Keymaster

      Glad to know that the solution worked for you Glynn 🙂

    • #2506
      TSIL
      Participant

      Hi Folks

      I’ve just had to reinstall this piece of code and noticed after logging in as a vendor that this code only affects the Admin products list and not the individual vendors product lists is there any way of rectifying that?

      Regards
      Glynn.

    • #2531
      WCMp Support
      Keymaster

      Hello Glynn,

      Add this code snippet in your child themes functions.php file:

      add_filter( ‘woocommerce_duplicate_product_capability’, create_function( ”, ‘return “edit_products”;’ ) );

      I hope this will help you, if not then please let us know.

      Regards,
      Rimpa

Viewing 3 reply threads

The topic ‘Vendors being able to Duplicate Vendors Products.’ is closed to new replies.

WCMp bundle is available at a slashed price

Grab It Now