Forum Replies Created
- AuthorPosts
Sarmistha Chakraborty
MemberHello,
To remove fields from vendor store setup, 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/add_filter('wcfmmp_store_setup_steps','remove_some_store_step'); function remove_some_store_step($steps) { unset($steps['support']); unset($steps['seo']); unset($steps['social']); return $steps; } add_filter('wcfm_marketplace_settings_fields_billing_bank','remove_fields_wcfm_marketplace_settings_fields_billing_bank',10,2); function remove_fields_wcfm_marketplace_settings_fields_billing_bank($fields,$vendor_id){ if(isset($_GET['store-setup'])) { unset($fields['swift']); unset($fields['ifsc']); } return $fields; }Regarding Turkish letters,
add_filter( 'wcfm_membership_registration_fields', function( $store_name_fields ) { if( isset( $store_name_fields['store_name'] ) ) { $store_name_fields['store_name']['class'] = 'wcfm-text wcfm_ele'; } return $store_name_fields; }); add_filter( 'wcfm_marketplace_settings_fields_general', function( $store_name_fields ) { if( isset( $store_name_fields['store_name'] ) ) { $store_name_fields['store_name']['class'] = 'wcfm-text wcfm_ele'; } return $store_name_fields; });Thanks.
April 22, 2020 at 1:36 pm in reply to: WCFM membership option is not showing in store manager dashboard #121681Sarmistha Chakraborty
MemberHello,
Sorry, can’t get your issue. Can you explain little more?
is WCFM membership option not showing in your store manager dashboard? (you have written your issue “WCFM membership option is not showing in store manager dashboard” in this topic).Thanks.
Sarmistha Chakraborty
MemberHello,
We have checked your attached video.But sorry, unfortunately this requirement is not feasible for vendor store page.
Thanks.
Sarmistha Chakraborty
MemberHi,
What you can do display a message before “Ask a Question” button to modify the previous code,
add_action('woocommerce_after_shop_loop_item','shoploop_wcfm_enquiry_button', 9 ); function shoploop_wcfm_enquiry_button(){ global $product,$wpdb; $product_id = $product->get_id(); $vendor_id = wcfm_get_vendor_id_by_post( $product_id ); $button_style = 'margin-right:10px;'; $hover_color = ''; $hover_text_color = '#ffffff'; $wcfm_options = $WCFM->wcfm_options; $wcfm_store_color_settings = get_option( 'wcfm_store_color_settings', array() ); if( !empty( $wcfm_store_color_settings ) ) { if( isset( $wcfm_store_color_settings['button_bg'] ) ) { $button_style .= 'background: ' . $wcfm_store_color_settings['button_bg'] . ';border-bottom-color: ' . $wcfm_store_color_settings['button_bg'] . ';'; } if( isset( $wcfm_store_color_settings['button_text'] ) ) { $button_style .= 'color: ' . $wcfm_store_color_settings['button_text'] . ';'; } if( isset( $wcfm_store_color_settings['button_active_bg'] ) ) { $hover_color = $wcfm_store_color_settings['button_active_bg']; } if( isset( $wcfm_store_color_settings['button_active_text'] ) ) { $hover_text_color = $wcfm_store_color_settings['button_active_text']; } } else { if( isset( $wcfm_options['wc_frontend_manager_button_background_color_settings'] ) ) { $button_style .= 'background: ' . $wcfm_options['wc_frontend_manager_button_background_color_settings'] . ';border-bottom-color: ' . $wcfm_options['wc_frontend_manager_button_background_color_settings'] . ';'; } if( isset( $wcfm_options['wc_frontend_manager_button_text_color_settings'] ) ) { $button_style .= 'color: ' . $wcfm_options['wc_frontend_manager_button_text_color_settings'] . ';'; } if( isset( $wcfm_options['wc_frontend_manager_base_highlight_color_settings'] ) ) { $hover_color = $wcfm_options['wc_frontend_manager_base_highlight_color_settings']; } } $wcfm_enquiry_button_label = isset( $wcfm_options['wcfm_enquiry_button_label'] ) ? $wcfm_options['wcfm_enquiry_button_label'] : __( 'Ask a Question', 'wc-frontend-manager' ); $button_class = ''; if( !is_user_logged_in() && apply_filters( 'wcfm_is_allow_enquiry_with_login', false ) ) { $button_class = ' wcfm_login_popup'; } if( is_user_logged_in()) { $user = wp_get_current_user(); //replace the "wholesaler" role with your required role if ( in_array( 'wholesaler', (array) $user->roles ) ) { ?> <div class="wcfm_ele_wrapper wcfm_catalog_enquiry_button_wrapper"> <div class="wcfm-clearfix"></div> <?php $table_name = $wpdb->prefix . "wcfm_enquiries"; $current_user_id = get_current_user_id(); $have_enquiry = $wpdb->get_results( "SELECT * FROM $table_name WHERE <code>product_id</code>=$product_id AND <code>customer_id</code>=$current_user_id" ); if(!empty($have_enquiry)) { echo '<p style="clear:both">'.__('You have sent inquiry before','wc-frontend-manager').'</p>'; } ?> <a href="#" class="wcfm_catalog_enquiry <?php echo $button_class; ?>" data-store="<?php echo $vendor_id; ?>" data-product="<?php echo $product_id; ?>" style="<?php echo $button_style; ?>"><span class="wcfmfa fa-question-circle"></span> <span class="add_enquiry_label"><?php _e( $wcfm_enquiry_button_label, 'wc-frontend-manager' ); ?></span></a> <?php do_action( 'wcfm_after_product_catalog_enquiry_button' ); ?> <?php if( $hover_color ) { ?> <style> a.wcfm_catalog_enquiry:hover{background: <?php echo $hover_color; ?> !important;background-color: <?php echo $hover_color; ?> !important;border-bottom-color: <?php echo $hover_color; ?> !important;color: <?php echo $hover_text_color; ?> !important;} </style> <?php } ?> <div class="wcfm-clearfix"></div> </div> <?php } } }Thanks.
Sarmistha Chakraborty
MemberHello,
Add this code in your theme’s functions.php
add_filter('wcfmu_settings_fields_vendor_store_invoice', 'wcfmu_settings_fields_vendor_store_invoice2204', 50, 2 ); function wcfmu_settings_fields_vendor_store_invoice2204($general_fields,$vendor_id) { $wcfm_vendor_invoice_data = (array) wcfm_get_user_meta( $vendor_id, 'wcfm_vendor_invoice_options', true ); $wcfm_vendor_invoice_storevat = isset( $wcfm_vendor_invoice_data['wcfm_vendor_invoice_storevat'] ) ? $wcfm_vendor_invoice_data['wcfm_vendor_invoice_storevat'] : ''; $current_plan = wcfm_get_membership(); if(isset($current_plan) && ($current_plan != 153) ) { //replace 153 with "“particular ones" membership plan id $general_fields['wcfm_vendor_invoice_storevat']= array('label' => __('Vat Number', 'wc-frontend-manager') , 'type' => 'text', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele','custom_attributes' => array( 'required' => 1 ), 'value' => $wcfm_vendor_invoice_storevat ); } return $general_fields; } add_action( 'wcfm_wcfmmp_settings_update','fn_wcfm_vendor_settings_storetype_update2204', 50, 2); add_action( 'wcfm_vendor_settings_update','fn_wcfm_vendor_settings_storetype_update2204', 50, 2); function fn_wcfm_vendor_settings_storetype_update2204($user_id, $wcfm_settings_form ){ $wcfm_settings_form_data_new = array(); $wcfm_vendor_invoice_data = (array) wcfm_get_user_meta( $user_id, 'wcfm_vendor_invoice_options', true ); parse_str($_POST['wcfm_settings_form'], $wcfm_settings_form_data_new); if( isset( $wcfm_settings_form_data_new['wcfm_vendor_invoice_storevat'] ) ) { $wcfm_vendor_invoice_data['wcfm_vendor_invoice_storevat'] = $wcfm_settings_form_data_new['wcfm_vendor_invoice_storevat']; wcfm_update_user_meta( $user_id, 'wcfm_vendor_invoice_options', $wcfm_vendor_invoice_data ); } }Thanks
Sarmistha Chakraborty
MemberHello,
2) I installed that plugin but it shows some language and I cannot find what you said.Couldn’t fine Registration text in Loco and I went Plugins > WCFM > then it shows few langs like russian etc (There is no strings to change there)
>> Yes after that you need to select your site language or click on new language(if your site language is not there), then you find the place where you search the string. Please follow the documentation : https://localise.biz/wordpress/plugin/beginners .
From point 5 you will find the present screen which you have now.3) Couldn’t fine a folder like that
I had only a folder called store in the WCFM folder
>> These folder was not exists by-default in you theme folder. you need to create the folders like “wcfm”,”membership” (<your theme folder>/wcfm/membership/vendor_registration.phpin this folder structure).
You will find the vendor_registration.php file in plugin\wp-content\plugins\wc-multivendor-membership\templates\vendor_registration.phpThanks.
Sarmistha Chakraborty
MemberHello,
We have checked your site. Do you want to change button background color and button text color(example “Visit”)?
Thanks.
Sarmistha Chakraborty
MemberHi,
It’s strange.
Can you share us the site details with site url, we need to debug this issue in your site.(Set as private reply)Thanks.
Sarmistha Chakraborty
MemberHello,
As you know WooCommerce also works this way.
This requirement is need good amount of customization not any tweak work.
If you want that customization work Please contact us here for the purpose – https://wclovers.com/woocommerce-multivendor-customization/ with your requirement.Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHi,
Try this code in your theme’s functions.php
function my_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Store Hours & Vacation' : $translated_text = __( 'Store Hours & Vacationzzz!', 'woocommerce' ); //replace your text break; } return $translated_text; } add_filter( 'gettext', 'my_text_strings', 20, 3 );Thanks.
Sarmistha Chakraborty
MemberHi,
To remove “Hide Map from Store” add this code in your theme’s functions.php
add_filter('wcfm_marketplace_settings_fields_visibility', 'wcfm_marketplace_settings_fields_visibility2104', 50, 2 ); function wcfm_marketplace_settings_fields_visibility2104($general_fields,$vendor_id) { unset($general_fields['store_hide_map']); return $general_fields; }Thanks.
Sarmistha Chakraborty
MemberHello,
By-default we don’t have shortcode like this. But you can use this shortcode “[wcfm_store_info id=”” data=””]” for some vendor data.https://wclovers.com/knowledgebase/wcfm-marketplace-widgets-short-codes/
This requirement needs custom development.
Suppose for vendor’s product, using this shortcode([wcfm_store_related_products]) you will get vendor’s product in vendor’s store pageadd_shortcode('wcfm_store_related_products','fn_wcfm_store_related_products'); function fn_wcfm_store_related_products($attr) { global $WCFM, $WCFMmp, $wp, $WCFM_Query, $post; $store_id = ''; if ( isset( $attr['id'] ) && !empty( $attr['id'] ) ) { $store_id = absint($attr['id']); } if ( wcfm_is_store_page() ) { $wcfm_store_url = get_option( 'wcfm_store_url', 'store' ); $store_name = apply_filters( 'wcfmmp_store_query_var', get_query_var( $wcfm_store_url ) ); $store_id = 0; if ( !empty( $store_name ) ) { $store_user = get_user_by( 'slug', $store_name ); } $store_id = $store_user->ID; } if( is_product() ) { $store_id = $post->post_author; } if( !$store_id && is_single() && $post && is_object( $post ) && wcfm_is_vendor( $post->post_author ) ) { $store_id = $post->post_author; } echo do_shortcode('[products store="'.$store_id.'"]'); }Add this above code in your functions.php.
Likewise you need to create shortcode for “about” text, policies etc. You will find the code how get values from vendor id-
files inwc-multivendor-marketplace/views/storefolderThanks.
Sarmistha Chakraborty
MemberHello,
POr que ya no me aparecen las opciones
>> Regarding “Features” you have to add the feature lists from WCFM strore dashboard -> Membership -> Settings -> Features . Then those features will display in each membership plan.Kindly follow the discussion here – https://wclovers.com/forums/topic/membership-product-limit-0-remaining/
Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
You will find the option “product limit” in group capability.(each group is assigned with respective membership)
MESS: * Product limit: 0 remaining *
>>Can you please check at WCfM Admin Setting -> Store Verification -> Product Limit Restriction and your “Group” capability.
and WCFM Membership Setting -> Pay Per Product -> be sure you not set Product Limit “0” hereThanks.
Sarmistha Chakraborty
MemberHi,
To store verdor/user data wp_usermeta table is used.
Thanks.
Sarmistha Chakraborty
MemberHello,
1) How to remove the italics in the form
>>Add this css in your theme’s style.css#wcfm_membership_container p.wcfm_title strong, #wcfm_membership_container span.wcfm_title strong { font-style: normal !important; }2) How to change the form heading
>>For change the text use Loco translate “Loco Translate” plugin https://localise.biz/wordpress/plugin/beginners
You will find “Registration” text Loco Translate -> Plugins -> WCFM – WooCommerce Multivendor Marketplace -> select string and change3) How to drag the new boxes/fields I made more up (change positions)
>> You need to override “vendor_registration.php” in your theme.
<your theme folder>/wcfm/membership/vendor_registration.php
and modify the below code (PFA)$WCFM->wcfm_fields->wcfm_generate_form_field( apply_filters( 'wcfm_membership_registration_fields_address', array( "addr_1" => array('label' => __('Address 1', 'wc-frontend-manager') , 'type' => 'text', 'name' => $field_name . '[addr_1]', 'custom_attributes' => array( 'required' => 1 ), 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => isset($field_value['addr_1']) ? $field_value['addr_1'] : '' ), "addr_2" => array('label' => __('Address 2', 'wc-frontend-manager') , 'type' => 'text', 'name' => $field_name . '[addr_2]', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => isset($field_value['addr_2']) ? $field_value['addr_2'] : '' ), "country" => array('label' => __('Country', 'wc-frontend-manager') , 'type' => 'country', 'name' => $field_name . '[country]', 'custom_attributes' => array( 'required' => 1 ), 'class' => 'wcfm-select wcfm_ele wcfmvm_country_to_select', 'label_class' => 'wcfm_title wcfm_ele', 'attributes' => array( 'style' => 'width: 60%;' ), 'value' => isset($field_value['country']) ? $field_value['country'] : '' ), "passoword" => array( 'label' => __('Password', 'wc-multivendor-membership') , 'type' => 'password', 'custom_attributes' => array( 'required' => 1, 'mismatch_message' => __( 'Password and Confirm-password are not same.', 'wc-multivendor-membership' ) ), 'class' => 'wcfm-text wcfm_ele ', 'label_class' => 'wcfm_ele wcfm_title', 'value' => '' ), "password_strength" => array( 'type' => 'html', 'value' => '<div id="password-strength-status"></div>' ), "confirm_pwd" => array( 'label' => __('Confirm Password', 'wc-multivendor-membership') , 'type' => 'password', 'custom_attributes' => array( 'required' => 1 ), 'class' => 'wcfm-text wcfm_ele ', 'label_class' => 'wcfm_ele wcfm_title', 'value' => '' ), "city" => array('label' => __('City/Town', 'wc-frontend-manager') , 'type' => 'text', 'name' => $field_name . '[city]', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => isset($field_value['city']) ? $field_value['city'] : '' ), "state" => array('label' => __('State/County', 'wc-frontend-manager') , 'type' => 'select', 'name' => $field_name . '[state]', 'class' => 'wcfm-select wcfm_ele wcfmvm_state_to_select', 'label_class' => 'wcfm_title wcfm_ele', 'options' => isset($field_value['state']) ? array($field_value['state'] => $field_value['state']) : array(), 'value' => isset($field_value['state']) ? $field_value['state'] : '' ), "zip" => array('label' => __('Postcode/Zip', 'wc-frontend-manager') , 'type' => 'text', 'name' => $field_name . '[zip]', 'custom_attributes' => array( 'required' => 1 ), 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => isset($field_value['zip']) ? $field_value['zip'] : '' ), ) ) );and remove the this section
if( !$user_id ) { $WCFM->wcfm_fields->wcfm_generate_form_field( array( "passoword" => array( 'label' => __('Password', 'wc-multivendor-membership') , 'type' => 'password', 'custom_attributes' => array( 'required' => 1, 'mismatch_message' => __( 'Password and Confirm-password are not same.', 'wc-multivendor-membership' ) ), 'class' => 'wcfm-text wcfm_ele ', 'label_class' => 'wcfm_ele wcfm_title', 'value' => '' ), "password_strength" => array( 'type' => 'html', 'value' => '<div id="password-strength-status"></div>' ), "confirm_pwd" => array( 'label' => __('Confirm Password', 'wc-multivendor-membership') , 'type' => 'password', 'custom_attributes' => array( 'required' => 1 ), 'class' => 'wcfm-text wcfm_ele ', 'label_class' => 'wcfm_ele wcfm_title', 'value' => '' ), ) ) ; }Thanks.
Attachments:
You must be logged in to view attached files.April 21, 2020 at 1:28 pm in reply to: when I disable mail capability phone numbers also hide #121278Sarmistha Chakraborty
MemberHello,
No, we have tested that, if admin off the “Show Email” from capability(PFA) “store phone number” still showing in vendor-store page.
Please check vendor “Hide Phone from Store” is unchecked from his WCFM store settings.Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
Yes you can add “Product category” limit from capability in each group(PFA) and you have to assign group with respective membership.
To set “Product category limit” you need our premium WCFM-Ultimate plugin also.Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
1) Become a Vendor Link does not work at the login page please let me know how to fix it
>>Possibly you are missing WCFM Membership, it’s essential for vendor registration with WCFM Marketplace.
Please install this – https://wordpress.org/plugins/wc-multivendor-membership/
If you already have this then be sure it’s pages are set at WCFM Page setting, check this at WCFM Admin Setting -> Dashboard Pages2) I have too many unnecessary fiedls during vendor store setup. Is there any way of re-configuring it?
>>Which fields you don’t want in store setup?3) I have translated all the plugins i am using but Login or Register titles are still in english
>> For translation use Loco translate “Loco Translate” plugin https://localise.biz/wordpress/plugin/beginners
You will find Login” and “Register” text Loco Translate -> Plugins -> WooCommerce -> select string and translateThanks.
Sarmistha Chakraborty
MemberHello,
Can you please explain what do you mean by “admin>>user profile”?
In admin WCFM dashboard -> Store vendors section admin can see all vendor information.(PFA)Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
Can you please check at WCfM Admin Setting -> Store Verification -> Product Limit Restriction
and WCFM Membership Setting -> Pay Per Product -> be sure you not set Product Limit “0” hereThanks.
April 20, 2020 at 11:05 pm in reply to: MANDATORY REGISTRATION FIELDS: split Address in 2 parts #121099Sarmistha Chakraborty
MemberHello,
Regarding point B,
You can change the text using Loco Translate plugin https://localise.biz/wordpress/plugin/beginnersRegarding point D,
We understand importance of your requirement. Unfortunately correctly we have not this feature, yes you can achieve this using category. We are working on this feature, when we will implement this in near future we will let you know. Also it will be helpful if you can provide us the name of your theme.
To hide map, add this code in your theme’s functions.php
add_filter('wcfmmp_is_allow_product_list_map', '__return_false');Thanks.
Sarmistha Chakraborty
MemberHi,
Please update our WCFM plugins and try this code,
add_filter( 'wcfm_is_allow_restrict_vendor_own_term', '__return_true' );Thanks.
Sarmistha Chakraborty
MemberYou are always welcome 🙂
Let me know if there’s anything else we can help you with.
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.Sarmistha Chakraborty
MemberYou are always welcome 🙂
Let me know if there’s anything else we can help you with.
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.- AuthorPosts