Forum Replies Created
- AuthorPosts
Sushobhan
KeymasterUse the following snippet to do that.
add_filter( 'wcfm_is_pref_enquiry_button', '__return_false' ); function my_wcfm_enquiry_button() { echo do_shortcode('[wcfm_enquiry]'); } add_action( 'woocommerce_single_product_summary', 'my_wcfm_enquiry_button', 35 );Thanks!
November 22, 2019 at 9:28 pm in reply to: how to prevent use of spam mails during registration #93475Sushobhan
KeymasterLet 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.Sushobhan
KeymasterThis reply has been marked as private.Sushobhan
KeymasterThis reply has been marked as private.Sushobhan
KeymasterPlease give me a snapshot of the issue.
November 20, 2019 at 4:54 pm in reply to: The Catalog visibility is not working on single product multiple vendor settings #93118Sushobhan
KeymasterAre you using WooCommerce Product Search or default WordPress search? Setting up the product’s ‘Catalog visibility’ as ‘Shop only’ is the right thing to do here. Please ensure using WooCommerce Product Search widget.
November 20, 2019 at 4:11 pm in reply to: Hide "Preview" button for vendors only. Keep it available to admin. #93115Sushobhan
KeymasterHi,
The hook is correct, all you need is to additionally check for the vendor role.function disallow_vendor_product_preview($cap) { if(wcfm_is_vendor()) return false; return $cap; } add_filter( 'wcfm_is_allow_product_preview', 'disallow_vendor_product_preview' );Let me know if there’s anything else we can help you with.
November 20, 2019 at 3:09 pm in reply to: Disable edit on existing product in the "Edit Product" form. #93107Sushobhan
KeymasterIf you want, you can uncheck ‘Edit Live Products’ capability of the vendor. This will stop vendors to edit their existing products. But if you want to selectively disallow editing for certain fields then you need to custom code that.
Sushobhan
KeymasterThat’s great. Let me know if there’s anything else we can help you with.
November 20, 2019 at 12:43 pm in reply to: SHOW THE CREATE DATE AND YEAR OF THE VENDOR IN VENDOR PROFILE PAGE #93083Sushobhan
Keymastertry using the following code –
function vendor_registration_date_shortcode( $attr ) { global $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 ) return; $register_on = abs( get_user_meta( $store_id, 'wcfm_register_on', true ) ); $today = strtotime( "now" ); $diff = abs( $today - $register_on ); $years = floor( $diff / (365 * 24 * 60 * 60) ); $months = floor( ($diff - $years * 365 * 24 * 60 * 60) / (30 * 24 * 60 * 60) ); $days = floor( ($diff - $years * 365 * 24 * 60 * 60 - $months * 30 * 24 * 60 * 60) / (24 * 60 * 60) ); $total_duration = ''; if ( $years || $months || $days ) { if ( $years ) $total_duration .= sprintf( _n( '%s year ', '%s years ', $years ), $years ); if ( $months ) $total_duration .= sprintf( _n( '%s month ', '%s months ', $months ), $months ); if ( $days ) $total_duration .= sprintf( _n( '%s day ', '%s days ', $days ), $days ); return sprintf( 'Joined %sago', $total_duration ); } return 'Joined Today'; } // register shortcode add_shortcode( 'vendor_registration_date', 'vendor_registration_date_shortcode' );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/In the Elementor code block use the following shortcode –
[vendor_registration_date id=”]November 20, 2019 at 10:54 am in reply to: Chat module that doesnt rely on TalkJS (it's pricing is insane) #93066Sushobhan
KeymasterHi @tahitibora1, Thanks for showing your interest. We will prioritize this in coming days. As of now, you can use the existing TalkJS version.
Sushobhan
KeymasterThis reply has been marked as private.November 19, 2019 at 5:16 pm in reply to: SHOW THE CREATE DATE AND YEAR OF THE VENDOR IN VENDOR PROFILE PAGE #92963Sushobhan
KeymasterYou cannot add PHP code to Elementor, as it is not supported. Instead you can use shortcodes, there is an Elementor block for that. Use the following shortcode to get your desired result –
[wcfm_store_info id='' data='register_on']Sushobhan
KeymasterThis reply has been marked as private.November 19, 2019 at 2:59 pm in reply to: Chat module that doesnt rely on TalkJS (it's pricing is insane) #92943Sushobhan
KeymasterHi,
Yes it is definitely in our to-do list. Though, for last couple of months it does not get enough attention due to our other commitments and priorities. We will resume this as soon as possible. As of now, sharing a timeline would be difficult.
ThanksNovember 19, 2019 at 2:21 pm in reply to: How to show store info & banner on single product page? #92933Sushobhan
KeymasterHello,
The code you are using is fine. All you need is to specify attributes of the shortcode, id and data. Now as per the documentation if you use this shortcode in store sidebar then it will automatically get current store id and you may just leave this parameter, which is not the case here. You are using this in single product page. So here you need to specify the vendor id. In data attribute you can use any of the following types –
store_name, store_url, store_address, store_email, store_phone, store_gravatar, store_banner, store_support, store_social, store_location, store_ratingTake a look at the modified code snippet-
add_action( 'woocommerce_before_single_product', 'wc_print_storeinfo', 10 ); function wc_print_storeinfo() { global $product, $WCFM; $id = $product->get_id(); $vendor_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $id ); echo do_shortcode( "[wcfm_store_info id='".$vendor_id."' data='store_email']" ); }Thanks
November 19, 2019 at 1:15 pm in reply to: SHOW THE CREATE DATE AND YEAR OF THE VENDOR IN VENDOR PROFILE PAGE #92920Sushobhan
KeymasterAt first you need to tell me where you want to show this information. Share me the vendor profile image after marking your the position. Based on that I can suggest you the appropriate hook or filter name. In that function body you will need to add those two lines.
Sushobhan
KeymasterAre you using any 3rd party shipping plugin here? If that is the case, please disable it and then check it.
Sushobhan
KeymasterThis reply has been marked as private.Sushobhan
KeymasterLive chat module is only for customer-vendor chat. There is no separate option for vendor-vendor chat. You can continue using the same chat for vendor-vendor purpose but then vendors can’t differentiate between chats with customers and with fellow vendors. Restricting the module only for vendors (via custom coding) will stop customer-vendor chat option.
If you want a separate channel for your vendors to communicate much like a forum/one-to-one chat, then you might need to hire someone and custom code it. Alternatively, you can also contact us here for the purpose – https://wclovers.com/woocommerce-multivendor-customization/
Thanks
Sushobhan
KeymasterThis reply has been marked as private.Sushobhan
KeymasterIn that case, please provide me a demo access to further debug this. Also don’t forget to mark this as private.
Sushobhan
KeymasterThe easiest way to do this if your hosting supports that. Many hosting company like ‘WP Engine’ provides one-click staging tool. Just talk to your hosting company, they can guide you better on this.
Also, there are several plugins out there like WP Staging https://wordpress.org/plugins/wp-staging/. Though, we haven’t tested this plugin from our side.
Sushobhan
KeymasterHi,
Can you please confirm you are getting “Chat Box” menu under your admin settings page (ref – https://ibb.co/dbVN1w2).
ThanksSushobhan
KeymasterWhich email subject and body you want to change? There are a lot of them. Last time you asked about “Shipment Tracking” email and I told you the template path, are you referring to any other emails?
To debug the 2nd issue I’ll need your site address. Later, I might need backend access as well.
Thanks
- AuthorPosts

