Forum Replies Created
- AuthorPosts
Sushobhan
KeymasterHello,
Thanks for contacting to us.
You need to copy this to the following path to overwrite-
themes/qualis-child/wcfm/store/wcfmmp-view-store-products.php
ThanksSushobhan
KeymasterHello,
Thanks for getting in touch with us. From what I have understood, you want to make regular price field read-only/disabled. You can do so via the following snippet-function make_price_readonly( $fields ) { if ( wcfm_is_vendor() ) { if ( isset( $fields['regular_price'] ) ) { $fields['regular_price']['attributes'] = array( 'readonly' => 'readonly', 'disabled' => 'disabled' ); } } return $fields; } add_filter('wcfm_product_manage_fields_pricing', 'make_price_readonly');Thanks
Sushobhan
KeymasterHi
Thanks for getting in touch.
From WCFM v3.3.0, https://wordpress.org/plugins/license-manager-for-woocommerce/ compatibility is added.
ThanksSushobhan
KeymasterHello,
Thanks for getting in touch with us.
Yes it’s possible. First create all the three custom fields from Admin Dashboard >> Settings >> Vendor Registration. Once done, all the three field will appear on the registration page. Now you need to write some JavaScript function that will take care of two things – 1. Hide the “SIRET number” field at first. 2. Show this field only when the “Professional” checkbox is checked.
Let me know, how it goes.
ThanksJanuary 29, 2020 at 9:16 pm in reply to: Unable to Choose Visibility on Custom Product Field – Please Help! #104577Sushobhan
KeymasterHello,
Thanks for getting in touch as sorry for any inconvenience caused.
This feature comes with WCFM Ultimate. Can you please confirm you have WCFM Ultimate installed and activated?Thanks
Sushobhan
KeymasterHi,
Your query isn’t clear. Can you please explain what you want to achieve? If possible a snapshot of the section would be great.
ThanksSushobhan
KeymasterHi,
The two tabs ‘Resources’ and ‘Persons’ are removed now. For this the following code snippet is also added –function remove_booking_tabs() { global $WCFMu; remove_action( 'end_wcfm_products_manage', array( $WCFMu->wcfmu_wcbooking, 'wcb_wcfmu_products_manage_form_load_views' ), 30 ); } add_action( 'wcfm_init', 'remove_booking_tabs', 20 );Will update you on rest of the things.
Sushobhan
KeymasterHello,
Which version of the plugins are you using?Sushobhan
KeymasterHi,
Sorry, my last suggestion will not work in your case. When you create zone against each province then also WooCommerce will select the first zone that matched the buyers province. And hence the last rule i.e. Canada will never gonna applied. Sorry but at this moment I don’t have a solution for your case. I’ll try few more coding tweaks and let you know if got any success. On a different note, your request for support of postcode range is accepted by our dev team, it will be added to our future release.Sushobhan
KeymasterHi,
When you setup zones in this order – Canada, British Columbia, Alberta, then there is no way your zone 2 or 3 will ever gets applied. As I mentioned before, the zones are matched from top to bottom. So for any location in Canada, the first rule is a match and thus rule 2 or 3 will never get a chance even if people put their Province as British Columbia or Alberta.
This restriction is coming from WooCommerce. It only checks from top to bottom for a match and if you create multiple zones with same region, still it will only apply the first matched zone rule.
I can think of another approach, see if that suits your purpose. First create different zones, one for each province. Also a last zone with Canada set as region. Now what your vendors can do, they can set shipping charges to all other province apart from their own and then they can use the last zone (Canada) along with the postcode restriction to offer Local shipping.Sushobhan
KeymasterCan you please share a temporary access of your site so that we can debug this. Also, don’t forget to mark your reply as private.
January 23, 2020 at 6:25 pm in reply to: Stop users from adding product unless they add a payment gateway #103444Sushobhan
KeymasterHello,
Thanks for getting in touch as sorry for any inconvenience caused.add_filter( 'wcfm_is_allow_pm_add_products', function( $is_allow ) { if ( wcfm_is_vendor() ) { $vendor_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() ); $vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true ); $payment_mode = isset( $vendor_data['payment']['method'] ) ? esc_attr( $vendor_data['payment']['method'] ) : ''; if ( ! $payment_mode ) { wcfm_restriction_message_show( 'You have not set up a payment method yet!' ); return false; } } return $is_allow; }, 750 ); add_filter('gettext', 'change_text_fn', 10, 3); function change_text_fn($translation, $text, $domain) { if($domain=='wc-frontend-manager' && strpos($text, '%s: Your %s membership level doesn\'t give you permission to access this page. Please upgrade your membership, or contact the %sWebsite Manager%s for assistance.')) { return str_replace('%s: Your %s membership level doesn\'t give you permission to access this page. Please upgrade your membership, or contact the %sWebsite Manager%s for assistance.', '%s', $text); } return $translation; }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/
Let me know how this goes.Sushobhan
KeymasterAlso attached the checkout screen to confirm the settings are applied correctly
Attachments:
You must be logged in to view attached files.Sushobhan
KeymasterHello,
I have tested and it is working as expected. When I recheck your snapshots, I found a conflict between the attached two. In admin screen the Local Shipping Zone shows Zone as Canada, but in vendor screen it is showing as ‘Everywhere’.The following is the settings I’m using-
1. Create 3 Zones from admin side (WooCommerce >> Settings >> Shipping)
2 a. Zone 1 – Zone name – Local Shipping Zone, Zone regions – Canada or British Columbia
b. Click on Limit to specific ZIP/postcodes and enter V9R*
3. Zone 2 – Zone name – BC Shipping Zone 2, Zone regions – British Columbia, Canada
4. Zone 3 – Zone name – Alberta Shipping Zone 3, Zone regions – Alberta, CanadaAttachments:
You must be logged in to view attached files.Sushobhan
KeymasterHello,
Zone doesn’t work that way. When you (admin) create multiple zones, you need to make sure that each zone is different by choosing different ‘Zone regions’. Also add them in order from specific to more generic, otherwise the first zone rules will always be implied.So say, there is country1 and you want to set different shipping for 2 of its states (state1, state2), and keep a different rate for rest of the states. To achieve this, you need to create 3 zones, one for state1, one for state2, and one for country1. As rules gets applied from first to last, so the last rule (country1) will gets executed only if the address is not from state 1 or 2.
I can understand setting shipping zones are kind of tricky sometimes. Let me know if you find my explanation it helpful.
Sushobhan
KeymasterYou don’t need to use wildcard characters. In reference to your image, if you want to match all the postcodes starting with V9R, simply put that without ‘*’.
January 21, 2020 at 1:48 pm in reply to: Can not find a solution to remove auto created "Canonical" URL #102987Sushobhan
KeymasterHello,
Thanks for getting in touch as sorry for any inconvenience caused.
WCFM doesn’t add Canonical url. It is coming from another plugin. Are you using any SEO related plugin in your site?
Let me know.Sushobhan
KeymasterHello,
Use the following code instead-add_filter( 'wcfm_product_manage_fields_general', 'wcfmbi_product_manage_fields_general', 100, 3 ); function wcfmbi_product_manage_fields_general( $general_fields, $product_id, $product_type ) { global $WCFM, $WCFMpb; if( isset( $general_fields['_wc_booking_has_resources'] ) ) { unset($general_fields['_wc_booking_has_resources']); } if( isset( $general_fields['_wc_booking_has_persons'] ) ) { unset($general_fields['_wc_booking_has_persons']); } return $general_fields; }Let me know how this goes.
January 20, 2020 at 4:28 pm in reply to: Vendors are not receiving new order email notification #102850Sushobhan
KeymasterHello,
Which version of the plugin are you using? Also, does the email log also confirms that only admin emails are getting fired and not vendor emails. Lastly, does it happening for all other events or only for new orders?
Let me know.Sushobhan
KeymasterHello,
From the message and image it is not fully clear what do you want to achieve. Do you want another column to show vendor name? Or do you want to hide admin products (if any) from the list?
Let me know.January 20, 2020 at 4:17 pm in reply to: Error when adding new (non-downloadable) product. "File: This field is required. #102848Sushobhan
KeymasterHello,
Thank you for contacting and sorry for any inconvenience that might have been caused. If I have understood correctly, you want to remove capability to add virtual or downloadable products. There is a settings to do so without any code customization. From your admin account go to WCFM Frontend dashboad >> Capability, under “Types” disable both Virtual and Downloadable option.
Let me know how this goes.Sushobhan
KeymasterHi,
Sorry for the inconvenience caused. Are you still struggling with this issue? If so, try logging in using browser incognito mode. If the problem doesn’t appear means the issue might be related to Cookies. Please clear all the cookies from our website, to do so you can follow this guide https://support.google.com/chrome/answer/95647?co=GENIE.Platform%3DDesktop&hl=en
Thanks
Sushobhan
KeymasterHello,
First tell me, how you hide the checkboxes “Has resources” + “Has persons” for bookable product? I guess you want to permanently hide those two tabs for Bookable product.
Let me know.Thanks
January 17, 2020 at 6:46 pm in reply to: Show seller-specific field on store information page #102478Sushobhan
KeymasterHello,
Can you be more specific what do you mean by “seller-specific field”? Are they custom fields, added in vendor registration form? Does all the vendors have that field associated with them?
Thanks
January 17, 2020 at 1:29 pm in reply to: Can the Shipping title displayed in the cart be changed? #102437Sushobhan
KeymasterYou are always welcome 🙂 Let me know if there’s anything else we can help you with.
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.
- AuthorPosts