Forum Replies Created
- AuthorPosts
Sarmistha Chakraborty
MemberHello,
Yes, You can assign vendor from “Store” tab (PFA).
Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
You can also change the text using Loco Translate plugin.
https://localise.biz/wordpress/plugin/beginners
Please select the plugin Loco Translate -> Plugins -> “WCFM – WooCommerce Frontend Manager” for changing text.Thanks.
Sarmistha Chakraborty
MemberHello,
Regarding “search by category” you have to use WooCommerce “Product Filter — Categories” widget in “shop sdebar”. Ref: https://docs.woocommerce.com/document/woocommerce-product-search/widgets/product-filter-categories/
Regarding “Search by Store” in shop page, unfortunately we don’t have this feature.
To hide map in shop page, Add this code to your child theme’s functions.php
add_filter('wcfmmp_is_allow_product_list_map', '__return_false');Thanks.
Sarmistha Chakraborty
MemberHi,
set up an opacity so the vendors can upload any pictures they want but the overlay opacity would darken them?
>> Please share us the page url, then we can guide you accordingly.move the text below, out of the image
>> By default we have two types of look&feel(theme). default: classic, alternate: simple. Ref:https://docs.wclovers.com/store-list/
For customization Please contact us here for the purpose – https://wclovers.com/setup-guidance/ (with topic link)Thanks.
Sarmistha Chakraborty
MemberHello,
You need to create another page with shortcode
[wcfm_stores exclude_membership="10"], replace 10 with “profeessional” membership id. In this way you will find only “particular vendors” lists.
Ref: https://docs.wclovers.com/store-list/Thanks.
Sarmistha Chakraborty
MemberHello,
As send you previously to hide Country, City/Town, State/Country, Postcode/Zip from store setup,
add_filter('wcfm_marketplace_settings_fields_address',function($fields, $user_id) { unset($fields['country']); unset($fields['state']); unset($fields['city']); unset($fields['zip']); return $fields; },10,2);And by-default the fields which you fillip during Store Setup, will Auto filled in vendor store settings.
Thanks.
April 17, 2020 at 3:05 pm in reply to: MANDATORY REGISTRATION FIELDS: split Address in 2 parts #119987Sarmistha Chakraborty
MemberHello,
need as mandatory fields “Country”+”State/County”+”City” WITHOUT “address” (street + post number).AUTOMATICALLY assigned to:
A) Store Setting -> Location -> “Store Address” C) Profile Manager -> Address
>>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('wcfm_marketplace_settings_fields_address',function($fields, $user_id) { unset($fields['street_1']); unset($fields['street_2']); unset($fields['zip']); return $fields; },10,2); add_filter('wcfm_membership_registration_fields_address',function($fields) { $fields['addr_1']['custom_attributes'] = array( 'required' => 0 ); $fields['city']['custom_attributes'] = array( 'required' => 1 ); $fields['state']['custom_attributes'] = array( 'required' => 1 ); unset($fields['addr_2']); unset($fields['zip']); return $fields; });and add ths css n your theme’s style.css
label[for=addr_1],.addr_1,#addr_1 { display: none !important; }B) Store Setting -> Location -> “Store Location (find location)”
>>Unfortunately it’s not possible. To point map you have to choose location from “Find Location”.D) A custom taxonomy (that gives me the opportunity to filter products by Location).
>>This point is not so clear. Enable “Product List Radius Search” from WCFM dashbord -> Settings -> Geo Location -> Product List Radius Search (PFA) in WooCommerce shop page(Product archive page) you will find product search by location flter.Map and filter will visible under default WooCommerce product listing page like this – https://wcfmmp.wcfmdemos.com/Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
We have a custom solution for this.
Please contact us here – https://wclovers.com/woocommerce-multivendor-customization/ (with topic link)
Will give you that.
Thanks.
Sarmistha Chakraborty
MemberHello,
We assume that you haven’t override the capability from individual vendor/group.
Do you have created this vendor user using some other multi-vendor plugin previously and now you are using another multi-vendor plugin?
If so, then you may get this message.When you are switching from other some multi-vendor plugin then migration is very important – https://wordpress.org/plugins/wc-multivendor-marketplace-migration/
Or, create a fresh new vendor user.
Important – vendor user role should be “Store Vendor”, don’t confuse with previous multi-vendor plugin’s user role!
Thanks.
April 17, 2020 at 12:43 pm in reply to: Change PDF style in WooCommerce PDF Invoices & Packing Slips #119959Sarmistha Chakraborty
MemberHello,
To change wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple you need to override the template in your
wp-content/themes/<your theme>/woocommerce/pdf/yourtemplateAnd override store invoice and make required changes.
Override this folder templates – “wp-content\plugins\wc-frontend-manager-ultimate\views\vendor_invoice”
to yourwp-content/themes/<your theme>/wcfm/vendor_invoiceThanks.
Sarmistha Chakraborty
MemberHello,
I need to allow multiple files upload to downloadable products from mobile
>> Can you explain us what is the meaning of “from mobile” ? Do you want from “mobile app” or “your site in mobile device”?
Vendor have the capability to upload multiple files for downloadable product(PFA). Please clarify.Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHi,
It should be
if($product_id == 422 || $product_id == 333 || $product_id == 222 ) {Thanks.
Sarmistha Chakraborty
MemberHi,
You need to override the “wcfmmp-view-store-lists-loop.php” file in your theme
<your theme folder>/wcfm/store-lists/wcfmmp-view-store-lists-loop.phpand add the “$search_data[‘wcfmmp_radius_addr’] != ”” condition. (PFA)Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
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('wcfm_default_placeholder_image',function($imgurl){ $imgurl = get_stylesheet_directory_uri().'/img/user_prev.png'; return $imgurl; });Thanks.
Sarmistha Chakraborty
MemberHello,
Can you tell us which theme are you using?
https://wcfmmp.wcfmdemos.com/store/demo-vendor this “vendor store page” look is without using elementor. If you deactivate our “WCFM – WooCommerce Multivendor Marketplace – Elementor” you can find default “vendor-store page” layout without using elementor.
If you want to setup “Vendor Store ” page with elementor, then you have to do some style modification to get default layout look.Thanks.
Sarmistha Chakraborty
MemberHi,
Try this code,
add_action('woocommerce_single_product_summary','remove_enquiry_pos',10); function remove_enquiry_pos() { global $WCFM,$product; $product_id = $product->get_id(); if($product_id == 422 ) { remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 15); remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 25); remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 35); } }Thanks.
Sarmistha Chakraborty
MemberThis reply has been marked as private.Sarmistha Chakraborty
MemberHello,
Sorry, but have to write this code,
add_action('init','remove_enquiry_pos'); function remove_enquiry_pos() { global $WCFM; remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 15); remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 25); remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 35); }Please don’t replace the priority with the “product id”.
Thanks.
Sarmistha Chakraborty
MemberHello,
Override also works for WCFM U.
“wcfmu-view-wcbookings-products-manage.php” -> this file is part of Product manager so it’s override not working as all codes written using hooks.
In fact it’s more easy to edit/manipulate this file. There has filter for each field groups, just change using that.
Please know us what exactly you want to change, We will guide you accordingly.Thanks.
Sarmistha Chakraborty
MemberHello,
To show “Ask a question” button n shop page only for “wholesaler” role,
add_action('woocommerce_after_shop_loop_item','shoploop_wcfm_enquiry_button', 9 ); function shoploop_wcfm_enquiry_button(){ global $product; $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> <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 } } }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,
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_action('init','remove_enquiry_pos'); function remove_enquiry_pos() { global $WCFM; remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 15); remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 25); remove_action('woocommerce_single_product_summary', array( $WCFM->wcfm_enquiry, 'wcfm_enquiry_button' ), 35); }Thanks.
Sarmistha Chakraborty
MemberHello,
Yes you are right 🙂
We are closing this topic.Sarmistha Chakraborty
MemberHello,
Yes, the functionality is same for two different structure.
We suggest to save the translate file /languages/loco/plugins/wc-frontend-manager-en_GB.po, because it’s safe from automatic updates of WooCommerce,our WCFM plugins etc.
Please check the link for more information : https://localise.biz/wordpress/plugin/manual/msginitThanks.
Sarmistha Chakraborty
MemberHello,
To show store hours in the store list page,
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_action('wcfmmp_store_list_after_store_info','fn_wcfmmp_store_list_after_store_info',11,2); function fn_wcfmmp_store_list_after_store_info($store_id, $store_info) { global $WCFM, $WCFMmp, $wp, $WCFM_Query; $store_user = wcfmmp_get_store( $store_id ); $wcfm_vendor_store_hours = get_user_meta( $store_id, 'wcfm_vendor_store_hours', true ); if( !$wcfm_vendor_store_hours ) { return; } $wcfm_store_hours_enable = isset( $wcfm_vendor_store_hours['enable'] ) ? 'yes' : 'no'; if( $wcfm_store_hours_enable != 'yes' ) return; $wcfm_store_hours_off_days = isset( $wcfm_vendor_store_hours['off_days'] ) ? $wcfm_vendor_store_hours['off_days'] : array(); $wcfm_store_hours_day_times = isset( $wcfm_vendor_store_hours['day_times'] ) ? $wcfm_vendor_store_hours['day_times'] : array(); if( empty( $wcfm_store_hours_day_times ) ) return; $weekdays = array( 0 => __( 'Monday', 'wc-multivendor-marketplace' ), 1 => __( 'Tuesday', 'wc-multivendor-marketplace' ), 2 => __( 'Wednesday', 'wc-multivendor-marketplace' ), 3 => __( 'Thursday', 'wc-multivendor-marketplace' ), 4 => __( 'Friday', 'wc-multivendor-marketplace' ), 5 => __( 'Saturday', 'wc-multivendor-marketplace' ), 6 => __( 'Sunday', 'wc-multivendor-marketplace') ); ?> <div class="wcfmmp_store_hours"> <span class="wcfmmp-store-hours widget-title"><span class="wcfmfa fa-clock"></span>Store Hours</span><div class="wcfm_clearfix"></div> <?php foreach( $wcfm_store_hours_day_times as $wcfm_store_hours_day => $wcfm_store_hours_day_time_slots ) { if( in_array( $wcfm_store_hours_day, $wcfm_store_hours_off_days ) ) continue; if( !isset( $wcfm_store_hours_day_time_slots[0] ) || !isset( $wcfm_store_hours_day_time_slots[0]['start'] ) ) return; if( empty( $wcfm_store_hours_day_time_slots[0]['start'] ) || empty( $wcfm_store_hours_day_time_slots[0]['end'] ) ) continue; echo '<span class="wcfmmp-store-hours-day">' . $weekdays[$wcfm_store_hours_day] . ':</span>'; foreach( $wcfm_store_hours_day_time_slots as $slot => $wcfm_store_hours_day_time_slot ) { echo "<br />" . date_i18n( wc_time_format(), strtotime( $wcfm_store_hours_day_time_slot['start'] ) ) . " - " . date_i18n( wc_time_format(), strtotime( $wcfm_store_hours_day_time_slot['end'] ) ); } echo '<br /><br />'; } ?> </div> <?php }Thanks.
Sarmistha Chakraborty
MemberHello,
Here is the link :https://docs.wclovers.com/tweaks/ where you can find general code snippet.
Though you will not get every code snippet , and for this you have contact our support.Thanks.
- AuthorPosts