Forum Replies Created
- AuthorPosts
- Sarmistha ChakrabortyMember
Great!
Can we do so that “buy” and “sell” choice make required
>>Modify the HTML –<p>What do you want to do?</p> <input type="radio" id="buy" name="buysell" value="buy" <?php echo ($buysell_val == "buy") ? 'checked="checked"' : ''; ?> data-required="1" data-required_message="What do you want to do: This field is required."> <label for="buy">Buy</label> <input type="radio" id="sell" name="buysell" value="sell" <?php echo ($buysell_val == "sell") ? 'checked="checked"' : ''; ?> > <label for="sell">Sell</label><br>
Display in product list –
add_filter( 'wcfm_products_additonal_data_hidden', '__return_false' ); add_filter('wcfm_products_additonal_data',function($product_data,$product_id){ $product_data = get_post_meta($product_id,'_product_buysell',true); return $product_data; },10,2); add_filter('wcfm_products_additional_info_column_label',function($lbl){ return 'What do you want to do'; },10);
Thanks.
Sarmistha ChakrabortyMemberHello,
We have checked your site as a vendor, and we can add Multiple gallery images (PFA)
Please for different use create a different thread or post the issue in a related topic.
Thanks.
Attachments:
You must be logged in to view attached files.June 6, 2020 at 9:15 pm in reply to: How to change the text and remove/hide order field on booking section? #139110Sarmistha ChakrabortyMemberAdd the css –
.wcfm-dashboard-page table#wcfm-bookings th:nth-child(6), table#wcfm-bookings tbody tr td:nth-child(6) { display: none; }
Thanks.
Sarmistha ChakrabortyMemberHi,
Okay! understand.
This is not possible using code snippet.
It requires some custom development, and this will be a paid one.We can guide you, but it will need PHP knowledge for implementation.
Please check these file class-wcfmmp-shortcode.php(function name : wcfmmp_stores_shortcode) and “store-lists” folder files(under views) , here you can see how we have created this “[wcfm_stores]” shortcode, and follow the code to create your custom shortcode.Thank You
Sarmistha ChakrabortyMemberHello,
It’s not possible add another column here with code snippet.
You can also display “phone number” in this column(previously added column).Thanks!
Sarmistha ChakrabortyMemberHello,
add_action('begin_wcfm_products_manage_form',function(){ global $wp, $WCFM; $buysell_val = ''; $product_id = 0; if( isset( $wp->query_vars['wcfm-products-manage'] ) && !empty( $wp->query_vars['wcfm-products-manage'] ) ) { $product = wc_get_product( $wp->query_vars['wcfm-products-manage'] ); if( !is_a( $product, 'WC_Product' ) ) { wcfm_restriction_message_show( "Invalid Product" ); return; } // Fetching Product Data if($product && !empty($product)) { $product_id = $wp->query_vars['wcfm-products-manage']; $buysell_val = get_post_meta($product_id,'_product_buysell',true); } } ?> <p>What do you want to do?</p> <input type="radio" id="buy" name="buysell" value="buy" <?php echo ($buysell_val == "buy") ? 'checked="checked"' : ''; ?>> <label for="buy">Buy</label> <input type="radio" id="sell" name="buysell" value="sell" <?php echo ($buysell_val == "sell") ? 'checked="checked"' : ''; ?>> <label for="sell">Sell</label><br> <?php }); add_action( 'after_wcfm_products_manage_meta_save', 'fn_custom_product_data_save',10,2 ); function fn_custom_product_data_save($new_product_id, $wcfm_products_manage_form_data) { global $wpdb; //print_r($wcfm_products_manage_form_data);die; if(isset($wcfm_products_manage_form_data['buysell'])) { update_post_meta($new_product_id,'_product_buysell',$wcfm_products_manage_form_data['buysell']); } }
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.Sarmistha ChakrabortyMemberHello
I don’t understand, I haven’t changed anything
>>Again we checked your site, and we can see you have created too many “My account” page, then assign the wrong page in WooCoomerce “Account” page settings.
We have selected the correct “Account” page in WooCoomerce setting and now login is working correctly.Please be advised it’s very difficult for us to debug your site every day if you applied wrong settings every day.
Hope you understand.Thanks.
Sarmistha ChakrabortyMemberHi,
In this popup https://wclovers.com/wp-content/uploads/2020/06/vendorapplication.png , you can check the information, before Approve.
The vendor will not be approved before clicking the “Update” button.Thanks.
Sarmistha ChakrabortyMemberHello,
Add the condition –
if($wcfmvm_registration_custom_field_key == 'approvals') {}
Thanks.
June 5, 2020 at 10:25 pm in reply to: Where can I find user's subscription expiration date in database? #138889Sarmistha ChakrabortyMemberHello,
This is Timestamp.
printecho date("Y-m-d",1593475200);
Thanks.
Sarmistha ChakrabortyMemberHello,
The shortcode which you have written is not correct. May we know the purpose why you want to create another shortcode to display store lists, we have already “[wcfm_stores]” this shortcode which will display all store lists.
Thanks.
Sarmistha ChakrabortyMemberThis reply has been marked as private.Sarmistha ChakrabortyMemberHello,
To display the value you have to print/echo the variable.
Try this –global $WCFM, $WCFMmp, $wpdb; $vendor_id = $store_user->get_id(); $wcfmmp_addition_info_fields = wcfm_get_option( 'wcfmvm_registration_custom_fields', array() ); if( empty( $wcfmmp_addition_info_fields ) ) return; $has_addition_field = false; if( !empty( $wcfmmp_addition_info_fields ) ) { foreach( $wcfmmp_addition_info_fields as $wcfmvm_registration_custom_field ) { if( !isset( $wcfmvm_registration_custom_field['enable'] ) ) continue; if( !$wcfmvm_registration_custom_field['label'] ) continue; $has_addition_field = true; break; } } if( !$has_addition_field ) return; $wcfmvm_custom_infos = (array) get_user_meta( $vendor_id, 'wcfmvm_custom_infos', true ); if( !empty( $wcfmmp_addition_info_fields ) ) { foreach( $wcfmmp_addition_info_fields as $wcfmvm_registration_custom_field ) { if( !isset( $wcfmvm_registration_custom_field['enable'] ) ) continue; if( !$wcfmvm_registration_custom_field['label'] ) continue; $field_class = ''; $field_value = ''; $wcfmvm_registration_custom_field['name'] = sanitize_title( $wcfmvm_registration_custom_field['label'] ); $field_name = 'wcfmmp_additional_infos[' . $wcfmvm_registration_custom_field['name'] . ']'; $field_id = md5( $field_name ); $ufield_id = ''; if( !empty( $wcfmvm_custom_infos ) ) { if( $wcfmvm_registration_custom_field['type'] == 'upload' ) { $ufield_id = md5( 'wcfmvm_custom_infos[' . sanitize_title( $wcfmvm_registration_custom_field['label'] ) . ']' ); $field_value = isset( $wcfmvm_custom_infos[$ufield_id] ) ? $wcfmvm_custom_infos[$ufield_id] : ''; $field_value = wcfm_get_attachment_url($field_value); echo $field_value; } } } }
`
Thanks.
June 5, 2020 at 7:41 pm in reply to: How to change the text and remove/hide order field on booking section? #138830Sarmistha ChakrabortyMemberHello,
Please use “Loco translate” plugin for this.
Wordpress dashboard -> Loco translate -> plugins -> select plugin WCFM – WooCommerce Frontend Manager -> select site language -> search string “inquiry” -> change and save.
Ref : https://docs.wclovers.com/category/loco-translate/Thanks.
Sarmistha ChakrabortyMemberHello @cartindia-in
Please for different use create a different thread or post the issue in related topic.
You have provided only login credentials without site URL. Please check “Gallery limit” capability.Thanks.
Sarmistha ChakrabortyMemberHello,
You have mentioned you have write the shortcode.
To add a product custom field, our WCFM plugin has this feature in product tabs.
Admin WCFM dashboard -> Settings -> Product custom fieldsThanks.
Attachments:
You must be logged in to view attached files.Sarmistha ChakrabortyMemberHello,
Add “Custom field” in vendor’s registration, from WCFM dashboard -> settings -> vendor registration (https://wclovers.com/knowledgebase/wcfm-marketplace-vendor-registration/)
Then fetch the custom field value in wcfmmp-view-store-art-works.php template.
$wcfmvm_custom_infos = (array) get_user_meta( $vendor_id, 'wcfmvm_custom_infos', true );
Thanks.
Sarmistha ChakrabortyMemberThis reply has been marked as private.Sarmistha ChakrabortyMemberHello,
Please check here – https://wordpress.org/support/topic/custom-tab-in-vendor-store-page/ , you find how to add a custom tab in the vendor’s store page.
Thanks.
Sarmistha ChakrabortyMemberHello,
You do not need to edit the core plugin. In our plugin have many hooks/filter.
Add this code to your child theme’s functions.php, to add your custom data –
add_action('begin_wcfm_products_manage_form',function(){ echo 'add your custom text'; });
Thanks.
Sarmistha ChakrabortyMemberHello,
Try 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/
add_filter('wcfm_customer_user_role',function($role_arr){ $role_arr[] = 'wcfm_vendor'; return $role_arr; },15);
Thanks.
Sarmistha ChakrabortyMemberHello,
Sorry, but we didn’t found the “Page not found” in https://shop.heavymag.com.au/store/a-night-in-texas/ this page.
Please clear your site/browser cache and check.Thanks.
Sarmistha ChakrabortyMemberHello,
Regarding point 1.
WCFM control login redirect for vendor users.But if you don’t want that then just disable by adding this line of code –
add_filter( 'wcfm_is_allow_login_redirect', '__return_false' );
Regarding point 2.
WCFM dashboard page is a different template, it is not possible to open under My-Listing menu.Thanks.
Sarmistha ChakrabortyMemberHello,
Do you turn-off the “Single product multi-vendor” module option from WCFM dashboard -> settings -> Modules ?
Thanks.
Sarmistha ChakrabortyMemberHello,
Your issue not so clear to us, but it seems like this is a cache issue. Please clear your site cache then check.
Thanks.
- AuthorPosts