Forum Replies Created
- AuthorPosts
Sarmistha Chakraborty
MemberHello,
We have already replied you https://wclovers.com/forums/topic/request-custom-tabs-manager-in-vendor-store-page/in this thread. Please do not create multiple threads for same issue.Sarmistha Chakraborty
MemberHello,
No, as of now we don’t have this feature. But if you have added custom field from Admin WCFM dashboard -> settings -> vendor registration, then you will find “store list meta filter” widget filter for store list page.
Please for different issues create a different thread or related thread.
Thanks.
Sarmistha Chakraborty
MemberHello,
Point 1.
Try this code in your functions.phpadd_filter( 'wcfm_max_radius_to_search_options', function( $distance ) { $distance['25'] = '25'; return $distance; }); add_filter( 'wcfmmp_radius_filter_max_distance', function( $distance ) { return 25; }); add_filter('wcfmmp_radius_filter_start_distance',function($start_distance){ return 1; });point 2.
What we understand that you want the radius search functionality, without show the “radius” slider
Then add below css in your theme’s style.css.wcfmmp-store-search-form div.wcfm_radius_slidecontainer { display: none; }Thanks.
Sarmistha Chakraborty
MemberYou will find the “Enable Delivery Time” vendor’s dashboard settings (PFA)
Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
Try this code for North (https://themeforest.net/item/north-responsive-woocommerce-theme/9117256)
add_action( 'wcfmmp_store_article_template', function() { ?> <article itemscope itemtype="http://schema.org/BlogPosting" <?php post_class('post style1'); ?> id="post-<?php the_ID(); ?>" role="article"> <?php if ( has_post_thumbnail() ) { ?> <figure class="post-gallery"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"> <?php the_post_thumbnail('north-blog-masonry-2x'); ?> </a> </figure> <?php } ?> <aside class="post-meta"> <time class="time" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a></time> - <?php the_category(', '); ?> </aside> <header class="post-title entry-header"> <?php the_title('<h3 class="entry-title" itemprop="name headline"><a href="'.get_permalink().'" title="'.the_title_attribute("echo=0").'">', '</a></h3>'); ?> </header> <div class="post-content"> <?php the_excerpt(); ?> </div> <?php do_action( 'thb_PostMeta' ); ?> </article> <?php }); add_action( 'wcfmmp_store_article_template_none', function() { ?> <p><?php _e( 'No posts found.', 'north' ); ?></p> <?php }); add_filter( 'wcfm_is_allow_store_articles', '__return_true' );Thanks.
May 19, 2020 at 2:42 pm in reply to: How to add custom post types to your Store Manager Dashboard #133005Sarmistha Chakraborty
MemberHello,
Regarding duplicate capability title – Modify the functions.php code
add_action( 'wcfm_capability_manager_left_panel', 'wcfm_cpt1_capability_settings_for_group', 50 ); function wcfm_cpt1_capability_settings_for_group($wcfm_capability_options){ global $WCFM, $WCFMgum,$wcfm_screen_type; //print_r($wcfm_screen_type);die; // CPT1 Capabilities $submit_cpt1 = ( isset( $wcfm_capability_options['submit_cpt1'] ) ) ? $wcfm_capability_options['submit_cpt1'] : 'no'; $add_cpt1 = ( isset( $wcfm_capability_options['add_cpt1'] ) ) ? $wcfm_capability_options['add_cpt1'] : 'no'; $publish_cpt1 = ( isset( $wcfm_capability_options['publish_cpt1'] ) ) ? $wcfm_capability_options['publish_cpt1'] : 'no'; $edit_live_cpt1 = ( isset( $wcfm_capability_options['edit_live_cpt1'] ) ) ? $wcfm_capability_options['edit_live_cpt1'] : 'no'; $publish_live_cpt1 = ( isset( $wcfm_capability_options['publish_live_cpt1'] ) ) ? $wcfm_capability_options['publish_live_cpt1'] : 'no'; $delete_cpt1 = ( isset( $wcfm_capability_options['delete_cpt1'] ) ) ? $wcfm_capability_options['delete_cpt1'] : 'no'; if( in_array( $wcfm_screen_type, array( 'group','staff' ) ) ) { ?> <div class="vendor_capability_sub_heading"><h3><?php _e( WCFM_CPT_1_LABEL, 'wc-frontend-manager' ); ?></h3></div> <?php $WCFM->wcfm_fields->wcfm_generate_form_field( apply_filters( 'wcfm_capability_settings_fields_vendor_cpt1', array("submit_cpt1" => array('label' => __('Manage', 'wc-frontend-manager') , 'name' => 'wcfmgs_capability_manager_options[submit_cpt1]','type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $submit_cpt1), "add_cpt1" => array('label' => __('Add', 'wc-frontend-manager') , 'name' => 'wcfmgs_capability_manager_options[add_cpt1]','type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $add_cpt1), "publish_cpt1" => array('label' => __('Publish', 'wc-frontend-manager') , 'name' => 'wcfmgs_capability_manager_options[publish_cpt1]','type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $publish_cpt1), "edit_live_cpt1" => array('label' => __('Edit Live', 'wc-frontend-manager') , 'name' => 'wcfmgs_capability_manager_options[edit_live_cpt1]','type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $edit_live_cpt1), "publish_live_cpt1" => array('label' => __('Auto Publish Live', 'wc-frontend-manager') , 'name' => 'wcfmgs_capability_manager_options[publish_live_cpt1]','type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $publish_live_cpt1), "delete_cpt1" => array('label' => __('Delete', 'wc-frontend-manager') , 'name' => 'wcfmgs_capability_manager_options[delete_cpt1]','type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $delete_cpt1) ) ) ); } }Regarding Menu hide depending on group capability, add this code in your theme’s functions.php
add_filter('wcfm_formeted_menus',function($menus){ $current_plan = wcfm_get_membership(); if(isset($current_plan)) { $current_group = get_post_meta($current_plan,'associated_group',true); $group_capability_options = get_post_meta($current_group,'_group_capability_options',true); } if(isset($group_capability_options['submit_cpt1'])) { $submit_cpt1 = ( isset( $group_capability_options['submit_cpt1'] ) ) ? $group_capability_options['submit_cpt1'] : 'no'; if( $submit_cpt1 == 'yes' ) { unset($menus['wcfm-cpt1']); } } return $menus; });Thanks.
Sarmistha Chakraborty
MemberSorry, unfortunately as of now we do not have any filter/hook to modify this feature.
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_filter( 'woocommerce_product_tabs', 'wcfm_product_delivert_tabs', 100, 1 ); function wcfm_product_delivert_tabs( $tabs ) { $tabs['wcfm_product_delivert_tab'] = apply_filters( 'wcfm_product_delivert_tab_element',array( 'title' => __( 'Delivery', 'woocommerce' ), 'priority' => 55, 'callback' => 'wcfm_delivery_product_tab_content' ) ); $prod_id = get_the_ID(); $vendor_id = wcfm_get_vendor_id_by_post( $prod_id ); $vendor_delvery_schedules = get_user_meta($vendor_id,'wcfm_vendor_delivery_time',true); if(!isset($vendor_delvery_schedules['enable'])) { unset($tabs['wcfm_product_delivert_tab']); } return $tabs; } function wcfm_delivery_product_tab_content() { global $WCFM, $product; $product_id = get_the_ID(); $vendor_id = wcfm_get_vendor_id_by_post( $product_id ); $vendor_delvery_schedules = get_user_meta($vendor_id,'wcfm_vendor_delivery_time',true); //you can find all delivery sceduled data in this variable $days_map = array('Monday' => 0,'Tuesday' => 1, 'Wednesday' => 2, 'Thursday' => 3,'Friday' => 4,'Saturday' => 5,'Sunday' => 6); if(isset($vendor_delvery_schedules['enable'])) { if(!empty($vendor_delvery_schedules['off_days'])) { $off_days_arr = []; foreach ($vendor_delvery_schedules['off_days'] as $off_days) { $off_days_arr[] = array_search($off_days,$days_map); } echo 'Week Day OFF :'.implode($off_days_arr, ','); } } }regarding above code, if vendor will enable the “Enable Delivery Time”, then “Delivery” tab will display in his product’s page.
Display all delivery schedule information is not possible with a small code snippet, we have provided you an example of code(display weekday off data) to how you display all data.Thanks.
Sarmistha Chakraborty
MemberHello,
We have already replied you in this thread – https://wclovers.com/forums/topic/stores-per-row-on-mobile/
By-default we don’t have any option for mobile version “store per row”.
You can customize this style using css –
Example try this css in your theme’s style.css –@media screen and (max-width: 560px) { #wcfmmp-stores-wrap ul.wcfmmp-store-wrap li { width: 50%!important; float: left; } }Thanks.
May 19, 2020 at 12:48 pm in reply to: Vendor Store Header disturbed on screen width 800px and less #132961Sarmistha Chakraborty
MemberHello,
Try this css in your theme’s style.css –
@media screen and (max-width: 768px) { #wcfmmp-store .logo_area { width: 90px !important; height: 90px !important; top: -70px !important; position: relative !important; } } @media screen and (max-width: 480px) { #wcfmmp-store .logo_area { float: none !important; display: inline-block !important; margin-bottom: 5px !important; } }Thanks.
May 19, 2020 at 12:30 pm in reply to: Mobile view on Vendor store page: change number of products per column #132945Sarmistha Chakraborty
MemberHello,
By-default Vendor store page layout and shop page layout both these are part of theme configuration!
Ref: https://wclovers.com/forums/topic/edit-the-layout-of-vendor-store/
There are no different settings in our WCFM plugin for vendor store page mobile version.
You can provide us the two page URLs. Then we can check the issue.Thanks.
Sarmistha Chakraborty
MemberHello,
From Capability you/admin can choose product categories which are only accessible for vendor. WCFM dashboard -> Capability -> Product Categories(PFA)
Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
By default in Single Product page will display “Vendor vacation message”. Using this “woocommerce_single_product_summary” hook.
You can hide full message from shop page, and add small text/any vacation badge in shop page(each product )
Try this code in your 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',function(){ global $WCFM, $WCFMmp, $WCFMu; remove_action('woocommerce_after_shop_loop_item', array( $WCFMu->wcfmu_vendor_vacation, 'wcfm_vacation_mode' ), 9 ); }); 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; $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' ) || ( function_exists( 'wcfm_is_store_page' ) && !wcfm_is_store_page() ) ) && ( is_product() || is_shop() || is_product_category() ) ) { global $product, $post; if ( is_object( $product ) ) { $vendor_id = wcfm_get_vendor_id_by_post( $product->get_id() ); } else if ( is_product() ) { $vendor_id = wcfm_get_vendor_id_by_post( $post->ID ); } 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 } } }Thanks.
May 18, 2020 at 6:58 pm in reply to: How to change the text and remove/hide order field on booking section? #132651Sarmistha Chakraborty
MemberHello,
To hide “order field ” from booking list add below css in your theme’s style.css –
.wcfm-dashboard-page table#wcfm-bookings th:nth-child(4), table#wcfm-bookings tbody tr td:nth-child(4) { display: none; }Make unable to access vendor’s shop –
>>Add this code n your theme’s functions.php –add_filter('wcfm_store_name', function($store_name){ return __( 'My Store h', 'wc-frontend-manager' ); });To change Product text to “Teacher”-
You can use Loco Translate plugin – https://docs.wclovers.com/locotranslate-translation-using-loco-translate-plugin/
Select Loco translate -> Plugins -> WCFM – WooCommerce Frontend Manager -> Select Site language -> Search string (like Product) and change -> SaveThanks.
Sarmistha Chakraborty
MemberThis reply has been marked as private.Sarmistha Chakraborty
MemberHi,
It seems like you are using openstreet map, for this to hide map you need to add this css in your theme’s style.css –
div.wcfmmp-store-list-map { display: none !important; }and Remove the code
add_filter('wcfmmp_is_allow_store_list_map', '__return_false');Thanks.
Sarmistha Chakraborty
MemberSorry we didn’t get you. Your issue has marked solved #127364. Again you can’t access WCFM dashboard?
Sarmistha Chakraborty
MemberHello,
We have solved the PHP error, Your code was not paste the properly. Please check now the “Article tab”, we do not have site password, so we cannot check the store page.
Thanks.
Sarmistha Chakraborty
MemberHello,
You/admin can manage this feature from Capability sections. WCFM dashboard -> Capability, Turn off the category capability. (PFA)
Thanks.
Attachments:
You must be logged in to view attached files.May 18, 2020 at 3:06 pm in reply to: How do i add new custom field under vendor registration form? #132540Sarmistha Chakraborty
MemberDo you replace “website” with your label field value? Please share us the screenshot your code.
Thanks.
May 18, 2020 at 3:05 pm in reply to: How to add wcfm available groups to the vendor registration form? #132539Sarmistha Chakraborty
MemberHi,
Yes, sure. Have you contact here – https://wclovers.com/setup-guidance/ regarding this ?
Sarmistha Chakraborty
MemberHello,
“martfury” theme(latest version) add support for WCFM vendors. Please contact with theme support for the style break issues.
Regarding On hover account icon Vendor cant see other option rather then welcome, Please check here – https://wclovers.com/forums/topic/my-account-menu-missing-from-vendors-profile/#post-126615Thanks.
Sarmistha Chakraborty
MemberHello,
To change the site language to one of the pre-installed languages, log in to your WordPress dashboard and go to Settings > General. (https://www.hostpapa.in/knowledgebase/wp-content/uploads/2017/12/wp-settings-general-1.png)
And translate Our WCFM-plugins can use “Loco translate plugin. Here the documentation – https://docs.wclovers.com/locotranslate-translation-using-loco-translate-plugin/
Thanks.
Sarmistha Chakraborty
MemberHello,
I would like to add an article tab to the store profile and i am using to the Townhub theme. Can you help me?
>>Add this code to your child theme’s functions.phpadd_action( 'wcfmmp_store_article_template', function() { ?> <article id="post-<?php the_ID(); ?>" <?php post_class('post-article ptype-content'); ?>> <?php // Get the list of files $slider_images = get_post_meta( get_the_ID(), '_cth_post_slider_images', true); if( !empty($slider_images)&& townhub_get_option('blog_show_format', true ) && get_post_format( ) !== 'gallery' ){ ?> <div class="list-single-main-media fl-wrap"> <div class="single-slider-wrap"> <div class="single-slider fl-wrap"> <div class="swiper-container"> <div class="swiper-wrapper lightgallery"> <?php foreach ( (array) $slider_images as $img_id => $img_url ) { echo '<div class="swiper-slide hov_zoom">'; echo wp_get_attachment_image($img_id, 'townhub-featured-image','',array('class'=>'respimg no-lazy') ); echo '<a href="' . esc_url( wp_get_attachment_url( $img_id ) ) . '" class="box-media-zoom popup-image"><i class="fal fa-search"></i></a>'; echo '</div>'; } ?> </div> </div> </div> </div> </div> <?php }elseif(has_post_thumbnail( )){ ?> <div class="list-single-main-media fl-wrap"> <?php the_post_thumbnail('townhub-featured-image',array('class'=>'respimg') ); ?> </div> <?php } ?> </article> <?php }); add_action( 'wcfmmp_store_article_template_none', function() { ?> <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'townhub' ); ?></p> <?php get_search_form(); }); add_filter( 'wcfm_is_allow_store_articles', '__return_true' );How can I make the information from the added vendor fields display on the vendor store?
>>Use this shortcode –[store_info data=""]
Ref:https://wclovers.com/forums/topic/display-the-store-logo-and-the-avatar-of-the-vendor/Is it possible to embed a video from the vendor on the vendor store with custom fields?
>>Unfortunetly as of now we don’t have option for this, you can add embed video in “store/shop description” field in vendor’s settings.is there a way I can add the store short description to the displays on the store list?
>>To display in custom data you can use below actions as per your requirement-do_action( 'wcfmmp_store_list_after_store_info', $store_id, $store_info ); do_action( 'wcfmmp_store_list_footer', $store_id, $store_info );I also want to add the categories that the stores product has onto the cards displayed on the store list.
>>Can you explain little more your requirement. It’s not so clear to us.Thanks.
Sarmistha Chakraborty
MemberHello,
You can change the text using “Loco Translate” plugin – https://docs.wclovers.com/locotranslate-translation-using-loco-translate-plugin/
Select Loco translate -> plugins -> select “WCFM – WooCommerce Multivendor Marketplace” -> select site language -> search string(like “followings”) and change-> save
Thanks.
- AuthorPosts