Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Multi-store. Franchise. Facilitator. AI tools.
Everything your marketplace needs - now in one platform.
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

Snippet to hide section from dashboard

Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #222359
      steven-6784
      Participant

      Hello,
      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!

    • #222363

      @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.

    • #222364
      steven-6784
      Participant

      I’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!

    • #222374

      Hello 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.

    • #222414
      steven-6784
      Participant

      Thank you so much that code works well.
      Regards,
      Steve

    • #222415

      Glad 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.

    • #235033
      steven-6784
      Participant

      Hi – I think you can close this open issue.
      Many thanks as usual!

Viewing 6 reply threads
  • The topic ‘Snippet to hide section from dashboard’ is closed to new replies.
Shopping Cart
Scroll to Top