Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › WCFM Vendor page
- This topic has 8 replies, 2 voices, and was last updated 3 years ago by
Eden Brownlee.
- AuthorPosts
- May 8, 2020 at 6:35 am #128218
Eden Brownlee
ParticipantBtw 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 #128315
Sarmistha Chakraborty
KeymasterHello,
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 #129365
Eden Brownlee
ParticipantI have a category for physical and services products 🙂
- May 11, 2020 at 6:56 am #129366
Eden Brownlee
ParticipantAnd Btw how do I change the order of tabs in the vendor store? Ty
- May 11, 2020 at 7:18 am #129367
Eden Brownlee
ParticipantI 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 #129368
Eden Brownlee
ParticipantOhh all good now 🙂 How do I change the order of tabs? 🙂
- May 11, 2020 at 7:34 am #129375
Eden Brownlee
ParticipantOne 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 #129513
Sarmistha Chakraborty
KeymasterHello,
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 #129950
Eden Brownlee
ParticipantThat worked! TY 🙂
- AuthorPosts
- You must be logged in to reply to this topic.