Forum Replies Created
- AuthorPosts
Sarmistha Chakraborty
MemberHello,
Add below script in your theme’s js file (https://developer.wordpress.org/reference/functions/wp_enqueue_script/)
jQuery(document).ready(function ($) { if( $('textarea#wcfm_vacation_mode_msg').length > 0 ) { $('textarea#wcfm_vacation_mode_msg').attr('maxlength', '50'); } /*change date format as per your requirement*/ $( "#wcfm_vacation_start_date" ).datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy', onClose: function( selectedDate ) { $( "#wcfm_vacation_end_date" ).datepicker( "option", "minDate", selectedDate ); } }); $( "#wcfm_vacation_end_date" ).datepicker({ changeMonth: true, changeYear: true, dateFormat: 'dd-mm-yy', onClose: function( selectedDate ) { $( "#wcfm_vacation_start_date" ).datepicker( "option", "maxDate", selectedDate ); } }); });To change date placeholder, add this code in your theme’s functions.php
add_filter( 'wcfm_vendors_settings_fields_vacation', function( $fields,$vendor_id ) { if( isset( $fields['wcfm_vacation_start_date'] ) ) { $fields['wcfm_vacation_start_date']['placeholder'] = __( 'From', 'wc-frontend-manager' ) . ' ... dd-mm-yy'; } if( isset( $fields['wcfm_vacation_end_date'] ) ) { $fields['wcfm_vacation_end_date']['placeholder'] = __( 'To', 'wc-frontend-manager' ) . ' ... dd-mm-yy'; } return $fields; }, 50,2 );Thanks.
Sarmistha Chakraborty
MemberHi,
Yes you/admin (for each vendor)and vendor have to add “Shop Product Description”.
I tried setting the “Shop Product Description” then I tried adding a product using my dummy seller account but It doesn’t show it while adding
>>Do you override description.php from “\wp-content\plugins\woocommerce\templates\single-product\tabs” to “yourtheme/woocommerce/single-product/tabs/description.php” ? You have to add text “Shop Product Description” for your dummy seller account.Thanks.
Sarmistha Chakraborty
MemberHello,
add_filter('wcfm_vacation_message_text',function($text){ if( did_action( 'woocommerce_after_shop_loop_item' ) || did_action( 'yith_wcqv_product_summary' ) || did_action( 'woocommerce_single_product_lightbox_summary' ) || did_action( 'wc_quick_view_pro_quick_view_product_details' ) ) { $text = wp_trim_words( $text, 10, ' […]' ); } return $text; },20); add_action('woocommerce_after_shop_loop_item','add_msg_to_store_loop_vacation_mode',45); function add_msg_to_store_loop_vacation_mode(){ global $WCFM,$product; if ( is_object( $product ) ) { $vendor_id = wcfm_get_vendor_id_by_post( $product->get_id() ); } $is_marketplace = wcfm_is_marketplace(); $vacation_mode = ''; $vendor_has_vacation = $WCFM->wcfm_vendor_support->wcfm_vendor_has_capability( $vendor_id, 'vacation' ); if ( function_exists( 'wcfm_is_store_page' ) && wcfm_is_store_page() && did_action( 'woocommerce_after_shop_loop_item' ) ) { if( $vendor_has_vacation ) { if( $is_marketplace == 'wcfmmarketplace' ) { $vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true ); $vacation_mode = isset( $vendor_data['wcfm_vacation_mode'] ) ? $vendor_data['wcfm_vacation_mode'] : 'no'; } else { $vacation_mode = ( get_user_meta( $vendor_id, 'wcfm_vacation_mode', true ) ) ? get_user_meta( $vendor_id, 'wcfm_vacation_mode', true ) : 'no'; } } if ( $vacation_mode == 'yes' ) { ?> <div class="wcfm_vacation_msg">On Vacation</div> <?php } } }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/
Thanks.
Sarmistha Chakraborty
MemberHello,
You will find the “Shop Product Description” in WCFM store dashboard -> Store vendors -> Select vendor and go to store settings.
If you still don’t find the field,then
Can you please share me the screenshot where you have added the code?
Or share us site details where we can check the code which you have added and the WCFM store dashboard.
(Set as private reply)Thanks.
Sarmistha Chakraborty
MemberHello,
Please confirm your requrement-
point 4 https://docs.wclovers.com/attributes/#category-attributes-mappingThanks.
Sarmistha Chakraborty
MemberHi,
Please check once the “Membership” module is turn-on or not (PFA)
If it’s turn on click the “Settings” from plugins->WCFM – WooCommerce Multivendor Membership” plugin->Settings (PFA)
Check it’s work or not.Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHi,
Ok.
This is not possible using code snippet.
It requires serious custom development.
Please contact us here –https://wclovers.com/setup-guidance/ with topic link.Thank You
Sarmistha Chakraborty
MemberHello,
We just checked your site from front-end(We do not have any access details), our “WCFM – WooCommerce Multivendor Membership” plugin was not activated.
Please follow the documentation : https://wclovers.com/knowledgebase/wcfm-membership/Regarding Multi step registration,
By default there is no possible setting option to achieve this.But this can be achievable by overriding registration template.Or if do you mean,”SUBSCRIBE TO MEMBERSHIP” section in this https://wclovers.com/knowledgebase/wcfm-membership/, then after activate “WCFM – WooCommerce Multivendor Membership” plugin use the Vendor membership page(which contain “[wcfm_vendor_membership]” shortcode) for vendor registration.
Regarding the payment issue, please create different thread for different issue.
Thanks.
Sarmistha Chakraborty
MemberHi,
We have replied you https://wclovers.com/forums/topic/how-to-set-a-default-product-description/in this thread. We are closing this thread.
Thanks.
Sarmistha Chakraborty
MemberHello,
I want to set default product description for vendor product entering page – description (not short description), How should I do it?
>>Add this code in your theme’s functions.phpadd_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_general_custom2704', 50, 2 ); function wcfm_marketplace_settings_fields_general_custom2704($general_fields,$vendor_id) { $store_product_description = wcfm_get_user_meta( $vendor_id, '_store_product_description', true ); if(isset($general_fields['gravatar']) ) { $general_fields['store_product_description']= array('label' => __('Shop Product Description', 'wc-frontend-manager') , 'type' => 'wpeditor', 'class' => 'wcfm-textarea wcfm_custom_field_editor wcfm_ele wcfm_wpeditor', 'label_class' => 'wcfm_title', 'value' => $store_product_description ); } return $general_fields; } add_action( 'wcfm_wcfmmp_settings_update','fn_wcfm_vendor_settings_storetype_update2704', 50, 2); add_action( 'wcfm_vendor_settings_update','fn_wcfm_vendor_settings_storetype_update2704', 50, 2); function fn_wcfm_vendor_settings_storetype_update2704($user_id, $wcfm_settings_form ){ wcfm_update_user_meta( $user_id, '_store_product_description', $wcfm_settings_form['store_product_description'] ); }Add the below script in your theme’s js file (https://developer.wordpress.org/reference/functions/wp_enqueue_script/)
jQuery(document).ready(function ($) { $('#wcfm_store_setting_save_button, #wcfm_store_general_setting_save_button, #wcfm_store_address_setting_save_button').click(function(event) { event.preventDefault(); var profile = getWCFMEditorContent( 'shop_description' ); // WCFM Custom field Editor support if( $('.wcfm_custom_field_editor').length > 0 ) { $('.wcfm_custom_field_editor').each(function() { $wcfm_custom_field_editor = $(this); if( $wcfm_custom_field_editor.hasClass('rich_editor') || $wcfm_custom_field_editor.hasClass('wcfm_wpeditor') ) { $('#'+$wcfm_custom_field_editor.attr('id')).val(getWCFMEditorContent( $wcfm_custom_field_editor.attr('id') )); } }); } // Validations $('.wcfm-message').html('').removeClass('wcfm-error').removeClass('wcfm-success').slideUp(); $wcfm_is_valid_form = true; $( document.body ).trigger( 'wcfm_form_validate', $('#wcfm_vendor_manage_store_setting_form') ); $is_valid = $wcfm_is_valid_form; if($is_valid) { $('#wcfm_vendor_manage_store_setting_form').block({ message: null, overlayCSS: { background: '#fff', opacity: 0.6 } }); var data = { action : 'wcfm_ajax_controller', controller : 'wcfm-vendors-manage-marketplace-settings', wcfm_settings_form : $('#wcfm_vendor_manage_store_setting_form').serialize(), profile : profile, } $.post(wcfm_params.ajax_url, data, function(response) { if(response) { $response_json = $.parseJSON(response); $('.wcfm-message').html('').removeClass('wcfm-error').removeClass('wcfm-success').slideUp(); if($response_json.status) { wcfm_notification_sound.play(); $('#wcfm_vendor_manage_form_store_setting_expander .wcfm-message').html('<span class="wcicon-status-completed"></span>' + $response_json.message).addClass('wcfm-success').slideDown(); } else { wcfm_notification_sound.play(); $('#wcfm_vendor_manage_form_store_setting_expander .wcfm-message').html('<span class="wcicon-status-cancelled"></span>' + $response_json.message).addClass('wcfm-error').slideDown(); } $('#wcfm_vendor_manage_store_setting_form').unblock(); } }); } }); });Then you will find a field “Shop Product Description” in vendor settings. Here admin/vendor can add default product description.
To show this field value in product page description section, you have to override description.php from “\wp-content\plugins\woocommerce\templates\single-product\tabs” to “yourtheme/woocommerce/single-product/tabs/description.php”.
And this code to fetch default product description –<?php $product_id = get_the_ID(); $vendor_id = wcfm_get_vendor_id_by_post( $product_id ); ?> <p><?php echo wcfm_get_user_meta( $vendor_id, '_store_product_description', true );?></p>How to make 2 registration forms like when u enter half of the information then in the next page the other info? can we make it?
>>By default there is no possible setting option to achieve this.But this can be achievable by overriding registration template.Or if do you mean,”SUBSCRIBE TO MEMBERSHIP” section in this https://wclovers.com/knowledgebase/wcfm-membership/, then after activate “WCFM – WooCommerce Multivendor Membership” plugin use the Vendor membership page(which contain “[wcfm_vendor_membership]” shortcode) for vendor registration.
Hope this information will help you.
Thanks.
Sarmistha Chakraborty
MemberHello,
As mentioned earlier we have provided you the code which will display the articles in a “article” tab.
But now you have to structured and design (write code in HTML and css) the each article as per your requirement to be displayed.
If you asking us to designed the template as per your requirement, then this is not possible using code snippet.
It requires serious custom development.
If you are interested then please contact us here –https://wclovers.com/setup-guidance/Thanks
Sarmistha Chakraborty
MemberHi,
Regarding Welcome text,
Did you already translate the text from WP dashboard -> Loco Translate -> Plugins -> WCFM – WooCommerce Frontend Manager ?Thanks.
Sarmistha Chakraborty
MemberHi,
The fields appears in the product page of dashboard painel
>>Sorry,We do not understand the section.
Please share us the proper screenshot from where you want to remove dimensions field.
The above code is for “Product edit section” from vendor dashboard.Thanks.
Sarmistha Chakraborty
MemberHello,
“view/reports/wcfmu-html-report-sales-by-product.php” – this file override is not possible because this file is part of wcfmu-view-reports-sales-by-product.php.
Because My vendors are still seeing products sold by other vendors.
>>Sorry, we didn’t get you, in your vendor dashboard -> report section you can see other vendor’s products order report?Please for translate use “Loco translate” plugin, https://localise.biz/wordpress/plugin/beginners
Example:
WP dashboard -> Loco Translate -> Plugins -> select WCFM – WooCommerce Frontend Manager – Ultimate -> Select your site language(or click on New language and add your site language) -> search the string “Sales by product” and translate -> save.Thanks.
Sarmistha Chakraborty
MemberHello,
You have write own HTML structure as per your requirement how to display the articles. To show images modify this code
add_action('wcfmmp_store_article_template','store_article_html'); function store_article_html() { $article_id = get_the_ID(); $src = wp_get_attachment_image_src( get_post_thumbnail_id($article_id), 'thumbnail' ); $url = $src[0]; ?> <!-- Add your own HTML--> <div style="display: inline-block;"> <img src="<?php echo $url;?>" alt="<?php echo esc_attr(get_the_title()); ?>" /> <p><a href="<?php echo esc_url(get_permalink($article_id)); ?>"><?php echo esc_attr(get_the_title()); ?></a></p> </div> <?php }Thanks.
Sarmistha Chakraborty
MemberHello,
It can be possible if vendor store is off-line mode(not disabled),but this is not possible using code snippet.
It requires some custom development.
If you are interested then please contact us here –https://wclovers.com/setup-guidance/ (with topic link)
Thank YouSarmistha Chakraborty
MemberHello,
We suggest that add Rich editor type field(to add more information) instead of text type fields, So you/vendor can formatting the text in product manage section how he wants to display n front-end.
Thanks.
Sarmistha Chakraborty
MemberHello,
To display vendor articles in vendor store page,
Add this code in your theme’s functions.phpadd_filter( 'wcfmmp_store_tabs', 'new_wcfmmp_store_tabs',90,2); function new_wcfmmp_store_tabs($store_tabs, $id) { $store_tabs['articles'] = __( 'Articles', 'wc-multivendor-marketplace' ); return $store_tabs; } add_action('wcfmmp_store_article_template','store_article_html'); function store_article_html() { $article_id = get_the_ID(); ?> <a href="<?php echo esc_url(get_permalink($article_id)); ?>"><?php echo esc_attr(get_the_title()); ?></a> <?php }To modify the article view You can override the article template ,from wp-content\plugins\wc-multivendor-marketplace\views\store\wcfmmp-view-store-articles.php
Override at – child theme\wcfm\store\wcfmmp-view-store-articles.phpRegarding vendor event in vendor store page, Can you let us know which plugin/theme are you using for event in your site?
Thanks.
Sarmistha Chakraborty
MemberHello,
To show membership plan features(like post project, feature project etc) in pricing table, You need to set Features List from Membership settings, then add these feature from each membership plan – https://wclovers.com/knowledgebase/wcfm-membership/. These features will display in the pricing table front-end.
To override Membership template,
You have to override – wp-content\plugins\wc-multivendor-membership\templates\vendor_membership.php
Override at – child theme\wcfm\membership\vendor_membership.php
https://www.loom.com/share/227db87bcae747c7a31253c1e994a9d0Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha 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('wcfm_dashboard_welcometext',function($text){ $text = sprintf('Welcome to the %s Dashboard', get_bloginfo() ); //change the text as per your requirement return $text; },20); add_filter('wcfm_store_setup_complete_button',function($text){ $text = __( "Let's go to the Vendor Dashboard", 'wc-frontend-manager' ); //change the text as per your requirement return $text; },20);Thanks.
Sarmistha Chakraborty
MemberHello,
To remove “dimensions of the product”,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_product_manage_fields_shipping','remove_some_shpping_fields',15,2); function remove_some_shpping_fields($fields,$product_id){ unset($fields['length']); unset($fields['width']); unset($fields['height']); //unset($fields['shipping_class']);//remove shipping class field return $fields; }Thanks.
Sarmistha Chakraborty
MemberHello,
Well, this is possibly due to “field name” you have used for creating custom fields.Kindly be sure “field name” does not have any spaces and special characters.
Ref:https://wclovers.com/forums/topic/custom-fields-not-displaying-on-product-page/
Thanks.
Sarmistha Chakraborty
MemberHello,
1st image shows, menus under my account. But the same menus are missing from the vendors’ profile; as shown in the 2nd image.
>> When you login as a customer can you see the the menus-“account settings” and “order history” ? Is it only missing for vendors?
Possibly this is your theme issue. Can you let us know which theme are you using?while in a mobile browser, my account pulls up the sidebar(without menu), and it’s not possible to get into the dashboard; which though works on desktop.
>>Please check as a admin(login) in a mobile browser.Thanks.
Sarmistha Chakraborty
MemberHello,
Can you explain it with screenshot(mark on it), which section text you want to change?
Thanks.
Sarmistha Chakraborty
MemberThis reply has been marked as private.- AuthorPosts