WC Lovers

WooCommerce Frontend Manager - Multivendor marketplace vendor dashboard

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Forum Replies Created

Viewing 25 posts - 251 through 275 (of 1,174 total)
  • Author
    Posts
  • in reply to: Add "article tab" to Townhub theme #133042

    Hello,
    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.

    in reply to: Store Gallery #133039

    Hello,

    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.

    in reply to: How to change 'Radius Slider' default value. #133038

    Hello,

    Point 1.
    Try this code in your functions.php

    add_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.

    in reply to: How can Vendors add a Custom Tab in Product page #133029

    You will find the “Enable Delivery Time” vendor’s dashboard settings (PFA)

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Request Custom Tabs Manager in Vendor Store Page ? #133024

    Hello,

    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.

    Hello,

    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.

    in reply to: Allow vendor reviews without login #132992

    Sorry, unfortunately as of now we do not have any filter/hook to modify this feature.

    Thanks.

    in reply to: How can Vendors add a Custom Tab in Product page #132989

    Hello,

    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.

    in reply to: WCFM_Stores shortcodes for mobile #132966

    Hello,

    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.

    Hello,

    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.

    Hello,

    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.

    in reply to: HIde WooCommerce Product Categories #132940

    Hello,

    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.
    in reply to: Displaying of Vacation Mode Message #132660

    Hello,

    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.

    Hello,

    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 -> Save

    Thanks.

    in reply to: I can't access to the page store-manager/settings #132623
    This reply has been marked as private.
    in reply to: Stores list map cannot be hidden in shortcode #132620

    Hi,

    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.

    in reply to: I can't access to the page store-manager/settings #132617

    Sorry we didn’t get you. Your issue has marked solved #127364. Again you can’t access WCFM dashboard?

    in reply to: Request Custom Tabs Manager in Vendor Store Page ? #132549

    Hello,

    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.

    in reply to: Deactivate category selection for vendors #132545

    Hello,

    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.

    Do you replace “website” with your label field value? Please share us the screenshot your code.

    Thanks.

    Hi,

    Yes, sure. Have you contact here – https://wclovers.com/setup-guidance/ regarding this ?

    in reply to: Martfury Layout Issue with WCFM Marketplace #132538

    Hello,

    “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-126615

    Thanks.

    in reply to: How to put it entirely in French please? #132535

    Hello,

    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.

    in reply to: Add "article tab" to Townhub theme #132529

    Hello,

    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.php

    add_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&rsquo;t find what you&rsquo;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.

    in reply to: Change the word "Followings" to "Following" #132490

    Hello,

    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.

Viewing 25 posts - 251 through 275 (of 1,174 total)