What plugin does provide duplicate product functionality at your site?
Hello The plugin I use is duplicate-post
Thank you!
Hello, do you have an answer for me? It’s really urgent for me!
Thank you!
Hi,
Try to add ‘copy_posts’ capability to your role.
Thanks! But I tried to give permission to copy_posts and still the user could not duplicate products.
Is there another solution? Thank you!
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…
I am very very grateful to you and I managed to arrange it with your help.
Thank you and good day!