• Resolved racheligraf

    (@racheligraf)


    I build a wocommerce site and I can not set a user to duplicate products.
    How do I give permission to duplicate products?
    Thank you!

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    What plugin does provide duplicate product functionality at your site?

    Thread Starter racheligraf

    (@racheligraf)

    Hello The plugin I use is duplicate-post
    Thank you!

    Thread Starter racheligraf

    (@racheligraf)

    Hello, do you have an answer for me? It’s really urgent for me!
    Thank you!

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    Try to add ‘copy_posts’ capability to your role.

    Thread Starter racheligraf

    (@racheligraf)

    Thanks! But I tried to give permission to copy_posts and still the user could not duplicate products.
    Is there another solution? Thank you!

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Does admin see ‘Clone’ and ‘New Draft’ links under product?
    Go to the ‘Settings->Duplicate Posts->Permissions’ tab and re-check if you allow to copy products under “Enable for these post types” and your test user role was selected under “Roles allowed to copy”. There are no any other conditions required:

    
    function duplicate_post_make_duplicate_link_row($actions, $post) {
    	if (duplicate_post_is_current_user_allowed_to_copy() && duplicate_post_is_post_type_enabled($post->post_type)) {
    		$actions['clone'] = '<a href="'.duplicate_post_get_clone_post_link( $post->ID , 'display', false).'" title="'
    				. esc_attr__("Clone this item", 'duplicate-post')
    				. '">' .  esc_html__('Clone', 'duplicate-post') . '</a>';
    		$actions['edit_as_new_draft'] = '<a href="'. duplicate_post_get_clone_post_link( $post->ID ) .'" title="'
    				. esc_attr__('Copy to a new draft', 'duplicate-post')
    				. '">' .  esc_html__('New Draft', 'duplicate-post') . '</a>';
    	}
    	return $actions;
    }
    

    Hi, I’m the developer of Duplicate Post
    I can confirm that @shinephp is right, I’m following the thread to see if I can help in some way…

    Thread Starter racheligraf

    (@racheligraf)

    I am very very grateful to you and I managed to arrange it with your help.
    Thank you and good day!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Product Duplicate User Authorization’ is closed to new replies.