Vendor Store Page – Store Tabs Not Showing

MultivendorX Pro

Resolved
Viewing 25 reply threads
  • Author
    Posts
    • #192542
      Chris
      Participant

      Hi support,
      I’m not sure what’s wrong with the store tabs in vendor’s store page. I’ve tested on my staging site with all plugins disabled and changing the theme, still the issue persists. As you can see from https://prnt.sc/_5AVqB0wdMHM , the store tabs are shown when editing in Elementor.

    • #192543
      Chris
      Participant

      However, in website live view, the store tabs isn’t showing the words and icons, only the container storing the store tabs does appear (tested with background color), as shown in the screenshot below:
      https://prnt.sc/M7QkNMxxI43U
      Can you please help me in this regard? Thanks

    • #192544
      Chris
      Participant
      This reply has been marked as private.
    • #192590

      Hi @Chris Thanks for sharing the staging site access .
      I tried to login to your site using the credentials shared by you but the credentials are not working .https://prnt.sc/UgnPIO-DH5Mp . Kindly check the credentials again and share the correct login details .
      Also we have checked this on our end but there is no such issue on our end https://prnt.sc/OkieifoNRVu4 . Kindly check if you are using the updated versions of the plugins or not.

    • #192629
      Chris
      Participant
      This reply has been marked as private.
    • #192633

      Hi @Chris I disabled plugins other than WooCommerce and MultiVendorX on your site and switched to a default theme . The store tabs are showing perfectly on the vendor store page https://prnt.sc/RZaqYkHufEQp .
      Kindly check again carefully . Then enable one plugin and theme at a time to detect the culprit.

    • #192648
      Chris
      Participant

      I’ve enabled the plugins one by one at a time with default storefront theme and found that, with only WooCommerce and MultivendorX plugins enabled on my site, the store tabs are showing perfectly. When I activated Elementor, it is still working good. However, once Elementor Pro is activated, the store tabs are missing once again. Seems like the culprit was the Elementor Pro, but seems like from this knowledgebase, https://multivendorx.com/docs/knowledgebase/mvx-elementor/ , we need both Elementor and Elementor Pro to edit vendor’s store page. Could you please check on this and help me in this regard? Thanks

    • #192649
      Chris
      Participant

      Speaking about vendor’s store page, not sure why but the snippets in this post, https://multivendorx.com/docs/code-snippet/redirect-vendor/ , are not working well as I’ve found two issues after activated this snippet. The issues are:
      1) Firstly, when a user is logging in from their My Account page (for example through http://www.websiteurl.com/my-account/), the user is still directed to his dashboard page.
      2) Secondly, when this snippet is activated, all vendor’s store pages are directed to the single product page of a product.
      I’m currently using another custom code which solve the second issue, but the first issue still persist. Do you have any other better solutions available?

    • #192661

      @Chris I have checked enabling Elementor, Elementor Pro and also Elementor Module of MultiVendorX but there is no issue with the tabs in the vendor store page . Kindly check the video https://watch.screencastify.com/v/2iVJly2KhsskUcs7EDWi .There is no compatibility issue with Elementor Pro .
      Kindly check if you have customized the vendor store page using Elementor Pro correctly or not .
      Now to redirect the vendor to the dashboard while logging in from the My account page, kindly add the below code in the functions.php file of your active theme.

      
      add_filter( 'woocommerce_login_redirect', 'login_redirect_vendor', 99, 2);
      function login_redirect_vendor($redirect, $user) {
          if (class_exists('MVX')) {
              if (isset($user->roles) && is_array($user->roles)) {
                  //check for vendor
                  if (in_array('dc_vendor', $user->roles)) {
                      // redirect page link
                      $redirect = get_permalink(wc_get_page_id('myaccount'));
                      return $redirect;
                  }
              }
          } 
      }
      
      Copy
    • #192699
      Chris
      Participant

      Sorry that I wasn’t clear enough to express the issue. I know it has no issue with the store tabs in the default store page choosen from MVX Settings, but I think there is some issue with the display of the store tab when we are trying to build(design) the store page with Elementor builder. I’ve checked on it by inspecting on the web browser and found out that the content does actually exist in the inspection mode. Just that nothing seems to be displayed, so maybe it’s due to some CSS complication? I’ll attach a a video in the following message in private for your reference. First, the video showed that the Elementor and Elementor Pro plugins were enabled, and the store tabs existed in default store page mode. Then, the video showed that the addition of a fresh “Store Tabs” to a container inside the Elementor theme builder editor, and editing the text color to black so that it could show on the front end, followed by page refreshing and the store tabs were not visible anymore. Lastly, inspection mode was opened and the content did exist but nothing seems to be displayed.

    • #192700
      Chris
      Participant
      This reply has been marked as private.
    • #192745
      Chris
      Participant

      Thanks for the updated redirection snippet. It solves my first issue.

    • #192747

      Thanks @Chris for explaining the issue to us . Our team is looking into the matter . Kindly give them some time .

    • #192815
      Chris
      Participant

      Okay sure. Thank you

    • #192885

      Chris, can you please share the latest version of elementor pro.

    • #192902
      Chris
      Participant
      This reply has been marked as private.
    • #192920

      Thanks for sharing the plugin file with us . We will get back to you with the solution soon

    • #192928
      Chris
      Participant

      Okay thank you. All the best.

    • #192943

      We have fixed the issue in our git . Kindly download the plugin from here – https://github.com/multivendorx/MultiVendorX.git and follow these steps :
      – Delete the installed MultiVendorX via wp-admin >> plugin
      – Unzip the GitHub plugin
      – Rename the folder as “dc-woocommerce-multi-vendor” and remove the master tag. Now, zip this folder again.
      – Install this plugin on your site.
      Please do keep us posted.

    • #193172
      Chris
      Participant

      Hi, thank you for fixing the issue. It’s displaying normally now. Great job!

    • #193173
      Chris
      Participant

      Btw I need a hand on the previous code that you’ve provided again. The code below helped me to solve the problem when user is logging in from their myaccount page because my customer can be a vendor too. But I also added a button for my vendor to go to their dashboard, I noticed that if a vendor(user) is not logged in to my site, when they click the button, they will be redirected to myaccount page also. Could you please help me to complete this? Thank you

      add_filter( ‘woocommerce_login_redirect’, ‘login_redirect_vendor’, 99, 2);
      function login_redirect_vendor($redirect, $user) {
      if (class_exists(‘MVX’)) {
      if (isset($user->roles) && is_array($user->roles)) {
      //check for vendor
      if (in_array(‘dc_vendor’, $user->roles)) {
      // redirect page link
      $redirect = get_permalink(wc_get_page_id(‘myaccount’));
      return $redirect;
      }
      }
      }
      }

      • #193175
        Chris
        Participant

        **when they click the button (and login)
        p/s: I missed out the words ‘and login’ as shown above.

    • #193174
      Chris
      Participant

      I tried something like is_page() and get_the_ID() and a few more but all just doesn’t work. Maybe there’s something wrong with my codes. Please help me if you have better alternatives. Thanks

      add_filter( ‘woocommerce_login_redirect’, ‘vendor_login_redirect’, 99, 2);

      if (is_page (‘vendor-dashboard’)) {
      $redirect = get_permalink( get_the_ID( ‘vendor-dashboard’ ) );
      }
      elseif ( class_exists( ‘MVX’ ) ) {
      if ( isset( $user->roles ) && is_array( $user->roles ) ) {
      // check for vendor
      if ( in_array( ‘dc_vendor’, $user->roles ) ) {
      // redirect page link if not coming from vendor-dashboard page after tapping the vendor portal’s button
      $redirect = get_permalink( wc_get_page_id( ‘myaccount’ ) );
      }
      }

      add_action( ‘template redirect’, ‘vendor_portal_button_login_redirect’, 999);

      // Prevent vendors from getting redirected to My Account Page if he’s clicking on the vendor portal’s button
      $vendor_dashboard_redirect_page_id = url_to_postid( $redirect );
      $vendor_dashboard_page_id = wc_get_page_id( ‘vendor-dashboard’ );

      if ( $vendor_dashboard_redirect_page_id == $vendor_dashboard_page_id ) {
      $redirect = $vendor_dashboard_page_id;
      }
      return $redirect;

      add_action( ‘template redirect’, ‘vendor_portal_button_login_redirect’, 999);

      global $wp;

      if ( is_page(‘1967’)) {
      wp_redirect( home_url( ‘/vendor-dashboard/’ ) );
      }

    • #193266
      This reply has been marked as private.
    • #193307
      Chris
      Participant
      This reply has been marked as private.
    • #193393
      promita
      Keymaster

      Please reffer to this code and midify this as per your need :

      add_filter( 'woocommerce_login_redirect', 'login_redirect_vendor', 99, 2);
      function login_redirect_vendor($redirect, $user) {
          if (class_exists('MVX')) {
              if (isset($user->roles) && is_array($user->roles)) {
                  //check for vendor
                  if (in_array('dc_vendor', $user->roles)) {
                      // redirect page link
                      $redirect = get_permalink(mvx_vendor_dashboard_page_id());     
                  } else {
                      $redirect = get_permalink(wc_get_page_id('myaccount'));
                  }
              }
          } 
          return $redirect;
      }
      Copy
    • #195526

      Its been a while and we have not heard back from you. We presume your issue is solved now. We are closing this thread. If you need help or face issue in future please let us know.

Viewing 25 reply threads

The topic ‘Vendor Store Page – Store Tabs Not Showing’ is closed to new replies.