WC Lovers

WooCommerce Frontend Manager - Multivendor marketplace vendor dashboard

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Forum Replies Created

Viewing 25 posts - 676 through 700 (of 1,174 total)
  • Author
    Posts
  • in reply to: Vendor Store Setup #121690

    Hello,

    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.

    Hello,

    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.

    in reply to: Change product listing view to a catagorised view? #121677

    Hello,

    We have checked your attached video.But sorry, unfortunately this requirement is not feasible for vendor store page.

    Thanks.

    in reply to: Ask a Question Button #121675

    Hi,

    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>&nbsp;&nbsp;<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.

    in reply to: remove vat field for one of the type of memberships #121666

    Hello,

    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

    in reply to: Vendor Registration Form Customization Help! #121460

    Hello,

    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.php in this folder structure).
    You will find the vendor_registration.php file in plugin \wp-content\plugins\wc-multivendor-membership\templates\vendor_registration.php

    Thanks.

    in reply to: Change colour of WCFM default in theme #121456

    Hello,

    We have checked your site. Do you want to change button background color and button text color(example “Visit”)?

    Thanks.

    in reply to: Inquiry feature not working #121450

    Hi,

    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.

    in reply to: Downloadable products: multiple upload #121448

    Hello,

    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.
    in reply to: I can't translate Store Hours & Vacation, why? #121434

    Hi,

    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.

    in reply to: Disable store location map #121415

    Hi,

    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.

    in reply to: Vendor Product Shortcode for "current ID" #121405

    Hello,

    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 page

    add_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 in wc-multivendor-marketplace/views/store folder

    Thanks.

    in reply to: Límite de productos: 0 restantes #121394

    Hello,

    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.
    in reply to: membership – Product limit: 0 remaining #121380

    Hello,

    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” here

    Thanks.

    in reply to: Add a new custom Field to Vendor Information #121298

    Hi,

    To store verdor/user data wp_usermeta table is used.

    Thanks.

    in reply to: Vendor Registration Form Customization Help! #121284

    Hello,

    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 change

    3) 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.
    in reply to: when I disable mail capability phone numbers also hide #121278

    Hello,

    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.
    in reply to: Product category availability by groups #121271

    Hello,

    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.
    in reply to: Vendor Store Setup #121267

    Hello,

    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 Pages

    2) 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 translate

    Thanks.

    in reply to: user Profile #121264

    Hello,

    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.
    in reply to: Membership feature isn't visible #121260

    Hello,

    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” here

    Thanks.

    in reply to: MANDATORY REGISTRATION FIELDS: split Address in 2 parts #121099

    Hello,

    Regarding point B,
    You can change the text using Loco Translate plugin https://localise.biz/wordpress/plugin/beginners

    Regarding 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.

    in reply to: WCMP Vendors list not showing #121058

    Hi,

    Please update our WCFM plugins and try this code,
    add_filter( 'wcfm_is_allow_restrict_vendor_own_term', '__return_true' );

    Thanks.

    in reply to: How to empty store list if location not provided? #121056

    You 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.

    in reply to: Show store hour in [wcfm_stores] it's possible? #121055

    You 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.

Viewing 25 posts - 676 through 700 (of 1,174 total)