Forum Replies Created
- AuthorPosts
Sarmistha Chakraborty
MemberThis reply has been marked as private.Sarmistha Chakraborty
MemberHi,
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('wcfmu_is_allow_downloadable','__return_false');//to remove downloadable product.Thanks.
Sarmistha Chakraborty
MemberHello,
Do you add any custom code to enable “Downloadable” option by-default for product?
Thanks.
April 26, 2020 at 8:15 pm in reply to: Vendor Registration-Terms & Conditions and Privacy Policy #123326Sarmistha Chakraborty
MemberHello,
1-I don’t know how to add the Privacy Policy on the side of the terms & conditions! How can I do that?
>>Do you want to just change the text “terms & conditions!” to “terms & conditions! and Privacy Policy”, then you can change the text using “Loco Translate” plugin.
https://localise.biz/wordpress/plugin/beginners
WP dashboard -> Loco Translate -> plugins -> WCFM – WooCommerce Multivendor Membership -> Select your site language(Or click on “New Language”) -> search the string(Terms & Conditions) and change the string as per your requirement2-How can I put the square button in the front of the privacy policy and terms and conditions?
>>Add the css in your theme’s style.css#wcfm_membership_registration_form p.terms_title.wcfm_title { display:inline !important; } #wcfm_membership_registration_form #wcfm-main-contentainer input#terms { margin-left: 0; display: inline-block; }Thanks.
Sarmistha Chakraborty
MemberHi,
Modify the code,
add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_general_custom1804', 50, 2 ); function wcfm_marketplace_settings_fields_general_custom1804($general_fields,$vendor_id) { unset($general_fields['banner_type']); unset($general_fields['banner_slider']); unset($general_fields['banner_video']); unset($general_fields['list_banner_type']); unset($general_fields['list_banner']); unset($general_fields['list_banner_video']); return $general_fields; }Thanks.
Sarmistha Chakraborty
MemberHello,
add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_general_custom1804', 50, 2 ); function wcfm_marketplace_settings_fields_general_custom1804($general_fields,$vendor_id) { unset($general_fields['banner_type']); unset($general_fields['list_banner_type']); unset($general_fields['list_banner']); return $general_fields; }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,
Sorry, we didn’t get you. As per your earlier post your concern was “remove vat field for one of the type of memberships”.
And we have provided you the solution, did that work for you?
And it seems that this is your new query, so please create a new thread for new requirement.Thanks.
Sarmistha Chakraborty
MemberHello,
To show seller information only customer/buyer email, Add this code in your functions.php
add_action( 'woocommerce_email_order_meta', 'add_sellerinfo_to_buyer_email',50,4 ); function add_sellerinfo_to_buyer_email( $order, $sent_to_admin, $plain_text, $email ) { global $WCFM; if ( !in_array( $email->id, array( 'new_order','store-new-order') )){ $items = $order->get_items(); echo '<p>Seller Information -</p>'; foreach ( $items as $item ) { $product_id = $item->get_product_id(); $vendor_id = wcfm_get_vendor_id_by_post( $product_id ); if( apply_filters( 'wcfmmp_is_allow_sold_by_linked', true ) ) { $store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_by_vendor( absint($vendor_id) ); } else { $store_name = $WCFM->wcfm_vendor_support->wcfm_get_vendor_store_name_by_vendor( absint($vendor_id) ); } $store_user = wcfmmp_get_store( $vendor_id ); $email = $store_user->get_email(); $phone = $store_user->get_phone(); $address = $store_user->get_address_string(); echo $store_name.'('.$item->get_name().') :'.$email.' '.$phone.'<br/>'; } } }Or if You want seller/vendor information for all order emails, then try this code,
add_action( 'woocommerce_order_item_meta_end', 'add_sellerinfo_to_all_order_email',50,4 ); function add_sellerinfo_to_all_order_email( $item_id, $item, $order, $plain_text ) { $product_id = $item->get_product_id(); $vendor_id = wcfm_get_vendor_id_by_post( $product_id ); $store_user = wcfmmp_get_store( $vendor_id ); $email = $store_user->get_email(); $phone = $store_user->get_phone(); $address = $store_user->get_address_string(); echo 'Seller Information: '.$email.' '.$phone; }Modify the seller information print section(HTML) as per your requirement.
Thanks.
April 25, 2020 at 12:25 pm in reply to: WCFM Shortcode Store List problem with includes parameter #122826Sarmistha Chakraborty
MemberHello,
May be quotation is not placed right way.
Kindly check once again,
[wcfm_stores includes="77,86,67,64,62,73,79,70,68,80,56,84,78,57,75,27,71" per_row=3]
Let us know it’s working or not.Thanks.
April 25, 2020 at 12:17 pm in reply to: WCFM membership option is not showing in store manager dashboard #122824Sarmistha Chakraborty
MemberHi,
Please update WooCommerce and our WCFM plugins.
Thanks.
Sarmistha Chakraborty
MemberHello,
I added 1 field (Country) in this page
You have added country field from WCFM dashboard -> Settings -> Vendor Registration ?Can you share your page url, then we can guide you accordingly.
Thanks.
Sarmistha Chakraborty
MemberHello,
Please explain with screenshot where you want to show the vendor information(store name and additional information).
Thanks.
April 24, 2020 at 6:39 pm in reply to: WCFM membership option is not showing in store manager dashboard #122553Sarmistha Chakraborty
MemberHello,
You have WCFM marketplace and WCFM-membership plugins activated?
Please check once you have turn-on the “Membership” module from WCFM dashboard -> Settings -> Modules (PFA)Thanks.
Attachments:
You must be logged in to view attached files.April 24, 2020 at 2:20 pm in reply to: WCFM membership option is not showing in store manager dashboard #122482Sarmistha Chakraborty
MemberHello,
Do you mean update/save not working in WordPress dashboard->Settings?
Thank You.
Sarmistha Chakraborty
MemberHello,
Can you please explain your requirement? So we can guide you properly.
Thanks.
Sarmistha Chakraborty
MemberHello,
We have also communicate in this https://wclovers.com/forums/topic/translation-issue-2/#post-122297 regarding translation issue, Can you share us your site access then can check your site.
Thanks.
Sarmistha Chakraborty
MemberHello,
Have you translate using “Loco Translate” plugin? We have tested in our local server, and its working perfectly.
Please Try this code in your theme’s functions.phpfunction my_text_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Pending' : $translated_text = __( 'Zahlung ausstehend', 'woocommerce' ); break; } return $translated_text; } add_filter( 'gettext', 'my_text_strings', 20, 3 );WP dashboard -> Loco Translate -> plugins -> WCFM – WooCommerce Multivendor Marketplace -> select your language(or create your language) -> search string(like “Pending”) & remove the translation and save.
Thanks.
Sarmistha Chakraborty
MemberHello,
Try this css in your theme’s style.css
.inquiry_info .inquiry_by .inquiry_by_customer,#wcfm-enquiry tbody tr td:nth-child(3){ color: transparent; } .inquiry_info .inquiry_by .inquiry_by_customer a,#wcfm-enquiry tbody tr td:nth-child(3) a { color: #f86c6b; }If you want hide customer email from all sections from WCFM dashboard then add this code in your theme’s functions.php
add_filter('wcfm_allow_view_customer_email','__return_false');Thanks.
Sarmistha Chakraborty
MemberHi,
For store invoice, Essential plugin for this module – WooCommerce PDF Invoice and Packing Slips
Please see our documentaton : https://wclovers.com/knowledgebase/wcfm-store-invoice/Thanks.
April 24, 2020 at 1:06 pm in reply to: MANDATORY REGISTRATION FIELDS: split Address in 2 parts #122446Sarmistha Chakraborty
MemberHello,
As we mentioned earlier at present we have no any product location filter. So to achieve this you have to assign “custom taxonomy”(location) in your product.
Using this “after_wcfm_products_manage_meta_save” (above mentioned in code) hook, when vendor create any product and save you can set your “location taxonomy country”
to this product.(not need to select manually location in product).The scope is to filter products by country
>>For this now you have to assign “custom taxonomy”(location) in your product.Thanks.
April 24, 2020 at 12:57 pm in reply to: Urgent: Options missing for Store Vendor Capability. #122437Sarmistha Chakraborty
MemberHi,
Did you add any custom code in your site?
Please check once only activate WooCommerce, WooCommerce PDF Invoices & Packing Slip and our WCFM plugins(WCFM-Ultimate plugin is required as you know).
Then let us know still you having same issue or not.Thanks.
Sarmistha Chakraborty
MemberHello,
how can i redirect registered vendor to “My Account” page instead??
>>This requirement is little confusing.
There is two options.
1. After clicking “Become a Vendor” it will take you “Membership plans” page.
>>this scenario is now in your site which you don’t want.2.After clicking “Become a Vendor” it will take you “Vendor Registration” form page. Without registration as vendor how it will take “My Account” page.
>> To After clicking “Become a Vendor” it will take you “Vendor Registration” form page, Add this code in your theme’s functions.php
add_filter('wcfm_is_allow_my_account_membership_subscribe','__return_false');Thanks.
April 24, 2020 at 12:35 pm in reply to: Urgent: Options missing for Store Vendor Capability. #122429Sarmistha Chakraborty
MemberHello,
Have you disable/turn-off the “Store Invoice” module from WCFM dashboard->Setiings->Modules (PFA)
Then Turn-on the option.Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
Firstly save the WP permalink set as “Post name” (WP dashboard -> Settings -> Permalinks)
If it’s still not working may that would be your theme doesn’t have the correct structure or else an outdated template override. If you switch temporarily to Twenty Seventeen, do those endpoints then work correctlyThanks.
Attachments:
You must be logged in to view attached files.April 24, 2020 at 12:04 pm in reply to: [Bug?] Custom field for vendor settings – uncheck a checkbox #122414Sarmistha Chakraborty
MemberHello,
Modify the code,
function add_allow_invoice( $settings_fields_general, $vendor_id ) { $vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true ); $allow_invoice = isset( $vendor_data['allow_invoice'] ) ? esc_attr( $vendor_data['allow_invoice'] ) : 'no'; if( isset( $settings_fields_general['store_name'] ) ) { //$allow_invoice = get_user_meta( $vendor_id, 'allow_invoice', true ); $settings_fields_general['allow_invoice'] = array( 'label' => __( 'Rechnung erlauben', 'ddwoo' ), 'type' => 'checkbox', 'priority' => 50, 'class' => 'wcfm-checkbox wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => 'yes', 'dfvalue' => $allow_invoice ); } return $settings_fields_general; } add_filter('wcfm_marketplace_settings_fields_general', 'add_allow_invoice', 20, 2 ); function save_custom_vendor_settings($vendor_id, $wcfm_settings_form) { global $WCFM, $WCFMmp; $wcfm_settings_form_data_new = array(); parse_str($_POST['wcfm_settings_form'], $wcfm_settings_form_data_new); $wcfm_settings_form_data_storetype = array(); if(isset($wcfm_settings_form_data_new['allow_invoice']) && !empty($wcfm_settings_form_data_new['allow_invoice'])) { $wcfm_settings_form_data_storetype['allow_invoice'] = 'yes'; } else { $wcfm_settings_form_data_storetype['allow_invoice'] = 'no'; } $wcfm_settings_form = array_merge( $wcfm_settings_form, $wcfm_settings_form_data_storetype ); update_user_meta( $vendor_id, 'wcfmmp_profile_settings', $wcfm_settings_form ); } add_action('wcfm_vendor_settings_update', 'save_custom_vendor_settings', 30, 2); add_action( 'wcfm_wcfmmp_settings_update','save_custom_vendor_settings', 30, 2);Thanks.
- AuthorPosts