Forum Replies Created
- AuthorPosts
Sarmistha Chakraborty
MemberHello,
Please contact us here for the purpose – https://wclovers.com/woocommerce-multivendor-customization/ with topic link.
We have some custom solution for this.Thanks.
April 23, 2020 at 9:10 pm in reply to: MANDATORY REGISTRATION FIELDS: split Address in 2 parts #122265Sarmistha Chakraborty
MemberHi,
It’s need some custom development. You have to create a Country-Custom taxonomy mapping array, or settings panel where you can map. Example –
/*****To save custom taxonomy in vendor meta***************/ add_action('wcfm_membership_registration','save_custom_location_wcfm_membership_registration',10,2); function save_custom_location_wcfm_membership_registration($member_id, $wcfm_membership_registration_form_data) { print_r($wcfm_membership_registration_form_data); $country_taxonomy_mapping_arr = array("AX" => "location1","AF" => "location2"); foreach ($country_taxonomy_mapping_arr as $country_taxonomy_mapping_key => $country_taxonomy_mapping_val) { if($wcfm_membership_registration_form_data['wcfmvm_static_infos']['address']['country'] == $country_taxonomy_mapping_key) { //save your Custom Taxonomy update_user_meta($member_id,'vendor_custom_taxonomy',$country_taxonomy_mapping_val); } } } /*******************save vendor custom taxonomy to product category********************************/ add_action( 'after_wcfm_products_manage_meta_save', 'fn_custom_product_tag_save',10,2 ); function fn_custom_product_tag_save($new_product_id, $wcfm_products_manage_form_data) { $member_id = get_current_user_id(); $tag_name = get_user_meta($member_id,'vendor_custom_taxonomy',$country_taxonomy_mapping_val); wp_set_object_terms( $new_product_id, $tag_name, 'product_cat', true ); }Hope it will help you.
Thanks.
Sarmistha Chakraborty
MemberThis reply has been marked as private.April 23, 2020 at 8:03 pm in reply to: Reply-to customer in email of vendor email notification. #122237Sarmistha Chakraborty
MemberHello,
Oh! Am extremely sorry. please delete “cuscheck1” from Reply-to. I was use it for testing purpose. Modify the code,
add_filter( 'woocommerce_email_headers', function( $header, $mail_id, $mail_object, $clsobject ) { global $WCFM, $WCFMmp; if ( in_array( $mail_id, array( 'new_order', 'cancelled_order', 'failed_order','store-new-order' ), true ) ) { $header = 'Content-Type: ' . $clsobject->get_content_type() . "\r\n"; $header .= 'Reply-to: ' . $mail_object->get_billing_first_name() . ' ' . $mail_object->get_billing_last_name() . '<' . $mail_object->get_billing_email() . ">\r\n"; } return $header; }, 50, 4 );Thanks.
April 23, 2020 at 5:33 pm in reply to: MANDATORY REGISTRATION FIELDS: split Address in 2 parts #122197Sarmistha Chakraborty
MemberHello,
Country field in vendor registration form are fetched from WooCommerce Location settings. Whatever locations you have set in “Selling location(s)” it will reflect in your vendor registration form.
Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
We have logged in your site as a vendor(username: test1vendor), and we can access “Enquiry” dashboard. Please check properly. (PFA)
Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
Sorry, your requirement is not clear to us. Can you explain little more?
Our WCFM plugin have add “Product Custom Field” feature . (PFA)Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHi,
To remove “inquiry button” from slide add below css,
.owl-item a.wcfm_catalog_enquiry{ display:none !important; }Thanks.
Sarmistha Chakraborty
MemberThis reply has been marked as private.April 23, 2020 at 2:34 pm in reply to: Change PDF style in WooCommerce PDF Invoices & Packing Slips #122135Sarmistha Chakraborty
MemberHello,
Example how to override store-invoice.php file-
Copy the “store-invoice.php” file from – “wp-content\plugins\wc-frontend-manager-ultimate\views\vendor_invoice”
And then Create a “wcfm” folder in your theme/child theme, then create “vendor_invoice” folder inside the “wcfm” folder. The folder structure will be –wp-content/themes/<your theme>/wcfm/vendor_invoicethen paste the “store-invoice.php” file. and then modify this file as per your requirement.Thanks.
Sarmistha Chakraborty
MemberHello,
For translate please use Loco Translate plugin(https://wordpress.org/plugins/loco-translate/). For documentation : https://localise.biz/wordpress/plugin/beginners
Changing Dashboard -> Orders -> Header line,
WP dashboard -> Loco Translate -> plugins -> WCFM – WooCommerce Multivendor Marketplace -> select your language(or create your language) -> search string(like “Pending”) & translate
WP dashboard -> Loco Translate -> plugins -> WooCommerce -> select your language(or create your language) -> search string(like “Pending payment”) & translateThanks.
Sarmistha Chakraborty
MemberHello,
We have some custom solution for this.
Vendors will able to chose their preferred category(producers or service providers) during registration and also this will visible at store list page as filter.
That will meet your requirement? Please confirm.Thanks.
Sarmistha Chakraborty
MemberHello,
To change/translate email content you have change from WCFM dashboard -> Membership -> “Membership settings” -> Welcome Email (PFA)
and you will find “welcome email” message in each membeship plan.Thanks.
Attachments:
You must be logged in to view attached files.April 23, 2020 at 1:26 pm in reply to: Reply-to customer in email of vendor email notification. #122112Sarmistha Chakraborty
MemberHello,
Try 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( 'woocommerce_email_headers', function( $header, $mail_id, $mail_object, $clsobject ) { global $WCFM, $WCFMmp; if ( in_array( $mail_id, array( 'new_order', 'cancelled_order', 'failed_order','store-new-order' ), true ) ) { $header = 'Content-Type: ' . $clsobject->get_content_type() . "\r\n"; $header .= 'Reply-to: ' . $mail_object->get_billing_first_name() . ' ' . $mail_object->get_billing_last_name() . ' cuscheck1<' . $mail_object->get_billing_email() . ">\r\n"; } return $header; }, 50, 4 );Thanks.
Sarmistha Chakraborty
MemberHello,
To change the number of products per row in vendor store page, try this code in your theme’s functions.php
/** * Change number or products per row to 3 */ add_filter('loop_shop_columns', 'loop_columns', 999); if (!function_exists('loop_columns')) { function loop_columns() { return 3; // 3 products per row } }Thanks.
Sarmistha Chakraborty
MemberHello,
Remove the custom field(VAT Number) which you have created from WCFM-settings.
Try this code in your theme’s functions.phpadd_filter('wcfm_membership_registration_fields_address', 'wcfmu_settings_fields_vendor_store_invoice2204', 50); function wcfmu_settings_fields_vendor_store_invoice2204($general_fields) { if(WC()->session->get('wcfm_membership') != 153) { $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' => '' ); } return $general_fields; } add_action('wcfm_membership_registration','save_custom_vat_wcfm_membership_registration',10,2); add_action('wcfm_profile_update','save_custom_vat_wcfm_membership_registration',10,2); function save_custom_vat_wcfm_membership_registration($member_id, $wcfm_membership_registration_form_data) { //print_r($wcfm_membership_registration_form_data); if( isset($wcfm_membership_registration_form_data['wcfm_vendor_invoice_storevat']) ) { update_user_meta($member_id,'wcfm_vendor_invoice_storevat',$wcfm_membership_registration_form_data['wcfm_vendor_invoice_storevat']); } } add_filter('wcfm_profile_fields_general','custom_field_wcfm_profile_fields_general',10,2); function custom_field_wcfm_profile_fields_general($general_fields,$member_id){ $wcfm_vendor_invoice_storevat = !empty( get_user_meta($member_id,'wcfm_vendor_invoice_storevat',true) ) ? get_user_meta($member_id,'wcfm_vendor_invoice_storevat',true) : ''; $current_plan = wcfm_get_membership(); if(isset($current_plan) && ($current_plan != 153) ) { $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; }Thanks.
Sarmistha Chakraborty
MemberHello,
a possible option for the future?
>>At present we don’t have this in our road-map. If we have any future plan for this we will let you know.How can I disable the product tab then?
>> By-default when you browse the vendor store page the “product” tab open. So do you want to remove the product tab? If yes then which tab should be open by-default?Can i add a button to the about tab?
>> Yes you can by override the wcfmmp-view-store-about.php in your theme\wp-content\themes\<your theme>\wcfm\store.
Copy the wcfmmp-view-store-about.php file from\wp-content\plugins\wc-multivendor-marketplace\views\storeThanks.
Sarmistha Chakraborty
MemberHello,
You can use this action,
add_action( 'after_wcfm_products_manage_meta_save', 'fn_custom_product_data_save',10,2 ); function fn_custom_product_data_save($new_product_id, $wcfm_products_manage_form_data) { /* you can find your custom field value $wcfm_products_manage_form_data*/ update_post_meta( $new_product_id, '_the_field_to_update', $wcfm_products_manage_form_data['product_custom_field'] ); } }Thanks.
April 22, 2020 at 7:14 pm in reply to: WCFM membership option is not showing in store manager dashboard #121862Sarmistha Chakraborty
MemberHello,
Do you installed & activate our “WCFM – Groups & Staffs” plugin in your site?
You have only shared username of you site MyFactory.shop. Please provide us password as well so we can login your site and check your site.Thanks.
Sarmistha Chakraborty
MemberHello,
We just checked your site. Do you talking about “vat number” in this page https://beantic.wpcomstaging.com/vendor-membership/?vmstep=registration?
The above code was regarding “Store invoice” Vat number?
Can you share us the screenshot how/from where you add this “Vat number” in vendor registration page? any custom coding?
Then we will guide you specifically.Thanks.
Sarmistha Chakraborty
MemberHi,
Try this css in you theme’s style.css
a.wcfm_catalog_enquiry, span.add_enquiry, a.wcfm_follow_me, a.wcfm_chat_now_button { border-bottom:1px solid red; /* replace red with your color code*/ } #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li p.store-enquiry a.wcfm_catalog_enquiry, #wcfmmp-stores-wrap a.wcfmmp-visit-store { color:red;/* replace red with your color code*/ } /* hover effect*/ #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li p.store-enquiry a.wcfm_catalog_enquiry:hover,#wcfmmp-stores-wrap a.wcfmmp-visit-store:hover { background:red; /* replace red with your color code*/ color:#fff; }Thanks.
Sarmistha Chakraborty
MemberHello,
To remove “Logo” section from Vendor store page, add this css in your activated theme’s style.css
#wcfmmp-store .logo_area { display: none; } #wcfmmp-store .logo_area_after { top: 0; }Thanks.
April 22, 2020 at 6:10 pm in reply to: Removing store address/email from header image of shop #121815Sarmistha Chakraborty
MemberHello,
Do you want to remove from vendor store page header?
Please turn-off the”show email” and “show address” from WCFM dashboard -> capability (PFA)Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
Create a page with “[wc_frontend_manager]” shortcode in your primary site, and then set this page as “WCFM page”. You need to create WCFM pages in your primary site like “[wcfm_vendor_registration]” etc. (https://wclovers.com/knowledgebase/)
Thanks.
Sarmistha Chakraborty
MemberHello,
3) I cannot remove the and add the code because I don’t have a code editor, Could you please provide the edited file attached here 🙂
>> We have attached the php file. You can you https://wordpress.org/plugins/file-manager-advanced/4) New Question – How can I disable/delete/rename the Product Categories like Variable Category/Others expect simple product
>>This point not so clear. But to remove “Category” section from product edit turn-off the “Category” capablity from WCFM dashboard -> Capability (PFA)5)New Question – How to make my product custom field information appear on product page the option is there but i only can select “Do not show”
>> You need our premium WCFM-Ultimate plugin https://wclovers.com/product/woocommerce-frontend-manager-ultimate/6)How to remove the attributes tab in product entry page (Vendor Add product page)
>>turn-off the “Attribute” capablity from WCFM dashboard -> Capability (PFA)4) Issue Screenshot – https://prnt.sc/s3h2on >> turn-off the others product type from WCFM dashboard -> Capability (PFA)
5) Issue Screenshot – https://prnt.sc/s3h4o8
>> Add the css in your theme’s style.cssdiv.wcfm-collapse-content h2,p.wcfm_title strong, span.wcfm_title strong { font-style: normal !important; }6) Issue Screenshot – https://prnt.sc/s3h6ky
>>`add_action(‘init’,function(){
global $WCFM;
remove_action( ‘end_wcfm_products_manage’, array( $WCFM->wcfm_customfield_support, ‘wcfm_custom_field_products_manage_views’ ), 200 );
add_action( ‘after_wcfm_products_manage_stock’, array( $WCFM->wcfm_customfield_support, ‘wcfm_custom_field_products_manage_views’ ), 200 );});`
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/Many options(as your required) comes with our premium WCFM-Ultimate plugin.
Kindly create different thread for different issues.
Thanks.
Attachments:
You must be logged in to view attached files.- AuthorPosts