Forum Replies Created
- AuthorPosts
- March 4, 2020 at 1:07 pm in reply to: Remove the virtual and downloadable product check boxes #109843
Sushobhan
KeymasterHello,
You can disable these two checkboxes(virtual, downloadable) from Admin dashboard >> Capability under Types disable Virtual and Downloadable option.
Ref – https://ibb.co/wJzC6Gz
Thanks!March 2, 2020 at 6:14 pm in reply to: Allow vendors to sync their seller products from their own e-commerce store #109564Sushobhan
KeymasterHello,
There is no ready made solution. Now a days almost every platform provides an API to communicate with that platform. But, then you need to custom code that.
If you are interested then please contact us here – [[Customization]]
Thanks!Sushobhan
KeymasterHello
Well, Admin as owner of the site enjoys unrestricted capability so he/she can publish products of vendors even if they used their full quota of products.
In second case, your vendor can publish that one additional product only when they delete the additional drafted products.
Thanks!Sushobhan
KeymasterHello,
There are few problem with this code.wcfm_capability_settings_fields_product_typesfilter passes 3 arguments$product_types, $handler = 'wcfm_capability_options', $wcfm_capability_options = array(). For shop managers the $handler value will be ‘wcfm_shop_manager_capability_options’. So if your function accepts 3 arguments, instead of 2, you will get the capability options array from there and there is no need to call get_option() for that.wcfm_product_typesfilter on the other hand passes only one argument $product_types array. If you want to check this for shop managers you should check the current user type at top of your function. Also the lastif-elseifblock is wrong. It must be allifchecks.
Thanks!Sushobhan
KeymasterHi,
Your code for adding a custom type is not fully complete and it doesn’t have support for downloadable and virtual types. You can check that from backend, where if you choose your ‘Custom Type’ both the download and virtual option got disappeared.
But, as you are using WCFM frontend, you were able to send downloadable related data. Right now downloadable data is getting saved. But you need to add two more functions to retrieve that data. Please note, here I use product type name as ‘custom_type’ which is preferred over ‘Custom Type’ (array key name).function custom_type_downloadable_support($fields, $product_id, $product_type) { if($product_type == 'custom_type') { $is_downloadable = ( get_post_meta( $product_id, '_downloadable', true) == 'yes' ) ? 'enable' : ''; $fields["is_downloadable"]['dfvalue'] = $is_downloadable; } return $fields; } add_filter( 'wcfm_product_manage_fields_general', 'custom_type_downloadable_support', 10, 3 ); function custom_type_downloadable_tab_data($fields, $product_id, $product_type ) { if($product_type == 'custom_type') { $is_downloadable = ( get_post_meta( $product_id, '_downloadable', true) == 'yes' ) ? 'enable' : ''; if($is_downloadable == 'enable') { $downloadable_files = (array) get_post_meta( $product_id, '_downloadable_files', true); $download_limit = ( -1 == get_post_meta( $product_id, '_download_limit', true) ) ? '' : get_post_meta( $product_id, '_download_limit', true); $download_expiry = ( -1 == get_post_meta( $product_id, '_download_expiry', true) ) ? '' : get_post_meta( $product_id, '_download_expiry', true); } $fields["downloadable_files"]['value'] = $downloadable_files; $fields["download_limit"]['value'] = $download_limit; $fields["download_expiry"]['value'] = $download_expiry; } return $fields; } add_filter( 'wcfm_product_fields_downloadable', 'custom_type_downloadable_tab_data', 10, 3 );Thanks
Sushobhan
KeymasterHello,
I tried and it worked perfectly. First I logged in as vendor and exported 14 of the existing products to create my import file. Then, I delete those 14 products and imported again. The result is as expected; all the products gets imported with pending status assigned to them.
You can check that by logging in to your vendor account.
Thanks!Sushobhan
KeymasterHello,
If the emails get logged means the emails are firing. Now there may be 2 reasons for the failure of email delivery-
1. Emails are going in spam folder
2. Your email server is not sending the emails.
To get some more insights on this, are you getting emails firing from WooCommerce (Order related emails)? Please check if using any SMTP plugin solves this issue. Give this tutorial a try and let me know how it goes – https://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-not-sending-email-issue/
Thanks!Sushobhan
KeymasterHello,
Have you done any modifications? Our plugin doesn’t add any button disable code. Check the it here from our demo – https://wcfmmp.wcfmdemos.com/product/abcd-3/
Thanks!Sushobhan
KeymasterHello,
Sorry but I couldn’t replicate the issue from my end. It’s working exactly like I explained in my last reply.
Please provide me a temporary access of your site (admin & vendor). Also, don’t forget to mark it as private.
Thanks!Sushobhan
KeymasterHello,
That is part of our ultimate plugin.
ThanksSushobhan
KeymasterHello,
Sorry you are facing this trouble. Please check, if you are facing the same trouble while in incognito mode.
Now, to check your issue, I’ll require the product link.
Thanks!Sushobhan
KeymasterHi,
Please keep install this plugin to your site and be sure emails are triggered from your site or not!
https://wordpress.org/plugins/wp-mail-logging/
Thank You
Sushobhan
KeymasterHello,
Didn’t get your last reply. Please tell me in details how you want to set your accommodation products? Or send me your product link and tell me what different behavior you want to achieve from it?
Thanks!Sushobhan
KeymasterHello,
Thanks for reporting the issue. We will fix that in our future updates.
RegardsSushobhan
KeymasterHi,
Please check this with only WooCommerce and WCFM plugins with all other plugins disabled. Also check it with a fresh theme OceanWP, Storefront etc.
If the problem persists send me one temporary access of your wp-admin account and FTP. Don’t forget to mark your reply as private.
Thanks!Sushobhan
KeymasterHello,
Thanks for getting in touch.
By ‘custom product type’ what product type do you mean and it is coming from which plugin?
Let me know.
Thanks!Sushobhan
KeymasterHello,
It is a custom function that I wrote for you 🙂
If there is anything else, you can let me know.
Thanks!Sushobhan
KeymasterHello,
Thanks for getting in touch.
Have you customized some functions related to bookings? Especially ‘wcfm_wcbokings_availability_fields’ this filter?
Let me know.
Thanks!Sushobhan
KeymasterHi,
Thanks for getting in touch.
You can use the following snippet to do that. You can use the shortcode like this[wcfm_vendor_count]or[wcfm_vendor_count status="active/inactive/all"], if you don’t pass status attribute it will show count of active vendors only.function wcfm_vendor_count_shortcode( $attr ) { $status = 'active'; $result = count_users(); $avail_roles = array_merge( array( 'wcfm_vendor' => 0, 'disable_vendor' => 0 ), $result['avail_roles'] ); if ( isset( $attr['status'] ) && in_array( $attr['status'], array('all', 'active', 'inactive') ) ) $status = $attr['status']; if($status === 'inactive') return absint( $avail_roles['disable_vendor'] ); if($status === 'all') return absint( $avail_roles['wcfm_vendor'] ) + absint( $avail_roles['disable_vendor'] ); return absint( $avail_roles['wcfm_vendor'] ); } add_shortcode( 'wcfm_vendor_count', 'wcfm_vendor_count_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/
Let me know how it goes.
Sushobhan
KeymasterHello,
Thanks for getting in touch.
If the checkbox is a required field then it shouldn’t let you submit the form. Can you please send me a snapshot or screen recording of the issue.
ThanksSushobhan
KeymasterHello,
WooCommerce Accommodation Bookings is simply an extension of WooCommerce Bookings plugin. So all the booking settings remains the same.
Thanks!Sushobhan
KeymasterHello,
The code snippet shared above find and replaces any occurrence of Boys with Team. In your screenshots it is mentioned as Boy not Boys, so those didn’t change. Please try the modified version of the snippet as below-function wcfm_custom_2008_translate_text( $translated ) { $translated = str_ireplace( array('Boys', 'Boy'), 'Team', $translated ); return $translated; } add_filter('gettext', 'wcfm_custom_2008_translate_text'); add_filter('ngettext', 'wcfm_custom_2008_translate_text');Thanks!
Sushobhan
KeymasterHello Craig,
We are planning to add more muscle to our country based shipping module. As of now one can add different states and assign a shipping price for it.
In our future release, we will introduce postcode (multiple) under states. So say under “British Columbia” you can create multiple postcode based rules and set up different shipping price for each postcode region. I think this will resolve what you want to achieve via “Zone based” shipping.
Thanks!Sushobhan
KeymasterHi,
Please refer to this link https://docs.woocommerce.com/document/change-price-booking-based-on-duration-stay/
Thanks!Sushobhan
KeymasterHello,
Sorry for the delay.
Please go to Membership Settings page from Admin dashboard >> Memberships and Clicking on the Gear icon. There under General tab you need to set the Subscription First Step value to Registration. Now use your membership plan page for vendor registration and you are good to go!
Let me know how it goes. Thanks! - AuthorPosts