Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › WCFM Vendor page
- This topic has 8 replies, 2 voices, and was last updated 4 years, 6 months ago by Eden Brownlee.
- AuthorPosts
- May 8, 2020 at 6:35 am #128218Eden BrownleeParticipant
Btw is there anyway I can change how the product is being displayed? And if I can add a new tab in the frontend… We do have a products that are physical and services, I want them to be separated in the tabs.. The product will have the grid layout and the services will be in list format, is this possible?
- May 8, 2020 at 2:06 pm #128315Sarmistha ChakrabortyMember
Hello,
Btw is there anyway I can change how the product is being displayed?
>>Basically, in vendor store page product tab will display same as WooCommerce Shop page template. Whatever customize shop product display in shop page, it will reflect in your vendor’s store page.We do have a products that are physical and services,
>>Can you let us know how you differentiate between physical product and services product n your site?You can find here how to add new tab – https://wordpress.org/support/topic/custom-tab-in-vendor-store-page/
Thanks.
- May 11, 2020 at 6:55 am #129365Eden BrownleeParticipant
I have a category for physical and services products 🙂
- May 11, 2020 at 6:56 am #129366Eden BrownleeParticipant
And Btw how do I change the order of tabs in the vendor store? Ty
- May 11, 2020 at 7:18 am #129367Eden BrownleeParticipant
I am getting a 404 after adding a new tab… I have re-saved permalinks already.
add_filter( ‘query_vars’, function( $vars ) {
$vars[] = ‘services’;
return $vars;
}, 50 );add_filter( ‘wcfmmp_store_tabs’, function( $store_tabs, $store_id ) {
$store_tabs[‘services’] = ‘Services’;
return $store_tabs;
}, 50, 2 );add_filter( ‘wcfmp_store_tabs_url’, function( $store_tab_url, $tab ) {
if( $tab == ‘services’ ) {
$store_tab_url .= ‘services’;
}
return $store_tab_url;
}, 50, 2 );add_filter( ‘wcfmp_store_default_query_vars’, function( $query_var ) {
global $WCFM, $WCFMmp;if ( get_query_var( ‘services’ ) ) {
$query_var = ‘services’;
}
return $query_var;
}, 50 );add_filter( ‘wcfmmp_store_default_template’, function( $template, $tab ) {
if( $tab == ‘services’ ) {
$template = ‘store/wcfmmp-view-store-services.php’;
}
return $template;
}, 50, 2); - May 11, 2020 at 7:21 am #129368Eden BrownleeParticipant
Ohh all good now 🙂 How do I change the order of tabs? 🙂
- May 11, 2020 at 7:34 am #129375Eden BrownleeParticipant
One last thing 🙂 The tabs seems to have no active class when clicked. hehehe
So to wrap things up, adding a custom tab is now working.. but the tab do not have active class when it is the current page.
And how do I filter that the shop will only show physical products via filtering. - May 11, 2020 at 2:44 pm #129513Sarmistha ChakrabortyMember
Hello,
You can re-order your tab –
add_filter( 'wcfmmp_store_tabs', 'new_wcfmmp_store_tabs_1105',150,2); function new_wcfmmp_store_tabs_1105($store_tabs, $id) { $new_store_tabs = array(); $keyOrder = ['about','products','reviews', 'policies','followers']; //reorder your tabs foreach($keyOrder as $key) { $new_store_tabs[$key] = $store_tabs[$key]; } return array_filter($new_store_tabs); }
Using this code.
The active tab have “active” class in the wrapper “li”.
how do I filter that the shop will only show physical products via filtering.
>> You have to add “STORE CATEGORIES” widget in vendor store sidebar side
Ref: https://wordpress.org/support/topic/show-only-specific-categories-in-vendor-store-page/Thanks.
- May 12, 2020 at 1:36 pm #129950Eden BrownleeParticipant
That worked! TY 🙂
- AuthorPosts
- You must be logged in to reply to this topic.