Forum Replies Created
- AuthorPosts
Sarmistha Chakraborty
MemberHello,
add_filter('wcfm_store_wrapper_class',function($custom_cls){ $custom_cls = 'row row-main'; return $custom_cls; });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.
May 18, 2020 at 1:20 pm in reply to: how to put wholesale pricing in vendor ( add to product page ) #132460Sarmistha Chakraborty
MemberHello,
Yes, “woocommerce dynamic pricing” plugin and “WooCommerce Wholesale Prices” plugin support for vendor, it will require our WCFM – ULTIMATE plugin.(https://wclovers.com/product/woocommerce-frontend-manager-ultimate/)
Thanks.
Sarmistha Chakraborty
MemberHello,
Sorry, unfortunately, we don’t have this feature.
Thanks.
May 18, 2020 at 12:51 pm in reply to: Order sync – Order Status Pending not triggers woocommerce_order_status_changed #132451Sarmistha Chakraborty
MemberHello,
Thanks for getting in touch with us!
What you have set “Order Sync” setting at WCFM Admin Setting -> Marketplace Setting ? https://ibb.co/t8h94vZ
Is only “Pending” order-status will not reflected in main main order?
Please check once only activate WooCommerce and Our WCFM plugins(all updated). And remove(keep backup) custom code if you have added.
Let me know how it goes.Thanks!
May 16, 2020 at 11:43 pm in reply to: How do i add new custom field under vendor registration form? #131976Sarmistha Chakraborty
MemberSorry, we did not get you. What is not working?
May 16, 2020 at 11:42 pm in reply to: How do i add new custom field under vendor registration form? #131975Sarmistha Chakraborty
Member🙂 when we are reply to your post, we want you can see that post. It’s happened accidentally.
May 16, 2020 at 10:51 pm in reply to: How do i add new custom field under vendor registration form? #131944Sarmistha Chakraborty
MemberHello,
By-default Our plugin does not have any filter/hook to customize this feature.
You can achieve this using some js code, and with the help of inspecting HTML elements (https://www.geeksforgeeks.org/chrome-inspect-element-tool-shortcut/
) PFA
Replace input[name=”wcfmvm_custom_infos[contact-information-incl-pickup-from-store] with your field attribute name (as per screenshot)-add_action('wp_footer',function(){ ?> <script type="text/javascript"> jQuery('.hide_vendor_custom_regfield input[name="wcfmvm_custom_infos[contact-information-incl-pickup-from-store]"]').prevAll().eq(1).css({"display": "none"}); </script> <?php });Add the above code in your functions.php
And modify the css which we have provide you earlier –
.hide_vendor_custom_regfield input[name="wcfmvm_custom_infos[contact-information-incl-pickup-from-store]"]{ display: none !important; }Thanks.
Attachments:
You must be logged in to view attached files.May 16, 2020 at 10:39 pm in reply to: How do i add new custom field under vendor registration form? #131942Sarmistha Chakraborty
MemberHello @jorsenmejia,
Regarding this – how can I add custom fields in-store information?
add_action('wcfmmp_store_after_sidebar_info','fn_wcfmmp_store_after_sidebar_info_1505'); function fn_wcfmmp_store_after_sidebar_info_1505($store_id) { $custom_fields = get_user_meta( $store_id, 'website',true); //replace "website" with your label field value (all in small letters) $field_name = 'Website'; //replace "website" with your label field value echo $field_name.': '.$custom_fields; }Or
check here – https://wclovers.com/forums/topic/store-display-custom-fields/How can I combine the store and profile page?
I want to use the image on the registration page (Personal/Profile) for gravatar to show on a single product
when I try to become a vendor I want all fields that I fill up goes to store profile
>>Your requirement needs too many customizations,This is not possible using code snippet.
It requires serious custom development, and this will be a paid one.
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 with WP development. Any problem if you face any difficulty at the time of development we will guide you accordingly.Thanks.
Sarmistha Chakraborty
MemberTo remove sold by –
add_action('init',function(){ global $WCFM, $WCFMmp; remove_action('woocommerce_after_shop_loop_item_title', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 9 ); remove_action('woocommerce_after_shop_loop_item_title', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 50 ); remove_action('woocommerce_after_shop_loop_item', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 50 ); });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,
Are you using our WCFM free version plugin?
“Bookable” product support it will require our WCFM-Ultimate plugin(https://wclovers.com/product/woocommerce-frontend-manager-ultimate/)Thanks.
Sarmistha Chakraborty
MemberHello,
Please check below threads –
https://wclovers.com/forums/topic/vendor-list-page-ordering/
https://wclovers.com/forums/topic/stores-list-map-cannot-be-hidden-in-shortcode/#post-131790Thanks.
Sarmistha Chakraborty
MemberHello,
I can put the button but i don’t know how to redirect to the vendor store.
>> You can link to vendor’ store page using –<a href="<?php echo wcfmmp_get_store_url( $vendor_id );?>">Continue Shopping</a>But when in one cart multiple vendor’s products are added, then “Continue Shopping” will redirect which store url ?
Thanks.
Sarmistha Chakraborty
MemberHello,
It seems like you didnt paste the shortcodecode properly,
you may hide those stores from store list which not yet have any products, using
[wcfm_stores has_product="yes"]Store per row 5, using –
[wcfm_stores per_row=5]Hide map,country, state add below code in your theme’s functions.php –
add_filter('wcfmmp_is_allow_store_list_country_filter', '__return_false'); add_filter('wcfmmp_is_allow_store_list_state_filter', '__return_false'); add_filter('wcfmmp_is_allow_store_list_map', '__return_false');Thanks.
May 16, 2020 at 4:02 pm in reply to: How do i add new custom field under vendor registration form? #131780Sarmistha Chakraborty
MemberPlease check this thread – https://wclovers.com/forums/topic/custom-vendor-field/
Here is explained how to display custom field value.Thanks.
May 16, 2020 at 4:01 pm in reply to: How do i add new custom field under vendor registration form? #131779Sarmistha Chakraborty
MemberHello,
Add this code in your functions.php , replace membership id(80) with your membership id for registration custom field will display –
add_action('wcfm_membership_registration_form_before_dynamic_custom_fields',function(){ if(WC()->session->get('wcfm_membership') != 80) { echo '<div class="hide_vendor_custom_regfield">'; } }); add_action('wcfm_membership_registration_form_after_dynamic_custom_fields',function(){ if(WC()->session->get('wcfm_membership') != 80) { echo '</div>'; } }); add_filter('wcfmmp_is_allow_manage_registration_additional_infos', function($bool){ $current_plan = wcfm_get_membership(); if(isset($current_plan)) { $bool = ($current_plan!=80) ? false : true; } return $bool; });And add this css in theme’s style.css –
.hide_vendor_custom_regfield { display: none !important; }Make sure your custom field is not required field, then it will not feasible.
Thanks.
May 16, 2020 at 3:27 pm in reply to: How to add custom post types to your Store Manager Dashboard #131766Sarmistha Chakraborty
MemberHello,
As we mentioned previously, it will required custom development. We will provide you code for one post type(WCFM_CPT_1),
Add the below code in your functions.php –
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'; ?> <div class="vendor_capability_sub_heading"><h3><?php _e( WCFM_CPT_1_LABEL, 'wc-frontend-manager' ); ?></h3></div> <?php if( in_array( $wcfm_screen_type, array( 'group','staff' ) ) ) { $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) ) ) ); } }Then modify the functions in class-wcfmcpt-capability.php from “\wp-content\plugins\wcfm-cpt\core” –
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); } //print_r($group_capability_options);die; 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' ) 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 Add Cpt1 function wcfmcap_is_allow_add_cpt1( $allow ) { $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['add_cpt1'])) { $delete_cpt1 = ( isset( $group_capability_options['add_cpt1'] ) ) ? $group_capability_options['add_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; $add_cpt1 = ( isset( $this->wcfm_capability_options['add_cpt1'] ) ) ? $this->wcfm_capability_options['add_cpt1'] : 'no'; if( $add_cpt1 == 'yes' ) return false; } return $allow; } // WCFM wcfmcap Edit Cpt1 function wcfmcap_is_allow_edit_cpt1( $allow ) { $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['edit_live_cpt1'])) { $delete_cpt1 = ( isset( $group_capability_options['edit_live_cpt1'] ) ) ? $group_capability_options['edit_live_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; $edit_cpt1 = ( isset( $this->wcfm_capability_options['edit_live_cpt1'] ) ) ? $this->wcfm_capability_options['edit_live_cpt1'] : 'no'; if( $edit_cpt1 == 'yes' ) return false; } return $allow; } // WCFM wcfmcap Publish Cpt1 function wcfmcap_is_allow_publish_cpt1( $allow ) { $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['publish_cpt1'])) { $delete_cpt1 = ( isset( $group_capability_options['publish_cpt1'] ) ) ? $group_capability_options['publish_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; $publish_cpt1 = ( isset( $this->wcfm_capability_options['publish_cpt1'] ) ) ? $this->wcfm_capability_options['publish_cpt1'] : 'no'; if( $publish_cpt1 == 'yes' ) return false; } return $allow; } // WCFM auto publish live cpt1 function wcfmcap_is_allow_publish_live_cpt1( $allow ) { $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['publish_live_cpt1'])) { $delete_cpt1 = ( isset( $group_capability_options['publish_live_cpt1'] ) ) ? $group_capability_options['publish_live_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; $publish_live_cpt1 = ( isset( $this->wcfm_capability_options['publish_live_cpt1'] ) ) ? $this->wcfm_capability_options['publish_live_cpt1'] : 'no'; if( $publish_live_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); } if(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; }Make sure all WCFM plugins are updated.
Thanks.
Sarmistha Chakraborty
MemberHello,
It seems like the code was not paste properly. It is PHP error. Please provide us site url with admin access(Set as private reply), then we can check your code.
Thanks.
Sarmistha Chakraborty
MemberHello,
Is “Test product” created by your vendor?
Can you provide us your site url with admin access? then we can check your site and guide you properly.(Set as private reply)Thanks.
Sarmistha Chakraborty
MemberHello,
We have already demo setup here – https://wclovers.com/demos/ using Electro theme. It’s working properly in mob version.
Thanks.
May 16, 2020 at 1:14 pm in reply to: How to add wcfm available groups to the vendor registration form? #131732Sarmistha Chakraborty
MemberThis reply has been marked as private.Sarmistha Chakraborty
MemberHello,
For this you need to hide map using css, add this css in your theme’s style.css –
.woocommerce-billing-fields__field-wrapper #wcfmmp-user-locaton-map { display: none; }Thanks.
Sarmistha Chakraborty
MemberHello,
add_filter('wcfmmp_is_allow_show_trashed_orders', '__return_true');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,
Save the products with category(login as a vendor) then check once again. If you still having same issue please provide us your site admin access and FTP details(Set as private reply), We need to debug this issue in your site.
Thanks.
May 15, 2020 at 9:36 pm in reply to: How do i add new custom field under vendor registration form? #131468Sarmistha Chakraborty
MemberHello,
What we understand do you want a custom field in vendor registration page for specific membership plan(group)? Please confirm.
Thanks.
Sarmistha Chakraborty
MemberHello,
This is your theme issue –
Add this css in your theme’s style.css.wcfmmp-product-geolocate-search-form div.wcfm_radius_filter_container, .wcfmmp-product-geolocate-search-form div.wcfm_radius_slidecontainer { overflow: inherit !important; }Thanks.
- AuthorPosts