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

-
DAYS
-
HOURS
-
MINUTES
-
SECONDS
20% Off Is Temporary. The Benefits Aren't.

HAPPY20

large ” mvx_seller_dashboard_tab_settings “in “wp-options “

Resolved
Viewing 7 reply threads
  • Author
    Posts
    • #240574
      l.gan
      Participant

      Hello, thanks for the great plugin.

      Please tell me, I have a lot of custom CSS code for the vendor dashboard (I completely rewrote the dashboard design) in the plugin settings, in the “Seller dashboard” tab – “Custom CSS”.

      Because of which I have a large volume of” mvx_seller_dashboard_tab_settings “in the table “wp-options “in my database.

      This table has mvx_seller_dashboard_tab_settings has autoloader parameters,
      and I see a warning from WordPress that I have a lot of files that are autoloaded when loading site pages (including it is loaded (as I understand it) on the product page and also has a slight impact on the site speed.

      Please tell me, how can I somehow solve this problem?
      Can I somehow directly insert my custom CSS somewhere for dashboard so that this code is loaded only for the dashboard?

      Thanks.

    • #240584

      Hello @l.gan, Thank you for your cooperation. Our development team has reviewed your query.
      The mvx_seller_dashboard_tab_settings is not a database table but a setting that follows WordPress’s default autoload flow. However, we understand your concerns regarding performance and excessive autoloaded data.
      As part of our upcoming plugin restructuring, we will be transitioning to the latest React frameworks that adhere to WordPress standards. This update will also include optimizations for database handling, including a review of autoloaded settings to improve efficiency.
      In the meantime, You can have a look at the below code where you can directly insert your custom CSS –

      add_action('wp_enqueue_scripts', 'add_your_frontend_style', 20);
      function add_your_frontend_style() {
      global $MVX;
      if (is_vendor_dashboard()) {
      //put your enqueue style here like this
      wp_enqueue_style('mvx_admin_css', $MVX->plugin_url . 'assets/admin/css/admin.css', array(), $MVX->version);
      }
      }

      If you need any further assistance please do let us know.

      • #240587
        l.gan
        Participant

        Sangeeta, thanks as always for your great help and answers

        Could you help me, I put my code in the file “vendor-dashboard-custom.css”

        then I placed the file in my child theme at ../public_html/wp-content/themes/child-theme/vendor-dashboard-custom.css

        then I placed the code from your example, in file function.php

        
        add_action( 'wp_enqueue_scripts', 'add_your_frontend_style', 20 );
            function add_your_frontend_style() {
                global $MVX;
                if ( is_vendor_dashboard() ) {
                    //put your enqueue style here like this
        
                    wp_enqueue_style( 'vendor-dashboard-custom-css', $MVX->plugin_url . '/vendor-dashboard-custom.css', array(), $MVX->version );
                }
            }
        

        then I check the dashboard – but the styles are not connected. Please tell me what I’m doing wrong?

    • #240589

      Thank you for getting back to us. I’ll share this with our development team and will keep you updated as soon as I hear back from them.

    • #240605
      Anushka Sinha
      Moderator

      Hi @I.gan!
      Thanks for getting back to us.
      As you mentioned, the file was placed in the child theme; however, it appears that the code you are referring is fetching the style of the plugin,whereas you have to fetch the style from the theme. This mismatch is likely the reason you’re encountering the error.
      I recommend updating the code to reference the correct path—specifically, the child theme directory—and then testing again to see if the issue is resolved.
      Please let us know if you need any further assistance. We’re happy to help!

      • #240612
        l.gan
        Participant

        Hello

        Thank you for your answer, I understand what you mean, but the point is that I did not rewrite the vendor_dashboard.css file itself (which is located in ../plugins/dc-woocommerce-multi-vendor/assets/frontend/css)

        Do I need to add my custom code to the dashboard, which I previously had inserted in the Plugin Settings – Seller Dashboard – custom CSS.

        Can I insert this code not through the “custom CSS” plugin settings, but as a separate file vendor-dashboard-custom.css?

    • #240623

      @l.gan, let me check with my development team and I’ll get back to you shortly.

      Thanks for your understanding.

      • #240626
        l.gan
        Participant

        Okay, this helped me, but I’m not sure if this is the right way.

        function admin_dashboard_style(){
             global $MVX;
        	wp_register_style( 'vendor_dashboard_custom', get_stylesheet_directory_uri() . '/css/vendor-dashboard-custom.css');
        	wp_enqueue_style( 'vendor_dashboard_custom');
        
        }
        add_action( 'wp_enqueue_scripts', 'admin_dashboard_style', 1000000 );
        
        function add_mvx_styles_to_dashboard( $arrStyles ) {
             global $MVX;
        	array_push( $arrStyles, 'vendor_dashboard_custom' );
        	return $arrStyles;
        }
        add_filter( 'mvx_styles_to_keep', 'add_mvx_styles_to_dashboard', 1000000 );
    • #240638
      Anushka Sinha
      Moderator

      Hi there!
      Thanks for reaching out!
      The filter ‘mvx_styles_to_keep’ is meant for dequeuing style CSS you have added. It won’t work if used in your custom stylesheet, however it should work fine if used for our css.
      If you need any further assistance, feel free to reach out. We will be glad to help you!

    • #240731
      l.gan
      Participant

      Thank you

      You are talking about

      
      As part of our upcoming plugin restructuring, we will be transitioning to the latest React frameworks that adhere to WordPress standards. This update will also include optimizations for database handling, including a review of autoloaded settings to improve efficiency.
      

      Please tell me if there is an approximate time frame for when this wonderful update will be released?

    • #240750

      Hello @l.gan, Thank you for your interest!

      At this stage, our team is still in the planning phase for the upcoming plugin restructuring. As the work has not yet commenced, we’re unable to provide a precise timeframe for the release. However, we’ll be sure to keep our community updated as development progresses. We truly appreciate your patience and enthusiasm!

Viewing 7 reply threads
  • The topic ‘large ” mvx_seller_dashboard_tab_settings “in “wp-options “’ is closed to new replies.
Shopping Cart
Launch Your Marketplace
in Days, Not Month
Get expert guidance to build, scale, and grow your MultiVendorX marketplace
Book Free Strategy Call
Trusted by 10000+ marketplace Owners
Scroll to Top