Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Add custom fields
- This topic has 41 replies, 3 voices, and was last updated 5 years, 4 months ago by WCFM Forum.
- AuthorPosts
- May 30, 2019 at 4:38 pm #65011r_guayaquilParticipant
Hi,
I just bought the ultimate version. I was trying to add some costum fields reviewing the documentation.
But when i go to add nuew productthis is what i get. image attached.
Also, how can i change the text in the emails a vendor recieves when they register.
Please help!
Attachments:
You must be logged in to view attached files. - May 30, 2019 at 9:17 pm #65062r_guayaquilParticipant
Hi,
The info doesnt show in the product detail page. Am i doing somwthing wrong? Also, i would like to show the custom fields not only in the product page.
Please see the images attached.
Thank you!
Attachments:
You must be logged in to view attached files. - May 31, 2019 at 8:42 pm #65293macnomoParticipant
Hola,
intenta nombrar >Agrupar Campos > por ejemplo: precio_final - May 31, 2019 at 8:45 pm #65294WCFM ForumMember
HI,
Field Name and Group Name is not right.
Those are only for storing fields in database. Do not use any special character or space in those.
You may specify any type “Label”.
Set names like this – https://ibb.co/Dk1c36k
Thank You
- May 31, 2019 at 9:33 pm #65314r_guayaquilParticipant
Thanks for the help!
Is there a way i can show the custom fields in the quick view of the product?
- June 1, 2019 at 9:16 am #65400WCFM ForumMember
Hi,
It’s possible to show up, but depend upon theme’s quick view template.
Which theme you are using for the site, we will take a look at it!
Thank You
- June 3, 2019 at 3:39 pm #65755r_guayaquilParticipant
Hi,
I am using flatsome theme.
Thanks!
- June 4, 2019 at 8:55 am #65831WCFM ForumMember
OK, we will take care of this in next update.
- June 4, 2019 at 3:43 pm #65892r_guayaquilParticipant
Hi,
Thanks for the help! If it is not too much to ask, can you also make the update to show the custom fields as the image attached.
I would really appreciate it.
Thank you!
Attachments:
You must be logged in to view attached files. - June 5, 2019 at 6:24 pm #66054WCFM ForumMember
HI,
Well, we do not want to add this in core.
If you want, I can help you in this.
Between, how many custom fields you have? Do you want to show all of them here!
Thank You
- June 5, 2019 at 7:00 pm #66084r_guayaquilParticipant
Hi,
I have in total 4 custom fields, but i only want 2 of them to show there. I would like to show how the image attached looks like.
Also, how can i get rid of the vendors logo in that section?
Thank you so much!
Attachments:
You must be logged in to view attached files. - June 6, 2019 at 6:24 pm #66254WCFM ForumMember
Hi,
Please add this line of code to your site for the purpose –
add_filter( 'wcfmmp_is_allow_sold_by_logo', '__return_false' );
Thank You
- June 7, 2019 at 1:03 am #66325macnomoParticipant
Hi,
I was about to ask for something similar.
I will like not to show the Field’s name on product page, because we already have a Tag for that field to show, in my case is the shipping methode i want to show and that is like duplicatting the info. Redundan!
Name of field should be only shown/visible to vendor in vendor’s panel, not on product page.
Attachments:
You must be logged in to view attached files. - June 7, 2019 at 2:11 am #66336r_guayaquilParticipant
Hi,
Thanks for the code!Can you help me showing the 2 custom fields i mentioned?
Thanks!
- June 10, 2019 at 8:47 pm #66837WCFM ForumMember
Hi,
Please show me your custom fields screenshot and know me which 2 fields you want to show.
Thank You
- June 11, 2019 at 4:16 pm #67010r_guayaquilParticipant
Hi,
i attached the screenshot. The 2 fields i want to show are “Precio con envรญo” and “Tiempo de entrega”
Also, as macocifuentes said above, how can i not show the block name of the fields as it is redundant.
Thank you!
Attachments:
You must be logged in to view attached files. - June 13, 2019 at 7:08 pm #67437WCFM ForumMember
Hi,
Thanks, please send me these two fields names and group name you have added there.
Between, you are using “Flatsome” theme, right?
Thank You
- June 13, 2019 at 8:14 pm #67468r_guayaquilParticipant
Hi,
The 2 field names are:
– Precio_con_envio
– Tiempo_de_entregaGroup name:
– datos_adicionalesYes, i am using the flatsome theme.
Thank you!
- June 18, 2019 at 4:36 pm #68420r_guayaquilParticipant
Hi,
In another topic i started you guys told me not to create custom fields as group but as simple. https://wclovers.com/forums/topic/add-costum-fields-using-a-csv-file/#post-68416
I dont know if thi is going to cause any trouble with you guys helping with the things i need help with mentioned above.
This is what i have:
Block name: Datos Adicionales
Fields as Group: Unchecked
Fields:
Precio_con_envio
Tiempo_de_entrega
Formas_de_pago
GarantรญaThanks you guys for the help!
- June 21, 2019 at 6:33 pm #68928WCFM ForumMember
Hi,
This setting is fine. I will give you code for this.
Thanks for the details.
- June 22, 2019 at 2:53 am #68985r_guayaquilParticipant
Hi,
Thanks a lot!
- June 26, 2019 at 1:56 am #69676r_guayaquilParticipant
Hi,
In the last update did you add the feature to show the custom fields in the quick view?
Also, in the quick view also appears two times the name of the vendor. Please image 1
I am using flatsome.
Thanks!
Attachments:
You must be logged in to view attached files. - June 26, 2019 at 12:32 pm #69733WCFM ForumMember
HI,
Please keep custom visibility setting => “Before Product Meta” or “After Product Meta” – https://ibb.co/BB5CF31
It will be visible in Quick View as well.
Also, in the quick view also appears two times the name of the vendor. Please image 1
– We have resolved this in WCFM Marketplace 3.1.1Thank You
- June 26, 2019 at 3:32 pm #69792r_guayaquilParticipant
Hi,
Thanks for the help!Is there a way i can increase the size of the text in the cutom fields. right now the text es very small.
Also, you helped with a code to hide the logo of the vendor, but can you please help to hide the “Store” text?
Thank you!
Attachments:
You must be logged in to view attached files. - June 26, 2019 at 4:33 pm #69823WCFM ForumMember
Hi,
Well, you can increase display size easily using CSS. Can you do this, or I will give you CSS for this?
Also, you helped with a code to hide the logo of the vendor, but can you please help to hide the โStoreโ text?
– Add this line –
add_filter( 'wcfmmp_is_allow_sold_by_label', '__return_false' );
Thank You
- June 26, 2019 at 4:44 pm #69829r_guayaquilParticipant
Hi,
Can you please help me with the CSS!
Thanks for everything!
- June 27, 2019 at 4:40 am #69932WCFM ForumMember
Hi,
You are welcome ๐
Please use this CSS –
.product-lightbox-inner .product_meta .wcfm_custom_field_display { font-size: 1.3em; }
Thank You
- July 1, 2019 at 6:29 pm #70599r_guayaquilParticipant
Hi,
This setting is fine. I will give you code for this.
Please dont forget to help me qith the code.
Thanks ๐
- July 4, 2019 at 5:37 am #70946WCFM ForumMember
Hi,
Sorry, code for what ?
Custom fields are already visible at product quick view, right ?
Thank You
- July 4, 2019 at 3:19 pm #71078r_guayaquilParticipant
Hi,
Yes, they are visible in the quick view, but you also said you were going to help with a code to show custom fields as image attached.
I have 4 in total but I only want to show 2 custom fields:
Precio_con_envio
Tiempo_de_entregaThanks for the help!
Attachments:
You must be logged in to view attached files. - July 8, 2019 at 6:38 am #71492WCFM ForumMember
Please give me this page url.
- July 8, 2019 at 7:56 pm #71596r_guayaquilParticipant
Hi,
What do you mean? You want the url of my website?
- July 13, 2019 at 6:30 am #72230WCFM ForumMember
HI,
https://wclovers.com/wp-content/uploads/2019/07/Sin-t%C3%ADtulo.jpg – which page is this? Home page or shop page? I need this page URL.
Thank You
- July 13, 2019 at 6:30 am #72231WCFM ForumMember
Actually, I have to check which element you have used for setting up this page!
- July 14, 2019 at 8:22 pm #72477r_guayaquilParticipant
Hi,
I want to show in the home page and shop page. Here are the links.
https://www.todomerca.ec/
https://www.todomerca.ec/tienda/Thanks!
- July 16, 2019 at 4:21 pm #72690WCFM ForumMember
Hi,
Here is your code for the purpose –
add_action('woocommerce_after_shop_loop_item_title', function() { global $WCFM, $WCFMmp, $product; if( !$product ) return; $product_id = $product->get_id(); if( $product_id ) { $wcfm_product_custom_fields = get_option( 'wcfm_product_custom_fields', array() ); if( $wcfm_product_custom_fields && is_array( $wcfm_product_custom_fields ) && !empty( $wcfm_product_custom_fields ) ) { foreach( $wcfm_product_custom_fields as $wpcf_index => $wcfm_product_custom_field ) { if( !isset( $wcfm_product_custom_field['enable'] ) ) continue; $block_name = !empty( $wcfm_product_custom_field['block_name'] ) ? $wcfm_product_custom_field['block_name'] : ''; $wcfm_product_custom_block_fields = $wcfm_product_custom_field['wcfm_product_custom_block_fields']; $display_data = ''; foreach( $wcfm_product_custom_block_fields as $wcfm_product_custom_block_field ) { if( !$wcfm_product_custom_block_field['name'] ) continue; $field_name = $wcfm_product_custom_block_field['name']; if( !in_array( $field_name, array( 'Precio_con_envio', 'Tiempo_de_entrega' ) ) ) continue; $field_value = get_post_meta( $product_id, $field_name, true ); if( $field_value ) { $display_data .= "<label class='wcfm_custom_field_display_label' style='display:inline-block;'>" . wcfm_removeslashes( __( $wcfm_product_custom_block_field['label'], 'wc-frontend-manager') ) . ": </label>"; $display_data .= "<span class='wcfm_custom_field_display_value'>" . $field_value . "</span><br />"; } } if( $display_data ) { echo '<div class="wcfm_custom_field_display wcfm_custom_field_display_'.sanitize_title($block_name).'">'; echo $display_data; echo '</div><div class="wcfm-clearfix"></div><br />'; } } } } }, 45 );
Thank You
- July 16, 2019 at 4:51 pm #72695r_guayaquilParticipant
Hi,
Thanks a lot! You guys are THE BEST ๐
I dont know how to code and sorry to bother you a lot, but how can i get rid of th space between the custom field “Tiempo de Entrega” and the vendors name?
Attachments:
You must be logged in to view attached files. - July 17, 2019 at 5:52 am #72755WCFM ForumMember
- July 17, 2019 at 3:54 pm #72859r_guayaquilParticipant
Hi,
Thank you! ๐
- July 18, 2019 at 5:09 am #72917r_guayaquilParticipant
Hi,
You helped me with the following code to increase the size text of the custom fields in the quick view:
.product-lightbox-inner .product_meta .wcfm_custom_field_display {
font-size: 1.3em;
}Can you also help me to increase it in the product detail page?
Thank you!
- July 18, 2019 at 5:19 am #72918r_guayaquilParticipant
I just figured it out how to do it.
Thanks ๐
- July 18, 2019 at 12:24 pm #72952WCFM ForumMember
Great … thanks for the update ๐
- AuthorPosts
- You must be logged in to reply to this topic.