Home › Forums › WoodMart support forum › i have a problem in Dynamic Discount
i have a problem in Dynamic Discount
- This topic has 6 replies, 3 voices, and was last updated 1 year, 9 months ago by
Artem Temos.
-
AuthorPosts
-
February 22, 2024 at 6:07 pm #542938
huss09.rajabParticipanthi i have a problem in dynamic discount
as an admin i can create a new dynamic discount and add products etc..
but i have a shop manager role in my website (the woocommerce role) that cant search product to choose one as in the image https://ibb.co/nBvfg1gin my admin account here is the result
https://ibb.co/f17kzpwhow can i give the shop manager access to choose products in dynamic discount or anything that i can fix this problem ??
-
This topic was modified 1 year, 9 months ago by
huss09.rajab.
February 23, 2024 at 11:10 am #543087
Aizaz Imtiaz AwanKeymasterHello,
You need to install User manager roles or something like this and set different access to different users roles.
https://wordpress.org/plugins/user-role-editor/
We have not tested any plugins with our theme that is why we can hardly recommend any.
Best Regards.
February 24, 2024 at 11:13 am #543372
huss09.rajabParticipantbut i tried one of these plugins and give the shop manager all permissions and it still not working
February 24, 2024 at 11:14 am #543373
huss09.rajabParticipantif there is a specific thing to do it will be better because i dont want the shop manager user to be admin
and my problem is not about roles i thought about roles just to solve the problem-
This reply was modified 1 year, 9 months ago by
huss09.rajab.
February 26, 2024 at 4:55 pm #543944
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to do this
if ( ! function_exists( 'woodmart_admin_localized_string_array_change' ) ) { /** * Create new template nonce for shop managers. * * @param array $localize_data List of woodmartConfig settings. */ function woodmart_admin_localized_string_array_change( $localize_data ) { if ( current_user_can( 'edit_products' ) || current_user_can( 'edit_pages' ) ) { $localize_data = array_merge( $localize_data, array( 'get_new_template_nonce' => wp_create_nonce( 'wd-new-template-nonce' ), ) ); } return $localize_data; } add_filter( 'woodmart_admin_localized_string_array', 'woodmart_admin_localized_string_array_change' ); }February 26, 2024 at 5:00 pm #543946
huss09.rajabParticipantit works like a charm ! thanks 🙂
February 26, 2024 at 5:38 pm #543965
Artem TemosKeymasterYou are welcome. Feel free to contact us if you have any further questions.
-
This topic was modified 1 year, 9 months ago by
-
AuthorPosts
Tagged: bug, Dynamic Discount, products, Roles, shop manager, WoodMart
The topic ‘i have a problem in Dynamic Discount’ is closed to new replies.
- You must be logged in to create new topics. Login / Register
