Forum Replies Created
- AuthorPosts
- May 22, 2020 at 12:58 pm in reply to: How do i add new custom field under vendor registration form? #134097
Sarmistha Chakraborty
MemberHi,
What is “profile URL”? Do you add “profile URL” from WCFM dashboard settings?
Unfortunately we have no feature move those fields from “Vendor Profile Manager” to “Vendor Settings” page.
You can add any custom field using code in “Vendor Settings” page.(https://wclovers.com/forums/topic/add-a-new-custom-field-to-vendor-information/#post-121044)Thanks.
May 22, 2020 at 12:53 pm in reply to: How do i add new custom field under vendor registration form? #134094Sarmistha Chakraborty
MemberHello,
Sorry, but which code is not working for you?
We haven’t share any code in this thread to add any custom field in the vendor settings page(as per your screenshot). This topic is related to the vendor registration form. Please create a different thread or relative thread for different issue.
Regarding your requirement check here – https://wclovers.com/forums/topic/add-a-new-custom-field-to-vendor-information/#post-121044Thanks.
Sarmistha Chakraborty
MemberThis reply has been marked as private.Sarmistha Chakraborty
MemberUsing Cpanel/FTP.
Thanks.
Sarmistha Chakraborty
MemberHi,
Try this code in your theme’s functiions.php for orchid-store theme-
add_action( 'wcfmmp_after_store_article_loop_start', function() { echo '<div class="archive-page-wrap"><div class="archive-entry">'; }); add_action( 'wcfmmp_before_store_article_loop_end', function() { echo '</div></div>'; }); add_action( 'wcfmmp_store_article_template', function() { $orchid_store_show_featured_image = ''; $orchid_store_show_categories = ''; $orchid_store_show_excerpt = ''; $orchid_store_show_author = ''; $orchid_store_show_date = ''; if( is_archive() ) { $orchid_store_show_featured_image = orchid_store_get_option( 'archive_featured_image' ); $orchid_store_show_categories = orchid_store_get_option( 'archive_display_cats' ); $orchid_store_show_excerpt = orchid_store_get_option( 'archive_display_excerpt' ); $orchid_store_show_author = orchid_store_get_option( 'archive_display_author' ); $orchid_store_show_date = orchid_store_get_option( 'archive_display_date' ); } else { $orchid_store_show_featured_image = orchid_store_get_option( 'blog_featured_image' ); $orchid_store_show_categories = orchid_store_get_option( 'blog_display_cats' ); $orchid_store_show_excerpt = orchid_store_get_option( 'blog_display_excerpt' ); $orchid_store_show_author = orchid_store_get_option( 'blog_display_author' ); $orchid_store_show_date = orchid_store_get_option( 'blog_display_date' ); } ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="os-row"> <?php if( has_post_thumbnail() && $orchid_store_show_featured_image == true ) { ?> <div class="os-col thumb-col"> <div class="thumb imghover"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail( 'orchid-store-thumbnail-extra-large', array( 'alt' => the_title_attribute( array( 'echo' => false, ) ), ) ); ?> </a> </div><!-- .thumb.imghover --> </div><!-- .os-col.thumb-col --> <?php } ?> <div class="os-col content-col"> <div class="box"> <?php if( $orchid_store_show_categories == true ) { /** * Hook - orchid_store_post_categories. * * @hooked orchid_store_post_categories_action - 10 */ do_action( 'orchid_store_post_categories' ); } ?> <div class="title"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div><!-- .title --> <?php if( $orchid_store_show_excerpt == true ) { /** * Hook - orchid_store_excerpt. * * @hooked orchid_store_excerpt_action - 10 */ do_action( 'orchid_store_excerpt' ); } if( $orchid_store_show_author == true || $orchid_store_show_date == true ) { ?> <div class="entry-metas" style="clear: both;""> <ul> <?php if( $orchid_store_show_author == true ) { /** * Hook - orchid_store_post_author. * * @hooked orchid_store_post_author_action - 10 */ do_action( 'orchid_store_post_author' ); } if( $orchid_store_show_date == true ) { /** * Hook - orchid_store_post_date. * * @hooked orchid_store_post_date_action - 10 */ do_action( 'orchid_store_post_date' ); } ?> </ul> </div><!-- .entry-metas --> <?php } ?> </div><!-- .box --> </div><!-- .os-col --> </div><!-- .os-row --> </article><!-- #post-<?php the_ID(); ?> --> <?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' );and add below css in your theme’s style.css –
#wcfmmp-store .article_area ul li { padding: 0 0 6px 0px !important; }Thanks.
Sarmistha Chakraborty
MemberHello,
Try this code –
function wcfm_followings_change_text( $translated_text ) { if ( $translated_text == 'Followings' ) { $translated_text = 'Following'; } return $translated_text; } add_filter( 'gettext', 'wcfm_followings_change_text', 20 );Thanks
Sarmistha Chakraborty
MemberHi,
You can post here your request – https://wclovers.com/forums/forum/wcfm-feature-request/
I already have created a new thread but no one did respond.
Okay! We understand.
It requires serious custom development.
Due to COVID-19 we are getting 400-500 more support tickets each day. So we aren’t taking any customizations at this moment. It will be better to find someone who is accustom to WP development. Any problem if you face any difficulty at the time of development we will guide you accordingly.Thanks.
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_is_allow_restrict_vendor_own_term', '__return_true' );Thanks.
Sarmistha Chakraborty
MemberThis reply has been marked as private.May 20, 2020 at 2:48 pm in reply to: How to add custom post types to your Store Manager Dashboard #133490Sarmistha Chakraborty
MemberHi,
Then modify the functions in class-wcfmcpt-capability.php from “\wp-content\plugins\wcfm-cpt\core” –
We provide you the code for “Manage Cpt1” and “WCFM Delete Cpt1” capability, you can modify others capability following those codes// WCFM wcfmcap Manage Cpt1 function wcfmcap_is_allow_manage_cpt1( $allow ) { global $WCFM, $WCFMu, $WCFMgs, $wcfmgs_capability_manager_options; $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); } $user_id = get_current_user_id(); $custom_capablity = get_user_meta($user_id,'_wcfm_user_has_custom_capability',true); if(isset($custom_capablity) && $custom_capablity == 'yes') { $manage_cpt1 = ( isset( $this->wcfm_capability_options['submit_cpt1'] ) ) ? $this->wcfm_capability_options['submit_cpt1'] : 'no'; if( $manage_cpt1 == 'yes' ) return false; } elseif(isset($group_capability_options['submit_cpt1'])) { $submit_cpt1 = ( isset( $group_capability_options['submit_cpt1'] ) ) ? $group_capability_options['submit_cpt1'] : 'no'; if( $submit_cpt1 == 'yes' ) return false; } else { $manage_cpt1 = ( isset( $this->wcfm_capability_options['submit_cpt1'] ) ) ? $this->wcfm_capability_options['submit_cpt1'] : 'no'; if( $manage_cpt1 == 'yes' ) return false; } return $allow; } // WCFM wcfmcap Delete Cpt1 function wcfmcap_is_allow_delete_cpt1( $allow ) { global $WCFM, $WCFMu, $WCFMgs, $wcfmgs_capability_manager_options; $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); } //print_r($group_capability_options); $user_id = get_current_user_id(); $custom_capablity = get_user_meta($user_id,'_wcfm_user_has_custom_capability',true); if(isset($custom_capablity) && $custom_capablity == 'yes') { $manage_cpt1 = ( isset( $this->wcfm_capability_options['submit_cpt1'] ) ) ? $this->wcfm_capability_options['submit_cpt1'] : 'no'; if( $manage_cpt1 == 'yes' ) return false; } elseif(isset($group_capability_options['delete_cpt1'])) { $delete_cpt1 = ( isset( $group_capability_options['delete_cpt1'] ) ) ? $group_capability_options['delete_cpt1'] : 'no'; if( $delete_cpt1 == 'yes' ) return false; } else { $manage_cpt1 = ( isset( $this->wcfm_capability_options['submit_cpt1'] ) ) ? $this->wcfm_capability_options['submit_cpt1'] : 'no'; if( $manage_cpt1 == 'yes' ) return false; $delete_cpt1 = ( isset( $this->wcfm_capability_options['delete_cpt1'] ) ) ? $this->wcfm_capability_options['delete_cpt1'] : 'no'; if( $delete_cpt1 == 'yes' ) return false; } return $allow; }Thanks.
Sarmistha Chakraborty
MemberYou can also remove map using –
[wcfm_stores has_map="no"]
Please check here – https://docs.wclovers.com/store-list/Thanks.
Sarmistha Chakraborty
MemberHello,
Map is still displayed in your store list page? Or sidebar still not working? Let us know the previous code was working or not?
Thanks!
Sarmistha Chakraborty
MemberOkay!
For “Store Categories” addon, Kindly contact us here – https://wclovers.com/setup-guidance/ with your topic link. We will send you the addon plugin.Thanks.
May 20, 2020 at 1:57 pm in reply to: Prevent products in a specific category from being shown in vendor\'s dashboard #133467Sarmistha Chakraborty
MemberHello,
You can set product capability for vendor, only turn on “manage products” from capability, then the vendor can not modify the products.(PFA)
Is there a way to prevent products from a specific category from being show in the vendor’s product list?
>>What we understand that you want some products(with specific category) will not display in vendor’s dashboard product manager but will display in vendor’s store page.
For this, It’s not feasible to hide those products, but it’s possible to prevent edit/modify those products.
Try the below code in your theme’s functions.phpadd_filter( 'wcfm_is_allow_edit_specific_products', 'wcfm_is_allow_edit_specific_products_2005', 10,2 ); function wcfm_is_allow_edit_specific_products_2005( $bool, $product_id ) { $term_list = wp_get_post_terms($product_id, 'product_cat', array('fields' => 'ids')); if (in_array(15, $term_list)){ //replace 15 with your specific product category id $bool = false; } return $bool; }Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
For “addon products” do you mean Product Add-Ons plugin?https://woocommerce.com/products/product-add-ons/
For “Product addon” support in vendor will require our WCFM-Ultimate plugin https://wclovers.com/product/woocommerce-frontend-manager-ultimate/Thanks.
Sarmistha Chakraborty
MemberHello,
I want to change it to show the news in the template’s grid format, how do I do it?
>> For this “wcfmmp_store_article_template” function body which we have mentioned previously. This is theme customizations. You will find the “theme blog template here -“\wp-content\themes\north-wp\inc\templates\blogbit”how could I use this code to have another tab showing a custom custom post type?
>> Please check here – https://wordpress.org/support/topic/custom-tab-in-vendor-store-page/I forgot to take one more question, how do I display it only on the store page, and not on the home and other parts of the site?
>>Sorry this point is not clear, the above code we have mentioned you previous reply is for add “article” tab for vendor store page.Thanks.
Sarmistha Chakraborty
MemberHello,
We assume the section you have marked in your shop page side bar, it was coming from WooCommerce “Product categories” widget. Please try this code in your theme’s functions.php –
add_filter( 'woocommerce_product_categories_widget_args', 'woo_product_cat_widget_args' ); function woo_product_cat_widget_args( $cat_args ) { $cat_args['exclude'] = array('15'); //replace 15 with your membership category id return $cat_args; }Ref: https://www.themelocation.com/how-to-remove-a-certain-category-from-woocommerce-category-widget/
https://docs.woocommerce.com/document/exclude-a-category-from-the-shop-page/Thanks.
May 20, 2020 at 12:28 pm in reply to: How to move the Sidebar to the Top of the Store List page, when in Mobile View. #133430Sarmistha Chakraborty
MemberHello,
Try this code in your theme’s functions.php
add_filter('wcfmmp_is_allow_mobile_sidebar_at_bottom', '__return_false');Thanks.
Sarmistha Chakraborty
MemberHello,
Sorry, .Unfortunately correctly there is no such filter available.
But yes you can achieve this using Product category(for each vendor assign all his products with specific product category).
Then you can filter using https://docs.woocommerce.com/document/woocommerce-product-search/widgets/product-filter-categories/.We are working on this feature, when we will implement this in near future we will let you know.
Thanks.
May 19, 2020 at 7:21 pm in reply to: Mobile view on Vendor store page: change number of products per column #133148Sarmistha Chakraborty
MemberHello,
For ‘Vendor Store’ page
Try this code in your theme’s functions.php,
add_filter('wcfm_store_wrapper_class',function($custom_cls){ $custom_cls = 'woocommerce tablet-columns-2 mobile-columns-2'; return $custom_cls; });Let me know how it goes.
Thanks!Sarmistha Chakraborty
MemberHello,
The custom addon plugin working flow –
Create your categories from WCFM Admin Setting -> Store Categories.
You will have this new filter under Store List page.
Vendors allowed to choose “Store Categories” during registration and also may change later from WCFM Dashboard -> Profile -> Store CategoriesIf that meet your requirement let us know, we will send the addon plugin. Any other customization is paid one.
Thanks.
Sarmistha Chakraborty
MemberHello,
Have to install and activate “WCFM-Delivery”(https://wclovers.com/product/woocommerce-frontend-manager-delivery/) plugin? ” Delivery Times” tab coming from this plugin.
You can add custom field from vendor registration form. (admin WCFM dashboard -> Settings -> Vendor registration) Or using code.
Ref: https://wclovers.com/forums/topic/adding-new-fields-on/Regarding custom tab for product page, we have already provided you the code #132989 –
Ref: https://wisdmlabs.com/blog/add-custom-tab-woocommerce-product-page/Thanks.
Sarmistha Chakraborty
MemberHello,
Add css for –
.wcfmmp-product-geolocate-search-form button {}Text change Filter to search –
function wpfi_change_text( $translated_text ) { if ( $translated_text == 'Filter' ) { $translated_text = 'Search'; } return $translated_text; } add_filter( 'gettext', 'wpfi_change_text', 20 );Try this code in your theme’s functions.php
Thanks.
May 19, 2020 at 3:32 pm in reply to: how to put wholesale pricing in vendor ( add to product page ) #133044Sarmistha Chakraborty
MemberHello,
You will find here – https://wclovers.com/wcfm-compatible-plugins/
Which plugins support we have.
All premium plugin support requires our WCFM-Ultimate plugin.Thanks.
Sarmistha Chakraborty
MemberHello,
It’s user register time. Recent registered vendor wise sorting.
Thanks.
- AuthorPosts