Forum Replies Created
- AuthorPosts
Sarmistha Chakraborty
MemberHello,
Please go to wp-admin -> Setting -> Permalink -> set this as “post name”
Now, browse store page, it will work for you.Ref:
https://wordpress.org/support/topic/unable-to-access-the-store-page%EF%BC%8C404%C2%B7%C2%B7/
https://wclovers.com/forums/topic/404-error-on-store-link-not-permalink-issue/Thanks.
Sarmistha Chakraborty
MemberHello,
Sorry, but unfortunately any shortcode will not work in “Welcome Store” email. As of now we do not have shortcode support in “Welcome store” email.
Thanks.
Sarmistha Chakraborty
MemberHello,
For this, Please turn-off the “Single product multi-vendor” option from WCFM store dashboard -> Settings -> Modules -> “Single product multi-vendor” option.
Thanks
Sarmistha Chakraborty
MemberHello,
To display “Shop Description” before products in vendor store page,
add_action('wcfmmp_store_before_products','add_shopdescription_before_products',10); function add_shopdescription_before_products($vendor_id){ $store_user = wcfmmp_get_store( $vendor_id ); $wcfm_shop_description = apply_filters( 'wcfmmp_store_about', apply_filters( 'woocommerce_short_description', $store_user->get_shop_description() ), $store_user->get_shop_description() ); ?> <div class="wcfm-store-about"> <div class="wcfm_store_description" ><?php echo $wcfm_shop_description; ?></div> </div> <?php }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/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 Store Gallery option vendor settings page add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_general_custom0905', 50, 2 ); function wcfm_marketplace_settings_fields_general_custom0905($general_fields,$vendor_id) { $vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true ); $store_gallery = isset( $vendor_data['store_gallery'] ) ? $vendor_data['store_gallery'] : array(); if(isset($general_fields['shop_description'])) { $general_fields['store_gallery']= array( 'label' => __('Store Gallery', 'wc-frontend-manager'), 'type' => 'multiinput', 'class' => 'wcfm-text wcfm_ele gallery_type_upload gallery_type_field gallery_type_slider wcfm_non_sortable', 'label_class' => 'wcfm_title gallery_type_field gallery_type_slider', 'value' => $store_gallery, 'options' => array( "image" => array( 'type' => 'upload', 'class' => 'wcfm_gallery_upload gallery_type_upload wcfm-banner-uploads', 'prwidth' => 75), "link" => array( 'type' => 'text', 'class' => 'wcfm-text gallery_type_slilder_link', 'placeholder' => __( 'Gallery Hyperlink', 'wc-frontend-manager' ) ), ) ); } return $general_fields; } add_action( 'wcfm_wcfmmp_settings_update','fn_wcfm_vendor_settings_storetype_update0905', 50, 2); add_action( 'wcfm_vendor_settings_update','fn_wcfm_vendor_settings_storetype_update0905', 50, 2); function fn_wcfm_vendor_settings_storetype_update0905($user_id, $wcfm_settings_form ){ $wcfm_settings_form_data_new = array(); parse_str($_POST['wcfm_settings_form'], $wcfm_settings_form_data_new); $wcfm_settings_form_data_storetype = array(); if(isset($wcfm_settings_form_data_new['store_gallery']) && !empty($wcfm_settings_form_data_new['store_gallery'])) { $wcfm_settings_form_data_storetype['store_gallery'] = $wcfm_settings_form_data_new['store_gallery']; } $wcfm_settings_form = array_merge( $wcfm_settings_form, $wcfm_settings_form_data_storetype ); update_user_meta( $user_id, 'wcfmmp_profile_settings', $wcfm_settings_form ); } //get and display gallery images in about page add_action('wcfmmp_store_after_about','add_shop_gallery_wcfmmp_store_after_about',10); function add_shop_gallery_wcfmmp_store_after_about($vendor_id){ $vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true ); $store_gallery = isset( $vendor_data['store_gallery'] ) ? $vendor_data['store_gallery'] : array(); foreach ($store_gallery as $store_gallery_img) { if($store_gallery_img['image'] != '') { $img_url = wcfm_get_attachment_url($store_gallery_img['image']); } else { $img_url = $store_gallery_img['link']; } echo '<img src="'.$img_url.'" />'; //replace with your required HTML to display gallery } }Thanks.
Sarmistha Chakraborty
MemberHello,
Do you want to remove this store info from WooCommerce Shop page?
Then try this code in your theme’s functions.php –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 ); });Thanks.
May 8, 2020 at 9:13 pm in reply to: How to change Button color of Product inquiry on product page ? #128482Sarmistha Chakraborty
MemberPlease modify the css-
.single-product .wcfm_catalog_enquiry.wcfm_login_popup, .singular-shop a.wcfm_catalog_enquiry:hover { background: #c71e1f!important; }Thanks.
Sarmistha Chakraborty
MemberHello,
In “Registration Form Custom Fields” where you added the “Licensing” field(WCFM dashboard -> Settings -> Vendor Registration)(see previously attached screenshot), your entered value in “Label” field (example – Licensing), you have to put the label field value(all in small letters) in this code –
add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs ) { $tabs['vendor_info_tab'] = array( 'title' => __( 'Additional Information', 'woocommerce' ), 'priority' => 10, 'callback' => 'woo_new_product_tab_content' ); return $tabs; } function woo_new_product_tab_content() { // The new tab content $product_id = get_the_ID(); $vendor_id = wcfm_get_vendor_id_by_post( $product_id ); echo'<p>'.get_user_meta( $vendor_id, 'licensing', true ).'</p>'; //replace "licensing" with your label field value }If you still unable to do that, we need your site access, we will do it for you.
Thanks.
Sarmistha Chakraborty
MemberHello,
You can achieve this using our WCFM – GROUPS & STAFFS(https://wclovers.com/product/woocommerce-frontend-manager-groups-staffs/) and WCFM – Membership plugin. https://wclovers.com/knowledgebase/wcfm-groups-staffs/
Set the category in “Product Categories” capability in group and assign the group with membership plan.
You have to set “Product Categories” option in each group’s capability, Who will registered only this group (via membership plan), only these vendor can see selected product categories.Thanks.
Sarmistha Chakraborty
MemberHi,
Make sure “Checkout User Location” is unchecked – Wcfm Dashboard -> Settings -> Geo location
Thanks.
Attachments:
You must be logged in to view attached files.May 8, 2020 at 5:41 pm in reply to: How to change Button color of Product inquiry on product page ? #128406Sarmistha Chakraborty
MemberHello,
Try this css in your theme’s style.css –
a.wcfm_catalog_enquiry.wcfm_login_popup { background: #c71e1f !important; }It seems like you have already changed the button text, otherwise change the “Button Label” from WCFM dashboard -> Settings->Inquiry Settings
Thanks.
Sarmistha Chakraborty
MemberHello,
If you do not want shipping option then please check you have disabled the “Shipping location(s)” from WooCommerce->Settings->General (PFA)
Is there another way to translate without loco translate, I find it hard to use.
>>The best and easiest solution is Loco translate(https://localise.biz/wordpress/plugin/beginners)
Otherwise your can override “form-billing.php” file in your theme “yourtheme/woocommerce/checkout/form-billing.php” from “\wp-content\plugins\woocommerce\templates\checkout” and change the text.Thanks.
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberHello,
We have just checked your site, It seems like your theme override some WooCommerce default functions.
Try this code in your theme’s functions.php-add_action( 'woocommerce_after_shop_loop_item', 'custom_wcfm_excerpt_in_product_archives', 7 ); function custom_wcfm_excerpt_in_product_archives() { global $post; $short_description = apply_filters( 'woocommerce_short_description', $post->post_excerpt ); if ( ! $short_description ) { return; } echo $short_description; // WPCS: XSS ok. }And reset this settings – “adjust settings to show the ‘short description’ field on the ‘shop page’ in the ‘appearance’ settings”
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_shortcode('wcfm_store_related_products','fn_wcfm_store_related_products'); function fn_wcfm_store_related_products($attr) { global $WCFM, $WCFMmp, $wp, $WCFM_Query, $post; $store_id = ''; if ( isset( $attr['id'] ) && !empty( $attr['id'] ) ) { $store_id = absint($attr['id']); } if ( wcfm_is_store_page() ) { $wcfm_store_url = get_option( 'wcfm_store_url', 'store' ); $store_name = apply_filters( 'wcfmmp_store_query_var', get_query_var( $wcfm_store_url ) ); $store_id = 0; if ( !empty( $store_name ) ) { $store_user = get_user_by( 'slug', $store_name ); } $store_id = $store_user->ID; } if( is_product() ) { $store_id = $post->post_author; } if( !$store_id && is_single() && $post && is_object( $post ) && wcfm_is_vendor( $post->post_author ) ) { $store_id = $post->post_author; } echo do_shortcode('[products store="'.$store_id.'"]'); }After that you can use “[wcfm_store_related_products]” shortcode
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('wcfm_is_allow_invoice_order_shipping_line_items', '__return_false');
you can override store invoice and make required changes.Override this folder templates – “wp-content\plugins\wc-frontend-manager-ultimate\views\vendor_invoice”
to your “child theme\wcfm\vendor_invoice”Thanks.
May 8, 2020 at 3:35 pm in reply to: How get custom fields vendor registration to use validation ? #128367Sarmistha Chakraborty
MemberHello,
Add this js in your theme’s js file –
jQuery(document).ready(function ($) { if($('#wcfm_membership_registration_form #bank_account').length > 0) { $( document.body ).on( 'wcfm_form_validate', function( event, validating_form ) { $form = $(validating_form); $wcfm_is_valid_form = false; var is_valid = checkStrength($('#bank_account').val()); if(is_valid) { $wcfm_is_valid_form = true; } else { $('#bank_account').removeClass('wcfm_validation_success').addClass('wcfm_validation_failed'); $('#bank_account').addClass('wcfm_validation_failed'); $('#wcfm_membership_container .wcfm-message:not(.email_verification_message, .sms_verification_message)').html( '<span class="wcicon-status-cancelled"></span>' + $('#bank_account').data('mismatch_message') ).addClass('wcfm-error').slideDown(); $wcfm_is_valid_form = false; } }); } function checkStrength(accno) { if(isNaN(accno)){ return $wcfm_is_valid_form = false; } else { return $wcfm_is_valid_form = true; } } });And add this code in your theme’s functions.php –
add_filter( 'wcfm_membership_registration_fields_username', function( $wcfm_register_field ) { $wcfm_register_field["bank_account"] = array( 'label' => __('Bank account', 'wc-multivendor-membership') , 'type' => 'text', 'custom_attributes' => array( 'required' => 1 , 'required_message' => __( 'Acc no. this field is req.', 'wc-multivendor-membership' ),'mismatch_message' => __( 'Invalid Bank Account Number.', 'wc-multivendor-membership' ) ), 'class' => 'wcfm-text wcfm_ele ', 'label_class' => 'wcfm_ele wcfm_title', 'value' => $bank_account ); return $wcfm_register_field; },15);Thanks.
Sarmistha Chakraborty
MemberHello,
In your previous screenshot we don’t find the “file path”, Can you share us the two page(WooCommerce Shop page and Vendor Store page) url? Where product block display differently.
Thanks.
May 8, 2020 at 2:11 pm in reply to: Change the location of the inquiry button on the product page #128317Sarmistha Chakraborty
MemberHello,
We have already replied you in this thread – https://wclovers.com/forums/topic/how-to-change-button-color-of-product-inquiry-on-product-page/#post-128316
Thanks.
May 8, 2020 at 2:10 pm in reply to: How to change Button color of Product inquiry on product page ? #128316Sarmistha Chakraborty
MemberHello,
How to change Button color
>>Well, it requires a small CSS tweak.Kindly give me a single product page URL from your site, I will know you CSS for this.
Thanks.
Sarmistha Chakraborty
MemberHello,
Btw is there anyway I can change how the product is being displayed?
>>Basically, in vendor store page product tab will display same as WooCommerce Shop page template. Whatever customize shop product display in shop page, it will reflect in your vendor’s store page.We do have a products that are physical and services,
>>Can you let us know how you differentiate between physical product and services product n your site?You can find here how to add new tab – https://wordpress.org/support/topic/custom-tab-in-vendor-store-page/
Thanks.
Sarmistha Chakraborty
MemberHello,
To make this part invisible,
add_filter('wcfm_is_allow_custom_taxonomy_pwb-brand', '__return_false');to change the label name of Brands https://prnt.sc/scj8yr-
add_filter( 'wcfm_taxonomy_custom_label', function( $wcfm_taxonomy_custom_label ) { if($wcfm_taxonomy_custom_label == 'Brands') { $wcfm_taxonomy_custom_label = 'Rename Brands'; } return $wcfm_taxonomy_custom_label; },15);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/
Thanks.
Sarmistha Chakraborty
MemberHello,
Actually the product tab’s products will display same as WooCommerce shop page template. Can you check once your WooCommerce shop page have the “audio preview ” option? If no, please contact with your theme support how to show “audio preview ” in WooCommerce shop page template. It will reflect Vendor store page also.
Thanks.
Sarmistha Chakraborty
MemberHello,
Sorry, unfortunately in our current version of plugin we don’t have ACF “Color picker” and “URL” support. The requirement is in our future roadmap. When we add this support in our plugin we will let you know.
As of now you can use the text field to enter the color code/url.Thanks.
Sarmistha Chakraborty
MemberHello,
skipping shipping for bookable products using this.
add_filter( ‘wcfm_pm_block_class_shipping’, function( $attr_block_classes ) {
return ‘simple variable’;
});
But I am still getting an error
>>Kindly share us the error, and Modify the code-add_filter( 'wcfm_pm_block_class_shipping', function( $attr_block_classes ) { $attr_block_classes = 'simple variable'; return $attr_block_classes; },15);I also want to remove the delivery location, map and ship to a different address in the checkout page.
>>For this we have add this “Shipping By Distance” feature in our latest update, incase you do not need it, you can turn off this module.(PFA)
and to hide ship to a different address in the checkout page make sure that Force shipping to the customer billing address checkbox is checked.(Administration->Woocommerce->Settings->Shipping->Shipping Options)Please also help me in renaming Billing & Shipping to Billing details
>>Please use Loco Translate plugin for changing text. As you know this page appearing from WooCommerce.
https://wordpress.org/support/topic/rename-billing-shipping-header/
https://dessky.com/snippet/change-billing-address-label-woocommerce-checkout-page/Thank You
Attachments:
You must be logged in to view attached files.Sarmistha Chakraborty
MemberThis reply has been marked as private.- AuthorPosts