Forum Replies Created
- AuthorPosts
Sushobhan
KeymasterHi,
Are you using any other Stripe plugin in your site except WCFM Stripe Split pay?
Also, check at wp-admin -> WooCommerce -> Status -> Logs -> wcfm-stripe log -> is any error generated?
Thanks You!Sushobhan
KeymasterHello,
Sorry about that, forgot to check for the empty url (not yet set by the vendor) case. Please replace your previous snippet with this new one –add_action( 'wcfm_capability_settings_fields_settings_inside', function($fields) { global $wp, $wcfmgs_capability_manager_options; if ( is_wcfm_page() && ! empty( $wp->query_vars['groups-manage'] ) ) { $external_url = ( isset( $wcfmgs_capability_manager_options['external_url'] ) ) ? $wcfmgs_capability_manager_options['external_url'] : 'no'; $fields['external_url'] = array( 'label' => 'Website', 'name' => "wcfmgs_capability_manager_options[external_url]", 'type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $external_url, ); } return $fields; } ); add_filter( 'wcfm_marketplace_settings_fields_general', function($field, $user_id) { if ( can_vendor_show_url( $user_id ) && isset( $field['store_slug'] ) ) { $website_url = wcfm_get_user_meta( $user_id, '_wcfm_vendor_website_url' ); $field['website_url'] = array( 'label' => __( 'Website' ), 'type' => 'text', 'class' => 'wcfm-text wcfm_ele', 'label_class' => 'wcfm_title wcfm_ele', 'value' => esc_url( $website_url ) ); } return $field; }, 10, 2 ); add_action( 'wcfm_vendor_settings_update', function( $vendor_id, $wcfm_settings_form ) { global $WCFM, $WCFMmp; if ( isset( $wcfm_settings_form['website_url'] ) ) { $website_url = esc_url_raw( $wcfm_settings_form['website_url'] ); wcfm_update_user_meta( $vendor_id, '_wcfm_vendor_website_url', $website_url ); } }, 500, 2 ); add_action( 'wcfmmp_store_after_email', function($vendor_id) { if ( can_vendor_show_url( $vendor_id ) ) { $website_url = esc_url( wcfm_get_user_meta( $vendor_id, '_wcfm_vendor_website_url' ) ); if ( $website_url ) { ?> <div class="store_info_parallal wcfmmp_store_header_website" style="margin-right: 10px;"> <i class="wcfmfa fa-globe" aria-hidden="true"></i> <span> <a href="<?php echo $website_url; ?>" target="_blank" rel="noopener noreferrer"><?php echo $website_url; ?></a> </span> </div> <?php } } } ); function can_vendor_show_url( $vendor_id ) { if ( ! (wcfm_is_vendor( $vendor_id )) ) return false; $wcfm_vendor_groups = array_filter( (array) get_user_meta( $vendor_id, '_wcfm_vendor_group', true ) ); if ( ! $wcfm_vendor_groups ) return false; $vendor_capability_options = (array) apply_filters( 'wcfmgs_user_capability', get_option( 'wcfm_capability_options' ), $vendor_id ); $external_url = isset( $vendor_capability_options['external_url'] ) ? $vendor_capability_options['external_url'] : 'no'; return $external_url === 'no'; }Also last time I forgot to explain the behavior of this code, so here it is-
-This code will add a new capability ‘Website’ under each group, see pic- https://imgur.com/dmXiGXQ
-Then all the vendors of that group will get a new field under their settings page like this- https://imgur.com/v1oD1Ri
-Now, when a vendor set this field with a valid URL, then this information will be visible on their store page like this – https://imgur.com/gNp8cpVThank You!
Sushobhan
KeymasterHello,
PayPal Adaptive Payments is not available for new integrations. Its an old API and seems like PayPal abandoned it. Check here- https://imgur.com/bZDYH8O
So do you have a PayPal Adaptive account?
Thank You!Sushobhan
KeymasterHi,
At this moment PayPal doesn’t offer any solution to split the customer money (between marketplace admin and vendor) during checkout. So, we use standard PayPal to make direct 1-to-1 fund transfer (customer to vendor). Hence, multiple vendor product is not supported in a single cart.
But, if Stripe or WireCard(Moip) is supported in your country then you can use any of them. Both, these payment methods doesn’t have any limitation on cart items. To know more visit here- https://docs.wclovers.com/vendor-payment/
Thank You!Sushobhan
KeymasterHello,
It’s not a good idea to edit anything without ftp. If anything goes wrong, like a fatal error, then you can’t recover it from frontend.
To add snippets from wp-admin, use this plugin – https://wordpress.org/plugins/code-snippets/. It’s much better than editing theme’s functions.php using theme editor option.
Finally, the error you are seeing, is not related to the code. If possible use the plugin I mentioned or ftp.
Thanks!May 3, 2020 at 4:57 pm in reply to: Map Disappears when filter option is selected on shop page #126073Sushobhan
KeymasterThis reply has been marked as private.May 2, 2020 at 4:08 pm in reply to: CHANGE STORE NAME TO LAST NAME AND FIRST NAME OF THE VENDOR #125694Sushobhan
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 (if you haven’t already) 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.May 2, 2020 at 12:40 pm in reply to: Map Disappears when filter option is selected on shop page #125649Sushobhan
KeymasterThis reply has been marked as private.Sushobhan
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 (if you haven’t already) 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.May 2, 2020 at 12:36 pm in reply to: CHANGE STORE NAME TO LAST NAME AND FIRST NAME OF THE VENDOR #125646Sushobhan
KeymasterHi,
Thanks for getting in touch with us!
Yes, that’s absolutely possible. Please use the following snippet-add_action( 'wcfmmp_new_store_created', function( $vendor_id, $wcfmmp_settings ) { global $wpdb; $store_user = get_user_by( 'id', $vendor_id ); $first_name = $store_user->first_name; $last_name = $store_user->last_name; if ( $first_name || $last_name ) { $store_name = trim( "{$first_name} {$last_name}" ); $store_slug = sanitize_title( wc_clean( $store_name) ); update_user_meta( $vendor_id, 'store_name', $store_name ); update_user_meta( $vendor_id, 'wcfmmp_store_name', $store_name ); $wcfmmp_settings['store_name'] = $store_name; update_user_meta( $vendor_id, 'wcfmmp_profile_settings', $wcfmmp_settings ); $wpdb->query( "UPDATE {$wpdb->prefix}users SET user_nicename = '{$store_slug}' WHERE ID = $vendor_id" ); } }, 50, 2 ); add_filter( 'wcfm_is_allow_store_name', '__return_false' );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!May 1, 2020 at 11:27 pm in reply to: Map Disappears when filter option is selected on shop page #125528Sushobhan
KeymasterHello,
It’s a issue with the theme’s ajax filtering. It seems, the result is replacing the old DOM tree with the new one. See, when we disable shop page ajax filter from Urus >> Theme Options >> WooCommerce >> Shop Filters, it’s working fine.
We will need to check the theme’s implementation of this ajax call. For that I’ll require an FTP access. When sharing the access, please don’t forget to mark the reply as private.
Thank you!Sushobhan
KeymasterHello,
Sorry we make you feel that way. I can see you have a support thread unanswered for very long time. Somehow it fall through the cracks.
We will look into it and provide you a solution within next 24 hours.
Please be patient a while longer.
Thank You.Sushobhan
KeymasterAs I mentioned earlier, right now only import from csv is supported. Synchronizing from external API is possible but has to be custom coded.
Thank You!Sushobhan
KeymasterHi,
Are you using WCFM – Direct PayPal Pay plugin – https://wordpress.org/plugins/wc-frontend-manager-direct-paypal/? This plugin imposes a restriction that one order will contain products from only one vendor.
Let me know!
Sushobhan
KeymasterSorry! The code wasn’t working. It was redirecting you to that page and not logging you out. Here is the updated code-
add_filter( 'wcfm_logout_url', function( $logout_url ) { if ( wcfm_is_vendor() ) { return 'https://abaaexpress.com.ng/seller-login/'; } return $logout_url; } ); add_filter( 'woocommerce_get_endpoint_url', function($url, $endpoint, $value, $permalink) { if ( $permalink === 'https://abaaexpress.com.ng/seller-login/' ) { return add_query_arg( 'wcfm_logout', 'yes', $permalink ); } return $url; }, 10, 4 ); function redirect_page() { global $wp; if ( ! empty( $_REQUEST['wcfm_logout'] ) && ! empty( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( sanitize_key( $_REQUEST['_wpnonce'] ), 'customer-logout' ) ) { wp_safe_redirect( str_replace( '&', '&', wp_logout_url( esc_url_raw( 'https://abaaexpress.com.ng/seller-login/' ) ) ) ); exit; } } add_action( 'template_redirect', 'redirect_page' );This should be a one line code but due to a known bug in WooCommerce, we have to take this ugly route!
Let me know how it goes.
Thank You!Sushobhan
KeymasterOh! Sorry about that. I should have tested my code 🙁
Please use the following snippet instead.add_action( 'after_wcfm_products_manage', function() { ?> <script> jQuery( document ).ready( function ( $ ) { if ( $( '#wcfm_products_manage_form' ).length ) { setTimeout( function () { $form = $( '#wcfm_products_manage_form' ); $stock = $form.find( '.products_manage_inventory' ); group = [ $stock, $stock.next(), $stock.next().next() ]; $form.find( '.products_manage_linked' ).before(group); }, 0 ); } } ); </script> <?php } );Let me know how it goes.
Thank You!Sushobhan
KeymasterHello,
You’ll need to use Loco Translate https://wordpress.org/plugins/loco-translate/ for all translation purposes. This guide will help you getting started- https://localise.biz/wordpress/plugin/beginners
After activating the plugin go to Loco Translate >> Plugins and search for phrases in wc-frontend-manager and wc-multivendor-marketplace text doamin.
Thank You!Sushobhan
KeymasterHi,
I’m happy to tell you that, this feature is now supported in WCFM Delivery addon. Read more from here- https://docs.wclovers.com/delivery-time/
Thank You!May 1, 2020 at 12:21 am in reply to: Shop List Page: search through the shops PRODUCT titles #125197Sushobhan
KeymasterIt seems like a css issue. Kindly provide me your website url.
Thank You!Sushobhan
KeymasterThe function is correct. No data implies, that vendor doesn’t fill his/her location details.
Thank You!Sushobhan
KeymasterSorry I think I misunderstood your query, the first time.
Do you just want to change this text /store/ from vendor store url? You can change it from WCFM admin dashboard >> Settings >> Marketplace Settings >> Vendor Store URL.
Let me know if that helps!Sushobhan
KeymasterWell, that is the default payment flow of WCFM marketplace. When customer made a purchase the amount gets transferred to the admin account and then admin disburse vendors part of payment.
Though using our Paypal direct plugin https://wordpress.org/plugins/wc-frontend-manager-direct-paypal/ you can change this behavior and then it will send the entire amount to vendor.
Also, there are two split payment methods (Stripe and WireCard) by using which customer payment can be split and transferred to both vendor and the admin at the same time.
You can read more about the supported payment methods from here- https://docs.wclovers.com/vendor-payment/
Thank You!Sushobhan
KeymasterThank you. It means a lot to us! 🙂
Sushobhan
KeymasterHello,
We recommend every theme from our compatible theme page. Choose any of them. Most of them provides a lot of demos to serve different niche.
Thank You.Sushobhan
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 (if you haven’t already) 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