Forum Replies Created
- AuthorPosts
Sushobhan
KeymasterHi,
Thanks for getting in touch and sorry for any inconvenience caused.
Earlier the plugin checks for any new notifications every 1 min. But now we have disabled the feature by default. Please update to our latest version, v3.3.8 and this issue will be resolved.
Thanks!April 21, 2020 at 1:08 pm in reply to: Diable downloadable products and set virtual as default #121268Sushobhan
KeymasterHello,
Thanks for getting in touch with us.
To disable “Downloadable” products go to Capabilities menu from your WCFM Dashboard. From there uncheck “Downloadable” under Types. Refer to this- https://imgur.com/hn4eenB
Now to set Virtual as default use the following snippt-function wcfm_product_manage_fields_general_custom_virtual( $general_fields, $product_id ) { if( isset( $general_fields['is_virtual'] ) && ! $product_id ) { $general_fields['is_virtual']['dfvalue'] = 'enable'; } return $general_fields; } add_filter( 'wcfm_product_manage_fields_general', 'wcfm_product_manage_fields_general_custom_virtual', 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 it goes.
Thanks!Sushobhan
KeymasterYes that’s the add-on you will require. To know more about the added features visit here – https://wclovers.com/blog/why-woocommerce-frontend-manager-ultimate/
Thanks!April 20, 2020 at 10:13 pm in reply to: Add custom dropdown (with options) to Shipping tab on add product form. #121079Sushobhan
KeymasterHello,
Use the following snippet-function get_product_shipping_method( $attr ) { global $wcfm, $post; $product = ''; if ( ! empty( $attr['id'] ) ) { $product = wc_get_product( absint( $attr['id'] ) ); } if ( ! $product && is_product() ) { $product = wc_get_product(); } if ( ! $product ) return ''; $shipping_method = wcfm_get_post_meta( $product->get_id(), 'wcfm_custom_shipping_method' ); return $shipping_method ? 'Postage: ' . ucwords( str_replace( '_', ' ', $shipping_method ) ) : ''; } add_shortcode( 'shipping_method', 'get_product_shipping_method' );Usage –
[shipping_method] //inside a single product page
[shipping_method id=”PRODUCT_ID”] //anywhere in the websitelet me know how it goes.
Sushobhan
KeymasterHi,
The code snippet I provided already append a class “krafters-other-heading” with each attribute field label. So you can use that class to select these headings.
Thanks!April 20, 2020 at 9:50 pm in reply to: Integrate with WooCommerce Mobile App for Admin or Store Owners #121075Sushobhan
KeymasterHi,
Our vendor app is 100% free and always up to date with latest version of our plugin. Though white labeling is chargeable.
ThanksSushobhan
KeymasterHello,
Download link url box is part of our ultimate plugin. I didn’t realize, you don’t have WCFM Ultimate, until I go through your list of plugins.
Let me know if you have any other queries.
Thanks!Sushobhan
KeymasterPlease mention your website url as well. Thanks!
Sushobhan
KeymasterPlease never edit any core files. Never ever! You will end up loosing all the changes when you update the plugin. Also it’s a bad practice.
As I told you earlier “The right way” is to use appropriate hooks and filters. Please use the following snippet for your purpose-add_filter( 'product_simple_fields_attributes', function($attribute_fields) { if ( isset( $attribute_fields['attributes']['options']['is_visible'] ) ) { $attribute_fields['attributes']['options']['is_visible']['label'] = 'Visible on the product page <span>Would you like this attribute display on your products page for your customers to see?</span>'; $attribute_fields['attributes']['options']['is_visible']['label_class'] = $attribute_fields['attributes']['options']['is_visible']['label_class'] . ' krafters-other-heading'; } return $attribute_fields; } ); add_filter( 'wcfm_product_custom_attributes', function($attribute_fields) { foreach ( $attribute_fields as $attr_taxonomy => $data ) { if ( isset( $data['options']['is_visible'] ) ) { $attribute_fields[$attr_taxonomy]['options']['is_visible']['label'] = 'Visible on the product page <span>Would you like this attribute display on your products page for your customers to see?</span>'; $attribute_fields[$attr_taxonomy]['options']['is_visible']['label_class'] = $data['options']['is_visible']['label_class'] . ' krafters-other-heading'; } } return $attribute_fields; } );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/
Thanks!April 19, 2020 at 11:16 am in reply to: Add custom dropdown (with options) to Shipping tab on add product form. #120536Sushobhan
KeymasterSorry I didn’t get your requirement. There are many possibilities and you provide too little information. And the example you shared makes it more confusing (Postage: Royal Mail).
Our current code adds a dropdown field under Shipping tab. Now I can write a shortcode where you need to provide the product id and it will show the corresponding shipping method like this [postage product_id=”25″] //output a string value- Royal Mail/DPD /Other Courier
But if you want this field in dropdown and like to save the value, then it will not be possible. Because then it can be used anywhere in the website and thus we could not determine which saving hook we’ll use to save that data.
Please specify your requirements in more detail.
Thanks!Sushobhan
KeymasterThere is nothing wrong with the code. Though the Download tab template path is-
wc-frontend-manager\views\products-manager\wcfm-view-products-manage-tabs.php.
To debug this please share a temporary admin access of your site. Also don’t forget to mark the reply as Private.
Thanks!Sushobhan
KeymasterGlad you figure it out 🙂
Sushobhan
KeymasterHi,
Archiving seems more preferable approach than deletion. I’ll forward your suggestion to our Dev team.
Thank you!Sushobhan
KeymasterHi,
It seems like you need to modify your default server settings. Please change the following variables and try again-- post_max_size
- upload_max_filesize
- memory_limit
Here are some guides, how to do that –
https://www.cloudways.com/blog/increase-media-file-maximum-upload-size-in-wordpress/
https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/Let me know how it goes.
ThanksSushobhan
KeymasterHi,
You can use GEO my WP or MapPress for this purpose.
If you go with GEO my WP, then you might find our documentation on this, useful https://wclovers.com/knowledgebase/wcfm-geo-wp/. After that you will require to add a search form, as GEO my WP doesn’t work with your default store search. Follow this tutorial to get the idea – http://docsdep.geomywp.com/create-a-search-form/
Thanks!April 18, 2020 at 2:59 pm in reply to: Add custom dropdown (with options) to Shipping tab on add product form. #120282Sushobhan
KeymasterHello,
You can use the following snippet to add the shipping method field under shipping tab and saving that data in product meta-add_filter( 'wcfm_product_manage_fields_shipping', function($shipping_fields, $product_id) { if ( apply_filters( 'wcfm_is_allow_shipping', true ) ) { $shipping_method_options = array( 'royal_mail' => 'Royal Mail', 'dpd' => 'DPD', 'other' => 'Other Courier' ); $shipping_method = get_post_meta( $product_id, 'wcfm_custom_shipping_method', true ); $shipping_fields['wcfm_custom_shipping_method'] = array( 'label' => __( 'Shipping method', 'wc-frontend-manager' ), 'type' => 'select', 'options' => $shipping_method_options, 'class' => 'wcfm-select wcfm_ele simple variable booking', 'label_class' => 'wcfm_title', 'value' => $shipping_method ); } return $shipping_fields; }, 10, 2 ); add_action( 'after_wcfm_products_manage_meta_save', function( $product_id, $form_data ) { if ( apply_filters( 'wcfm_is_allow_shipping', true ) ) { if ( isset( $form_data['wcfm_custom_shipping_method'] ) ) { update_post_meta( $product_id, 'wcfm_custom_shipping_method', $form_data['wcfm_custom_shipping_method'] ); } } }, 150, 2 );there is another part of your query that involves showing this method under shipping cost. Now if there is more than 1 product in the cart and both have different method set, what you want to show then? Do you have a layout in mind?
Let me know.
Thanks!Sushobhan
KeymasterHello,
Sorry for the delay in response.
Normally, it is not needed to override a file. The first approach should be, using the hooks and filters to change a certain behavior. Having said that, there might be situations where template override is required.
Please provide me details about your requirement and I’ll be happy to help you out. Also, a snapshot, marking your requirements would be very helpful.
ThanksSushobhan
KeymasterHi,
What you want to achieve with this snippet? Your wrote “They suddenly stopped working”, how was it working before? Did you change anything or update plugin/WP version?
The snippet doesn’t seem right to me. Please tell me in detail what is your actual requirement. Then only, I might be able to help you out.
Thanks!Sushobhan
KeymasterHello,
Thanks for getting in touch.
From what I have understood, you just want a link/menu/button in your vendor dashboard which will take them to some other url. Now I have a couple of questions-
1. Is it a static link or dynamic? Means, will it be different for each vendor?
2. What will be purpose of vendor store page on your site?
By default, the store logo (at the top left of vendor dashboard) is linked with vendor store page. Now we can change that url easily according to our need. That is one way of achieving what you want.
Let me know.
Thanks!April 18, 2020 at 1:01 pm in reply to: **URGENT/SITE CRASHING** Need help with AJAX calls/FrontEndManager #120268Sushobhan
KeymasterHello,
Please update to our latest version, v3.3.8, there it is disabled by default.
Thanks!April 18, 2020 at 10:04 am in reply to: Integrate with WooCommerce Mobile App for Admin or Store Owners #120249Sushobhan
KeymasterHi,
Thank you for writing to us!
We already have an app for the store vendors. You can learn more about this from here- https://wcfm.app/. The free version of the app is in play store as well- https://play.google.com/store/apps/details?id=com.wcfmapp&hl=en
Thanks!Sushobhan
KeymasterHi,
We have some plans to update the dashboard UI in near future. We will definitely consider your suggestion.
Thanks!Sushobhan
KeymasterHi,
Customer doesn’t have the capability to delete an inquiry. Only vendor or admin can do it.
Thanks!Sushobhan
KeymasterHi,
Thanks for getting in touch and sorry for any inconvenience caused.
Please check at wp-admin -> WooCommerce -> Status -> Logs -> fatal_erros log -> is any error generated? Also check in Google Chrome Browser console, is there any JavaScript error happening to the site or not! (What is browser console – https://support.airtable.com/hc/en-us/articles/232313848-How-to-open-the-developer-console)
Let me know how it goes.
Thanks!Sushobhan
KeymasterHi,
Can you test it with bare minimum setup, just WooCommerce and WCFM plugins, and see if the problem persists? You can also try switching your theme. By this way, we can isolate the problem and once we know the cause then we will guide you accordingly.
Thanks!- AuthorPosts