MultivendorX Pro
-
AuthorPosts
-
-
May 29, 2023 at 8:04 AM #192542ChrisParticipant
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. -
May 29, 2023 at 8:05 AM #192543ChrisParticipant
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 -
May 29, 2023 at 8:10 AM #192544ChrisParticipantThis reply has been marked as private.
-
May 29, 2023 at 1:05 PM #192590Sangita Support SquadKeymaster
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. -
May 30, 2023 at 7:18 AM #192629ChrisParticipantThis reply has been marked as private.
-
May 30, 2023 at 12:23 PM #192633Sangita Support SquadKeymaster
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. -
May 30, 2023 at 9:08 PM #192648ChrisParticipant
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
-
May 30, 2023 at 9:20 PM #192649ChrisParticipant
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? -
May 31, 2023 at 1:29 PM #192661Sangita Support SquadKeymaster
@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 -
June 1, 2023 at 3:25 AM #192699ChrisParticipant
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.
-
June 1, 2023 at 3:26 AM #192700ChrisParticipantThis reply has been marked as private.
-
June 2, 2023 at 10:41 AM #192745ChrisParticipant
Thanks for the updated redirection snippet. It solves my first issue.
-
June 2, 2023 at 11:01 AM #192747Sangita Support SquadKeymaster
Thanks @Chris for explaining the issue to us . Our team is looking into the matter . Kindly give them some time .
-
June 4, 2023 at 12:35 AM #192815ChrisParticipant
Okay sure. Thank you
-
June 5, 2023 at 6:12 PM #192885NerdySupportExpert MoumitaKeymaster
Chris, can you please share the latest version of elementor pro.
-
June 5, 2023 at 10:35 PM #192902ChrisParticipantThis reply has been marked as private.
-
June 6, 2023 at 11:54 AM #192920Sangita Support SquadKeymaster
Thanks for sharing the plugin file with us . We will get back to you with the solution soon
-
June 6, 2023 at 4:34 PM #192928ChrisParticipant
Okay thank you. All the best.
-
June 6, 2023 at 8:18 PM #192943Sangita Support SquadKeymaster
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. -
June 11, 2023 at 6:06 AM #193172ChrisParticipant
Hi, thank you for fixing the issue. It’s displaying normally now. Great job!
-
June 11, 2023 at 6:14 AM #193173ChrisParticipant
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;
}
}
}
} -
June 11, 2023 at 6:23 AM #193174ChrisParticipant
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/’ ) );
} -
June 12, 2023 at 9:58 PM #193266NerdySupportExpert MoumitaKeymasterThis reply has been marked as private.
-
June 13, 2023 at 6:33 PM #193307ChrisParticipantThis reply has been marked as private.
-
June 14, 2023 at 7:51 PM #193393promitaKeymaster
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 -
August 25, 2023 at 5:23 PM #195526Sangita Support SquadKeymaster
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.
-
-
AuthorPosts
The topic ‘Vendor Store Page – Store Tabs Not Showing’ is closed to new replies.