Forum Replies Created
- AuthorPosts
Sushobhan
KeymasterHi,
You can try using the following snippet-add_filter( 'wcfmmp_store_address_string', function( $store_address, $vendor_data ) { $address = array(); if ( ! empty( $vendor_data['address'] ) ) { if ( isset( $vendor_data['address']['street_1'] ) ) $address[] = $vendor_data['address']['street_1']; if ( isset( $vendor_data['address']['street_2'] ) ) $address[] = $vendor_data['address']['street_2']; if ( isset( $vendor_data['address']['zip'] ) ) $address[] = $vendor_data['address']['zip']; if ( isset( $vendor_data['address']['city'] ) ) $address[] = $vendor_data['address']['city']; if ( isset( $vendor_data['address']['state'] ) ) $address[] = $vendor_data['address']['state']; if ( isset( $vendor_data['address']['country'] ) ) $address[] = $vendor_data['address']['country']; } return implode( ', ', array_filter( $address ) ); }, 10, 2 );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.
Thanks!Sushobhan
Keymaster@Henriette, the purpose of the last snippet was-
1. remove Street 2 and Country from vendor dashboard > Location.
2. bring Postcode first and than City/Town
And it does just that. But as you mentioned in your last message that you want to hide state field as well from Vendor settings >> location and make it consistent with the store page; so here is the updated snippet (kindly remove the older one)-
add_filter( 'wcfm_marketplace_settings_fields_address', function( $fields ) { if ( ! current_user_can( 'administrator' ) ) { $shuffled_fields = array(); if ( isset( $fields['street_1'] ) ) $shuffled_fields['street_1'] = $fields['street_1']; if ( isset( $fields['zip'] ) ) $shuffled_fields['zip'] = $fields['zip']; if ( isset( $fields['city'] ) ) $shuffled_fields['city'] = $fields['city']; if ( isset( $fields['state'] ) ) { $shuffled_fields['state'] = $fields['state']; $shuffled_fields['state']['type'] = 'hidden'; } if ( isset( $fields['country'] ) ) { $shuffled_fields['country'] = $fields['country']; $shuffled_fields['country']['type'] = 'hidden'; } return $shuffled_fields; } return $fields; }, 10 ); add_filter( 'wcfmmp_store_address_string', function( $store_address, $vendor_data ) { $address = array(); if ( ! empty( $vendor_data['address'] ) ) { if ( isset( $vendor_data['address']['street_1'] ) ) $address[] = $vendor_data['address']['street_1']; if ( isset( $vendor_data['address']['zip'] ) ) $address[] = $vendor_data['address']['zip']; if ( isset( $vendor_data['address']['city'] ) ) $address[] = $vendor_data['address']['city']; } return implode( ', ', array_filter( $address ) ); }, 10, 2 );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/ (more preferred option)
Let me know how this goes.
Thanks!Sushobhan
KeymasterPlease clear your browser cache or try in incognito mode. Your edit should work as expected.
Thank You!
Sushobhan
KeymasterHi,
Go to My Apps & Credentials section and from there go to your PayPal app. Inside this under ‘APP SETTINGS’ you will find Payout option. (Ref- https://imgur.com/qvqVjcQ)
You could find this link helpful – https://www.paypal.com/in/smarthelp/article/what-is-the-payouts-api-and-how-do-i-enable-it-on-my-account-ts2075
ThanksApril 27, 2020 at 2:00 pm in reply to: Différence between stripe split pay and stripe Connect #123605Sushobhan
KeymasterHello,
I can understand your part. We would definitely give more focus to our wording, not in just menu but everywhere.
Though different geographical location made it impossible to use terms that is 100% correct for everyone. Also, different marketplace niche expects different terminology for similar concepts.
I’ sorry as I couldn’t provide you a complete resolution on this issue.
Thank You!Sushobhan
KeymasterHi,
Thanks for getting in touch with us!
Do you want to add custom shipping methods apart from Local Pickup, Flat Rate Shipping, and Free Shipping? If yes, then you need to custom code it.
To know more about WCFM shipping options, kindly go through our documentation here- https://docs.wclovers.com/store-shipping/#zone-wise-admin-settings
Looking forward to helping you.Sushobhan
KeymasterHi,
Could you please check and confirm if your PayPal live account “Payout” service is enabled or not?
Looking forward to helping you.Sushobhan
KeymasterHi,
Thanks for getting in touch with us!
Kindly know me one thing, is that account connected to the Stripe properly? Did you checked that at Stripe account?
If not, please completed all the steps in this guide – https://docs.wclovers.com/vendor-payment/#stripe-account-setup
If Test mode is enabled, try with disabling that.
Looking forward to helping you.Sushobhan
KeymasterHi,
Thanks for getting in touch with us!
This is not related to WCFM and fully controlled by WooCommerce. Though I have write a snippet for you which can help you achieving your purpose –add_filter('woocommerce_display_product_attributes', function( $product_attributes, $product ) { if(isset($product_attributes['dimensions'])) { $dimension = $product->get_dimensions( false ); $formatted_dimension = array(); if(!empty($dimension['height']))$formatted_dimension['height'] = "H. " . format_dimension_item($dimension['height']); if(!empty($dimension['length']))$formatted_dimension['length'] = "L. " . format_dimension_item($dimension['length']); if(!empty($dimension['width']))$formatted_dimension['width'] = "W. " . format_dimension_item($dimension['width']); $product_attributes['dimensions']['value'] = implode( ' × ', array_filter($formatted_dimension) ); } return $product_attributes; }, 10, 2); function format_dimension_item($d) { return wc_format_localized_decimal($d) . " " . get_option( 'woocommerce_dimension_unit' ); }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 it goes.
Thanks!Sushobhan
KeymasterHi,
Thanks for getting in touch with us!I would like to add a new tab to each Vendor Store page that displays product categories (the same way that the WooCommerce Shop page is displayed)
Are you talking about the Product category widget in the sidebar? Or you want a new tab? Adding a new tab can also be achieved using custom code.
How do I set the total of Products per page on the Vendor Store page? It currently will only display 10 products per page – I would like to increase that to 20.
To do this go to Settings >> Marketplace Settings and from there change Products per page to 20.
Looking forward to helping you.Sushobhan
KeymasterHello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
Please check if there are any JS errors in your browser console (What is browser console – https://support.airtable.com/hc/en-us/articles/232313848-How-to-open-the-developer-console).
Are you using any role editor plugin? If yes, then try after disabling that as well.
Thanks!
Sushobhan
KeymasterHi,
Thanks for getting in touch with us!
Where you want to show this url, inside their store page? Can you provide me a snapshot annotating the position? If it’s only about showing an URL address for certain vendors then it can be easily achieved with some custom line of codes.
Looking forward to helping you.Sushobhan
KeymasterHi,
There are various hooks for this purpose. To tell you the proper hook for your case, I’ll need to know the exact position where you want to add this field. Also you will have to write the code for saving this fields value.
Looking forward to helping you.Sushobhan
KeymasterHi,
Thanks for getting in touch with us!
To change this as per your need, go to Settings >> Menu Mangerfrom your WCFM admin dashboard. From here expand each menu that you want to hide from your vendors (in your case that means all the menu’s except Products) and change ‘Menu for’ to ‘Only Admin’ (Refer to this image- https://imgur.com/YybcwWA)
Now to take out ‘Add New’ submenu from Products, expand it in Menu Manager and uncheck ‘Has New?’ option (Ref: https://imgur.com/VxUFNJ8)
Finally Add a new Menu, Click on the plus sign (Add New Block) form the last menu. Give it a name and the Url you want. You can also specify a font-awesome icon class for the menu icon.
And, that’s it.Sushobhan
KeymasterHello,
Where you want to let your vendors put this shortcode? And how they are doing it? If possible few snapshots to make things clearer.
Then we’ll be able to do that dynamically. Means the vendor doesn’t need to know their ID.Alternatively, we can add the ID information anywhere in the dashboard. Say just beside vendors name like this –
Here is the code snippet for that-add_action( 'wcfm_dashboard_after_username', function($id) { if ( wcfm_is_vendor() ) echo "<span class='store_id'>ID: #{$id}</span>"; } );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.
Thanks!Sushobhan
KeymasterHello,
To hide the settings from vendor dashboard you will also need to add the following snippet-add_filter('wcfm_marketplace_settings_fields_visibility', function($store_visibility) { if(wcfm_is_vendor() && isset($store_visibility['store_ppp'])) { unset($store_visibility['store_ppp']); } return $store_visibility; });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.
Thanks!Sushobhan
KeymasterHello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it could be a conflict with one of the plugins or the theme you are using.
To determine that, please follow this awesome troubleshooting guide from here:
https://rankmath.com/kb/check-plugin-conflicts/Only the site admin would know and your users won’t be affected by this troubleshooting.
Please let us know if you find the cause.
Looking forward to helping you.
Sushobhan
KeymasterHello,
From inside WCFM admin dashboard go to Settings >> Geo Location and enable “Product List Radius Search” option. This will bring the map and filters in your shop page.
Note you will also need to setup Map Library option from here. If you choose Map library as Google Map then you will need to enter your Google Map API Key.Next we’ll setup the filters on the sidebar. As I can see currently you are using full-screen template. So first choose a template with a left sidebar from your theme. Then go to wp-admin >> Appearance >> Widgets and from there add the following to your default sidebar
– Product Search widget
– Filter Products by Price
– Marketplace: Best Selling Vendors
– Marketplace: Top Rated Vendors
– Vendor Store: Top Rated ProductsAnd, that’s it! 🙂
April 26, 2020 at 3:40 pm in reply to: Différence between stripe split pay and stripe Connect #123233Sushobhan
KeymasterHi,
Thanks for explaining this to me. I’ll keep that in mind.If you think your vendors will gets confused with some of the terms, you can use plugin like Loco Translate and change those texts as per your need.
Lastly, did you get the difference between the two methods? Looking forward to helping you.
Sushobhan
KeymasterThis reply has been marked as private.Sushobhan
KeymasterHi,
Thanks for getting in touch with us!
To disable that feature go to WCFM admin dashboard >> Settings >> Modules and from there disable “Single Product Multi-vendor” module.
Thank You!Sushobhan
KeymasterHello,
Try the following snippet-add_filter( 'wcfm_marketplace_settings_fields_address', function( $fields ) { if ( ! current_user_can( 'administrator' ) ) { $shuffled_fields = array(); if ( isset( $fields['street_1'] ) ) $shuffled_fields['street_1'] = $fields['street_1']; if ( isset( $fields['zip'] ) ) $shuffled_fields['zip'] = $fields['zip']; if ( isset( $fields['city'] ) ) $shuffled_fields['city'] = $fields['city']; if ( isset( $fields['state'] ) ) $shuffled_fields['state'] = $fields['state']; if ( isset( $fields['country'] ) ) { $shuffled_fields['country'] = $fields['country']; $shuffled_fields['country']['type'] = 'hidden'; } return $shuffled_fields; } return $fields; }, 10 );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.
Thanks!April 26, 2020 at 12:40 pm in reply to: Setting up minimum qty and increments for products in vendor's dashboard #123195Sushobhan
KeymasterHi,
I assume you are using https://woocommerce.com/products/minmax-quantities/ plugin for this.
WCFM provides this third-pary plugin compatibility via WCFM Ultimate addon – https://wclovers.com/product/woocommerce-frontend-manager-ultimate/
If you already have WCFM Ultimate, please install and activate that.Looking forward to helping you.
Sushobhan
KeymasterHi,
This is how a filter is called. You can read more about this here- https://developer.wordpress.org/reference/functions/add_filter/
Argument 1:wcfm_product_manage_fields_variationsis the filter name
Argument 2: ‘wcfm_restrict_publish_product_variation_pricing’ is the callback function
Argument 3 (Optional): Is the priority of this callback function. Low value of priority ensures early execution. Default value- 10
Argument 4 (Optional): Number of arguments getting passed to the callback function
Hope this helps!
Thank You!Sushobhan
KeymasterHello
Please continue the discussion here- https://wclovers.com/forums/topic/go-not-multivendor-marketplace/
To avoid any confusion, I’m closing this thread.
Thank You!- AuthorPosts