Forum Replies Created
- AuthorPosts
- May 25, 2020 at 6:57 pm in reply to: want to hide logo and primary menu of website from my store page #135049
Sarmistha Chakraborty
MemberHello,
Sorry, the issue is not clear to us. Can you explain us little more(if possible with screenshot)
Thanks.
Sarmistha Chakraborty
MemberHello,
The entire dashboard “Settings” where you enter Email, Phone, Logo, Banner etc i’ve been unable to translate.
>> Try the below code in your theme’s functions.php –add_filter('wcfm_marketplace_settings_fields_general','wcfm_marketplace_translate_settings_fields_general',10,2); function wcfm_marketplace_translate_settings_fields_general($fields, $user_id) { $fields['store_email']['label'] = 'Storez Email'; $fields['phone']['label'] = 'Storez phone'; $fields['gravatar']['label'] = 'Storez Logo'; $fields['banner']['label'] = 'Storez banner'; $fields['banner_type']['label'] = 'Storez banner type'; return $fields; } add_filter('wcfm_marketplace_settings_fields_brand','wcfm_marketplace_translate_brand_settings_fields_general',10,2); function wcfm_marketplace_translate_brand_settings_fields_general($fields, $user_id) { $fields['gravatar']['label'] = 'Storez Logo'; $fields['banner']['label'] = 'Storez banner'; $fields['banner_type']['label'] = 'Storez banner type'; return $fields; }
On the register page “Store Phone”
>>For this –add_filter('wcfm_membership_registration_fields_phone','wcfm_marketplace_translate_registration_fields_phone',10); function wcfm_marketplace_translate_registration_fields_phone($fields) { $fields['user_phone']['label'] = 'Storez Phone'; return $fields; }
“Store” within the settings menu-name
>>For this you need to translate from LOCO translate,
WP dashboard -> Loco translate ->plugins -> WCFM – WooCommerce Frontend Manager -> select your site language -> search string “Store” and translate -> saveWithin the settings-menu i would like to hide SEO and Customer support items.
>>To hide “SEO” and “customer support” from vendor settings –
turn off the “SEO” and “Customer Support” capability. (PFA)To hide “Auction data” tab, it’s also managed by capability.(WCFM dashboard-> Capability). Turn off the “Auction” capability.
Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
Disable email field or remove email field is not possible. The “Email” field is required for registration.
Regarding password-
remove password strength –
add_filter( 'wcfm_is_allow_passowrd_strength_check', '__return_false' );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thanks.
Sarmistha Chakraborty
MemberHello,
Yes, you are right. In our WCFM Vendors are normal users and you may delete them wp-admin -> Users.
Thanks.
Sarmistha Chakraborty
MemberHello,
The shortcode is –
[wcfm_stores]
Please check here for details – https://docs.wclovers.com/store-list/Thanks.
Sarmistha Chakraborty
MemberHello,
Please check the “Edit Live Products” capability option. It should be turn-on.
Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
It will require our WCFM-Ultimate plugin.
Thanks.
May 25, 2020 at 2:55 pm in reply to: WCFM membership option is not showing in store manager dashboard #134994Sarmistha Chakraborty
MemberSarmistha Chakraborty
MemberAdd this code also in your theme’s functions.php –
add_filter( 'pre_get_posts', 'artistas_store_query_filter' , 9999, 2 ); function artistas_store_query_filter( $query, $that = null ) { global $wp_query, $WCFMmp; $store_name = apply_filters( 'wcfmmp_store_query_var', get_query_var( $WCFMmp->wcfmmp_rewrite->wcfm_store_url ) ); if ( !is_admin() && $query->is_main_query() && !empty( $store_name ) ) { $seller_info = get_user_by( 'slug', $store_name ); if( $seller_info ) { // WC Product Query if ( !get_query_var( 'articles' ) ) { //WC()->query->product_query( $query ); } $store_info = wcfmmp_get_store_info( $seller_info->data->ID ); if( apply_filters( 'wcfmmp_is_allow_store_ppp', true ) ) { $global_store_ppp = isset( $WCFMmp->wcfmmp_marketplace_options['store_ppp'] ) ? $WCFMmp->wcfmmp_marketplace_options['store_ppp'] : get_option( 'posts_per_page', 12 ); $post_per_page = isset( $store_info['store_ppp'] ) && !empty( $store_info['store_ppp'] ) ? $store_info['store_ppp'] : $global_store_ppp; $query->set( 'posts_per_page', apply_filters( 'wcfmmp_store_ppp', $post_per_page ) ); } if ( get_query_var( 'articles' ) ) { $query->set( 'post_type', 'post' ); } else if(get_query_var( 'artistas' )) { $query->set( 'post_type', 'artistas' ); //replace artistas with your post type name //print_r($query);die; } else { $query->set( 'post_type', 'product' ); $query->set( 'wc_query', 'product_query' ); //print_r($query);die; } $query->set( 'post_status', 'publish' ); $query->set( 'author_name', $store_name ); $query->query['term_section'] = isset( $query->query['term_section'] ) ? $query->query['term_section'] : array(); if ( $query->query['term_section'] ) { $is_custom_taxonomy_filter = false; // Custom Taxonomies Filter Rules $product_taxonomies = get_object_taxonomies( 'product', 'objects' ); if( !empty( $product_taxonomies ) ) { foreach( $product_taxonomies as $product_taxonomy ) { if( !in_array( $product_taxonomy->name, array( 'product_cat', 'product_tag', 'wcpv_product_vendors' ) ) ) { if( $product_taxonomy->public && $product_taxonomy->show_ui && $product_taxonomy->meta_box_cb && $product_taxonomy->hierarchical ) { $query->query['tax-'.$product_taxonomy->name] = isset( $query->query['tax-'.$product_taxonomy->name] ) ? $query->query['tax-'.$product_taxonomy->name] : array(); if ( $query->query['tax-'.$product_taxonomy->name] ) { $is_custom_taxonomy_filter = true; $query->set( 'tax_query', array( 'relation' => 'AND', array( 'taxonomy' => $product_taxonomy->name, 'field' => 'slug', 'terms' => $query->query['term'], 'operator' => 'IN' ) ) ); } } } } } if( !$is_custom_taxonomy_filter ) { $query->set( 'tax_query', array( array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => $query->query['term'] ) ) ); } } // Reset Shop Page ID - Specially Fix for Divi Theme $query->set( 'page_id', 0 ); if( defined( 'ELEMENTOR_VERSION' ) ) { if( apply_filters( 'wcfmmp_is_allow_elementor_is_single_reset', true ) ) $query->is_single = false; if( apply_filters( 'wcfmmp_is_allow_elementor_is_singular_reset', true ) ) $query->is_singular = false; if( apply_filters( 'wcfmmp_is_allow_elementor_is_archive_reset', true ) ) $query->is_archive = false; if( apply_filters( 'wcfmmp_is_allow_elementor_is_post_type_archive_reset', true ) ) $query->is_post_type_archive = false; } //print_r($query); add_filter( 'woocommerce_page_title', array( $WCFMmp->wcfmmp_rewrite , 'store_page_title' ) ); } } }
Thanks.
Sarmistha Chakraborty
MemberHello,
Regarding “https://wclovers.com/wp-content/uploads/2020/05/Screenshot_20200522-184415__01.jpg” –
>> Can you provide us the page urlTo remove tabs,logo from vendor store page in mobile version, add below css in your theme’s style.css-
@media only screen and (max-width: 480px) { /*************** ADD MOBILE ONLY CSS HERE ***************/ #wcfmmp-store .logo_area{ display: none !important; } .wcfm-store-page .woocommerce-ordering,.wcfm-store-page .woocommerce-result-count{ display: none !important; } }
And add this code in functions.php-
add_filter( 'wcfmmp_store_tabs', 'new_wcfmmp_store_tabs',90,2); function new_wcfmmp_store_tabs($store_tabs, $id) { unset($store_tabs['products']); unset($store_tabs['about']); return $store_tabs; }
Thanks.
Sarmistha Chakraborty
MemberHello,
Sorry, unfortunately, we do not have any shortcode for this feature.
In “store list” page using[wcfm_stores per_row=3 orderby="rating_desc"]
, default top-rated vendors will show at the top.Thanks.
Sarmistha Chakraborty
MemberHi,
Your shortcode will be –
[wcfm_stores include_membership="2233"]
And you have assign a group in this membership plan.(PFA)Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
I do not want to show any product in my store which has no price and also which price is 0.
>>Try this code –add_action( 'woocommerce_product_query', 'wcfmwp_hide_products_without_price' ); function wcfmwp_hide_products_without_price( $q ){ $meta_query = $q->get( 'meta_query' ); $meta_query[] = array( 'key' => '_price', 'value' => '', 'compare' => '!=' ); $q->set( 'meta_query', $meta_query ); }
Ref: https://react2wp.com/woocommerce-hide-products-without-price-simple-fix/
Its not showing as a new item in the store. Its not coming also from product search option.
>>To display duplicate products in shop page, try the below code –add_filter('wcfm_is_allow_product_loop_duplicate_hide', '__return_false');
Regarding show duplicates
Vendor can edit the title. If he edit the title, then the product will publish as new product not as more offer below the edited product.
>> To give permission to the vendor edit product title-
Try this code in your theme’s functions.php –add_filter('wcfm_is_allow_product_multivendor_title_edit_disable', '__return_false');
But not displaying in “more offer” this is not feasible in our system, because whenever vendor clicks on “Add to my store” a child product(new) gets created of an existing product.I want to go from free to the ultimate version. Can you please inform me that if i need any customisation, can you please help me? Currently i am setting up the website, so i need some customisation. Please let me know about it if it is possible?
>>Please contact us here for the purpose – https://wclovers.com/woocommerce-multivendor-customization/Thanks.
Sarmistha Chakraborty
MemberHello,
If you do not want vendor can add “Taxonomy”,”inventory” etc. then just turn off the capability from WCFM dashboard -> Capability.
But if you want removed this steps only from “Product Popup”,
Then you need to override “wcfm-view-product-popup.php” file in your theme folder “your theme folder\wcfm\products-popup” from “\wp-content\plugins\wc-frontend-manager\views\products-popup”
And then removed the fields as per your requirement.
Like-
Image A – Remove this code.<?php if( apply_filters( 'wcfm_is_allow_category', true ) || apply_filters( 'wcfm_is_allow_tags', true ) ) { ?> <div class="page_collapsible products_manage_taxonomy <?php echo apply_filters( 'wcfm_pm_block_class_taxonomy', 'simple variable external grouped booking' ); ?> <?php echo apply_filters( 'wcfm_pm_block_custom_class_taxonomy', '' ); ?>" id="wcfm_products_manage_form_taxonomy_head"><label class="fa fa-tags"></label><?php _e('Taxonomies', 'wc-frontend-manager'); ?><span></span></div> <div class="wcfm-container simple variable external grouped booking <?php echo apply_filters( 'wcfm_pm_block_custom_class_taxonomy', '' ); ?>"> <div id="wcfm_products_manage_form_taxonomy_expander" class="wcfm-content"> <div class="wcfm_product_manager_taxonomy_fields"> <?php do_action( 'before_wcfm_products_manage_taxonomies', $product_id ); ?> <?php if( apply_filters( 'wcfm_is_allow_category', true ) && apply_filters( 'wcfm_is_allow_pm_category', true ) ) { ?> <?php if( apply_filters( 'wcfm_is_allow_product_category', true ) ) { $ptax_custom_arrtibutes = apply_filters( 'wcfm_taxonomy_custom_attributes', array(), 'product_cat' ); ?> <p class="wcfm_title"><strong><?php echo apply_filters( 'wcfm_taxonomy_custom_label', __( 'Categories', 'wc-frontend-manager' ), 'product_cat' ); ?></strong></p><label class="screen-reader-text" for="product_cats"><?php echo apply_filters( 'wcfm_taxonomy_custom_label', __( 'Categories', 'wc-frontend-manager' ), 'product_cat' ); ?></label> <select id="product_cats" name="product_cats[]" class="wcfm-select wcfm_ele simple variable external grouped booking" multiple="multiple" data-catlimit="<?php echo $catlimit; ?>" <?php echo implode( ' ', $ptax_custom_arrtibutes ); ?> style="width: 100%; margin-bottom: 10px;"> <?php if ( $product_categories ) { $WCFM->library->generateTaxonomyHTML( 'product_cat', $product_categories, $categories ); } ?> </select> <?php } ?> <?php if( apply_filters( 'wcfm_is_allow_custom_taxonomy', true ) ) { $product_taxonomies = get_object_taxonomies( 'product', 'objects' ); if( !empty( $product_taxonomies ) ) { foreach( $product_taxonomies as $product_taxonomy ) { if( !in_array( $product_taxonomy->name, array( 'product_cat', 'product_tag', 'wcpv_product_vendors' ) ) && apply_filters( 'wcfm_is_allow_taxonomy_'.$product_taxonomy->name, true ) ) { if( $product_taxonomy->public && $product_taxonomy->show_ui && $product_taxonomy->meta_box_cb && $product_taxonomy->hierarchical ) { if( apply_filters( 'wcfm_is_allow_custom_taxonomy_'.$product_taxonomy->name, true ) ) { // Fetching Saved Values $taxonomy_values_arr = array(); if($product && !empty($product)) { $taxonomy_values = get_the_terms( $product_id, $product_taxonomy->name ); if( !empty($taxonomy_values) ) { foreach($taxonomy_values as $pkey => $ptaxonomy) { $taxonomy_values_arr[] = $ptaxonomy->term_id; } } } $ptax_custom_arrtibutes = apply_filters( 'wcfm_taxonomy_custom_attributes', array(), $product_taxonomy->name ); $taxonomy_limit = apply_filters( 'wcfm_taxonomy_limit', -1, $product_taxonomy->name ); ?> <p class="wcfm_title"><strong><?php echo apply_filters( 'wcfm_taxonomy_custom_label', __( $product_taxonomy->label, 'wc-frontend-manager' ), $product_taxonomy->name ); ?></strong></p><label class="screen-reader-text" for="<?php echo $product_taxonomy->name; ?>"><?php echo apply_filters( 'wcfm_taxonomy_custom_label', __( $product_taxonomy->label, 'wc-frontend-manager' ), $product_taxonomy->name ); ?></label> <select id="<?php echo $product_taxonomy->name; ?>" name="product_custom_taxonomies[<?php echo $product_taxonomy->name; ?>][]" class="wcfm-select product_taxonomies wcfm_ele simple variable external grouped booking" multiple="multiple" data-catlimit="<?php echo $taxonomy_limit; ?>" <?php echo implode( ' ', $ptax_custom_arrtibutes ); ?> style="width: 100%; margin-bottom: 10px;"> <?php $product_taxonomy_terms = get_terms( $product_taxonomy->name, 'orderby=name&hide_empty=0&parent=0' ); if ( $product_taxonomy_terms ) { $WCFM->library->generateTaxonomyHTML( $product_taxonomy->name, $product_taxonomy_terms, $taxonomy_values_arr ); } ?> </select> <?php } } } } } } } if( apply_filters( 'wcfm_is_allow_tags', true ) ) { $WCFM->wcfm_fields->wcfm_generate_form_field( apply_filters( 'wcfm_product_simple_fields_tag', array( "product_tags" => array('label' => __('Tags', 'wc-frontend-manager') , 'type' => 'text', 'class' => 'wcfm-text wcfm_ele simple variable external grouped booking', 'label_class' => 'wcfm_title', 'value' => $product_tags, 'placeholder' => __('Separate Product Tags with commas', 'wc-frontend-manager') ) ), $product_id, $product_type ) ); if( $wcfm_is_allow_custom_taxonomy = apply_filters( 'wcfm_is_allow_custom_taxonomy', true ) ) { $product_taxonomies = get_object_taxonomies( 'product', 'objects' ); if( !empty( $product_taxonomies ) ) { foreach( $product_taxonomies as $product_taxonomy ) { if( !in_array( $product_taxonomy->name, array( 'product_cat', 'product_tag', 'wcpv_product_vendors' ) ) && apply_filters( 'wcfm_is_allow_taxonomy_'.$product_taxonomy->name, true ) ) { if( $product_taxonomy->public && $product_taxonomy->show_ui && $product_taxonomy->meta_box_cb && !$product_taxonomy->hierarchical ) { if( apply_filters( 'wcfm_is_allow_custom_taxonomy_'.$product_taxonomy->name, true ) ) { // Fetching Saved Values $taxonomy_values_arr = wp_get_post_terms($product_id, $product_taxonomy->name, array("fields" => "names")); $taxonomy_values = implode(',', $taxonomy_values_arr); $WCFM->wcfm_fields->wcfm_generate_form_field( array( $product_taxonomy->name => array( 'label' => $product_taxonomy->label, 'name' => 'product_custom_taxonomies_flat[' . $product_taxonomy->name . '][]', 'type' => 'textarea', 'class' => 'wcfm-textarea wcfm_ele wcfm_full_ele simple variable external grouped booking', 'label_class' => 'wcfm_title wcfm_full_ele', 'value' => $taxonomy_values, 'placeholder' => __('Separate Product ' . $product_taxonomy->label . ' with commas', 'wc-frontend-manager') ) ) ); } } } } } } } ?> <?php do_action( 'after_wcfm_products_manage_taxonomies', $product_id ); ?> <div class="wcfm_clearfix"></div> </div> </div> </div> <?php } ?>
Image B, C –
//include( $WCFM->library->views_path . 'products-manager/wcfm-view-products-manage-tabs.php' ); //do_action( 'end_wcfm_products_manage', $product_id, $wcfm_is_translated_product, $wcfm_wpml_edit_disable_element );
Thanks.
`Sarmistha Chakraborty
MemberHello,
What you can do, assign a group with specific membership.
Then you can display only those stores that belong to this/specific membership.
The shortcode will be –
[wcfm_stores include_membership="3"]
replace 3 with your membership id(https://docs.wclovers.com/store-list/)Thanks.
Sarmistha Chakraborty
MemberHi,
Can you explain a little more how you decide the “Specific product”?
It is possible only filtered by any product meta.Thanks.
Sarmistha Chakraborty
MemberHello,
If only you/admin have set the “Product publish” capability turn-off(PFA) for vendor then the vendor cannot publish this products, But in this way vendor’s all products need to published/approved by admin.
Thanks.
Attachments:
You must be logged in to view attached files.May 22, 2020 at 2:36 pm in reply to: shortcode [wcfm_stores include_membership="membership type"] not working #134118Sarmistha Chakraborty
MemberHello,
You have to add membership id in the shortcode-
[wcfm_stores per_row=3 include_membership="3"]
replace 3 with your membership id. (https://docs.wclovers.com/store-list/)Thanks
Sarmistha Chakraborty
MemberThis reply has been marked as private.Sarmistha Chakraborty
MemberHello,
add_action('init',function(){ global $WCFM, $WCFMmp; remove_action( 'wcfmmp_store_list_after_store_info', array( $WCFM->wcfm_enquiry, 'wcfmmp_store_list_enquiry_button' ), 35 ); });
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Thanks
Sarmistha Chakraborty
MemberHello,
Try this in your theme’s style.css –
div#wcfm_products_manage_form_appointment_costs_head{ display: none !important; }
Thanks.
Sarmistha Chakraborty
MemberHello,
Its some point depends on theme style.
Please adjust the css of –#wcfmmp-stores-wrap ul.wcfmmp-store-wrap li a.wcfmmp-visit-store { right: 30px; /* adjust px as per your theme look*/ } #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li p.store-enquiry { right: 115px !important; /* adjust px as per your theme look*/ }
If you still unable to do that, please share the page link, we will guide you.
Thanks.
Sarmistha Chakraborty
MemberHello,
First of all, we have mentioned previously, WCFM Membership Setting -> Pay Per Product -> be sure you not set Product Limit “0” here.
And please check the following settings –
1. WCFM dashboard -> Capability -> Product Limit (if you want unlimited, just leave it blank)
2. WCFM dashboard -> Settings -> Store Verification (PFA)
3. Each Group -> Capability -> Product Limit
4. Each vendor(if you set custom capability) -> Product Limit
All are set unlimited or not.Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
Can you send me a template file to list a custom post type in a grid?
>>We have not any template as per your requirement(custom post type in a grid), Please check all store tab template here – “\wp-content\plugins\wc-multivendor-marketplace\views\store”
And you have to template for custom post type, in this way.
And we have already mentioned you how to display “article” here – https://wclovers.com/forums/topic/request-custom-tabs-manager-in-vendor-store-page/#post-133024I’ve done everything in (https://wordpress.org/support/topic/custom-tab-in-vendor-store-page/) but keep listing products, where in the code do I change to display a custom post type (CPT “artists”)?
>> Please the “wcfmmp_rewrite_rules_loaded” code properly. As per mentioned here – https://wordpress.org/support/topic/custom-tab-in-vendor-store-page/
Example –add_action( 'wcfmmp_rewrite_rules_loaded', function( $wcfm_store_url ) { global $WCFM, $WCFMmp; add_rewrite_rule( $wcfm_store_url.'/([^/]+)/'.$WCFMmp->wcfmmp_rewrite->store_endpoint('artists').'?$', 'index.php?post_type=artists&'.$wcfm_store_url.'=$matches[1]&'.$WCFMmp->wcfmmp_rewrite->store_endpoint('artists').'=true', 'top' ); }, 50 );
I’ll be clearer. How to make news from the supplier only display on the supplier’s page. It cannot display on the website’s homepage.
>> If you want to display only admin articles in home page –
Try this –function be_exclude_vendor_from_blog( $query ) { if( !wcfm_is_store_page() ) { $query->set( 'author', 1 ); //replace 1 with your admin id } } add_action( 'pre_get_posts', 'be_exclude_vendor_from_blog' );
Thanks.
May 22, 2020 at 1:14 pm in reply to: How to add custom post types to your Store Manager Dashboard #134099Sarmistha Chakraborty
MemberHello,
I made the changes, but the site went offline. Did I do something wrong?
>>What do you mean “site went offline” ? In this code (https://pastebin.com/KxW30r2x) have no any PHP error. So, check other custom code.How do I display these types of personalized posts in a new tab on the store page?
>> The addon plugin by-default have code to add tab in vendor store page –// Cpt1 Store End Point add_filter( 'query_vars', array( &$this, 'wcfm_cpt1_endpoint_query_var' ) ); add_filter( 'wcfmmp_store_tabs', array( &$this, 'wcfm_cpt1_store_tab' ), 50, 2 ); add_filter( 'wcfmp_store_tabs_url', array( &$this, 'wcfm_cpt1_store_tab_url' ), 50, 2 ); add_filter( 'wcfmp_store_default_query_vars', array( &$this, 'wcfm_cpt1_default_query_var' ) ); add_filter( 'wcfmp_store_default_template', array( &$this, 'wcfm_cpt1_template' ), 50, 2 ); add_filter( 'wcfmp_store_default_template_path', array( &$this, 'wcfm_cpt1_template_path' ), 50, 2 );
Check the class-wcfmcpt-cpt1.php file in “\wp-content\plugins\wcfm-cpt\core”
Thanks.
- AuthorPosts