Tagged: code snippet, dashboard, hide, menu
- This topic has 6 replies, 2 voices, and was last updated 1 year, 7 months ago by
steven-6784.
-
AuthorPosts
-
-
August 19, 2024 at 11:35 AM #222359
steven-6784
ParticipantHello,
Looking at the following snippet page:
https://multivendorx.com/docs/code-snippet/remove-certain-section-from-the-vendor-dashboard-and-single-product-page/I’m looking for a snippet that hides the ‘linked products’ menu tab
Additionally I’m looking for a snippet to hide the product gallery option on the add or edit product pages on the dashboard. In this case only the main feature image can be added to a product.
Thank you!
-
August 19, 2024 at 12:28 PM #222363
Sangita Support Squad
Keymaster@steven-6784, Thanks for getting in touch with us.
To remove the linked products option from the vendor end you need to simply go to the admin dashboard >> MultiVendorX >> Settings, Products and here under the product field section uncheck the “Linked products” option.Now for removing the “Product Gallery” section, you can simply override the edit-product.php template file and remove the line number from 111-160. To override the template file you need to follow the below mentioned overriding path –
yourtheme/MultiVendorX/vendor-dashboard/product-manager/edit-product.php.
Let us know if you need any further assistance from our end.
-
August 19, 2024 at 12:45 PM #222364
steven-6784
ParticipantI’m sorry, yes, I forgot to untick that option.
Thank you for the information about the ‘Product Gallery’ section.
Could I ask where I would find the two buttons called ‘Add Media’ on the vendor dashboard? I’d also like to hide those two as well.
Thank you!
-
August 19, 2024 at 6:41 PM #222374
Sangita Support Squad
KeymasterHello There, Kindly add the below code in the functions.php file of your current active theme and check –
add_filter('mvx_vendor_product_excerpt_richedit', '__return_false');
add_filter('mvx_vendor_product_description_richedit', '__return_false');
Let us know if you need any further assistance from our end.
-
August 21, 2024 at 11:12 AM #222414
steven-6784
ParticipantThank you so much that code works well.
Regards,
Steve -
August 21, 2024 at 11:36 AM #222415
Sangita Support Squad
KeymasterGlad to hear that the code worked accordingly on your end. Let us know if you need any further assistance from our end.
Also it would be really great if you can give us 5/5 review here: https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post.
This would motivate the team further to do their job more efficiently. -
September 5, 2024 at 10:52 AM #235033
steven-6784
ParticipantHi – I think you can close this open issue.
Many thanks as usual!
-
-
AuthorPosts
- The topic ‘Snippet to hide section from dashboard’ is closed to new replies.








