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, 7 months ago by
WCFM Forum.
- AuthorPosts
- May 30, 2019 at 4:38 pm #65011
r_guayaquil
ParticipantHi,
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 #65062
r_guayaquil
ParticipantHi,
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 #65293
macnomo
ParticipantHola,
intenta nombrar >Agrupar Campos > por ejemplo: precio_final - May 31, 2019 at 8:45 pm #65294
WCFM Forum
MemberHI,
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 #65314
r_guayaquil
ParticipantThanks 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 #65400
WCFM Forum
MemberHi,
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 #65755
r_guayaquil
ParticipantHi,
I am using flatsome theme.
Thanks!
- June 4, 2019 at 8:55 am #65831
WCFM Forum
MemberOK, we will take care of this in next update.
- June 4, 2019 at 3:43 pm #65892
r_guayaquil
ParticipantHi,
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 #66054
WCFM Forum
MemberHI,
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 #66084
r_guayaquil
ParticipantHi,
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 #66254
WCFM Forum
MemberHi,
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 #66325
macnomo
ParticipantHi,
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 #66336
r_guayaquil
ParticipantHi,
Thanks for the code!Can you help me showing the 2 custom fields i mentioned?
Thanks!
- June 10, 2019 at 8:47 pm #66837
WCFM Forum
MemberHi,
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 #67010
r_guayaquil
ParticipantHi,
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 #67437
WCFM Forum
MemberHi,
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 #67468
r_guayaquil
ParticipantHi,
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 #68420
r_guayaquil
ParticipantHi,
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 #68928
WCFM Forum
MemberHi,
This setting is fine. I will give you code for this.
Thanks for the details.
- June 22, 2019 at 2:53 am #68985
r_guayaquil
ParticipantHi,
Thanks a lot!
- June 26, 2019 at 1:56 am #69676
r_guayaquil
ParticipantHi,
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 #69733
WCFM Forum
MemberHI,
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 #69792
r_guayaquil
ParticipantHi,
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 #69823
WCFM Forum
MemberHi,
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 #69829
r_guayaquil
ParticipantHi,
Can you please help me with the CSS!
Thanks for everything!
- June 27, 2019 at 4:40 am #69932
WCFM Forum
MemberHi,
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 #70599
r_guayaquil
ParticipantHi,
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 #70946
WCFM Forum
MemberHi,
Sorry, code for what ?
Custom fields are already visible at product quick view, right ?
Thank You
- July 4, 2019 at 3:19 pm #71078
r_guayaquil
ParticipantHi,
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 #71492
WCFM Forum
MemberPlease give me this page url.
- July 8, 2019 at 7:56 pm #71596
r_guayaquil
ParticipantHi,
What do you mean? You want the url of my website?
- July 13, 2019 at 6:30 am #72230
WCFM Forum
MemberHI,
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 #72231
WCFM Forum
MemberActually, I have to check which element you have used for setting up this page!
- July 14, 2019 at 8:22 pm #72477
r_guayaquil
ParticipantHi,
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 #72690
WCFM Forum
MemberHi,
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 #72695
r_guayaquil
ParticipantHi,
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 #72755
WCFM Forum
Member - July 17, 2019 at 3:54 pm #72859
r_guayaquil
ParticipantHi,
Thank you! ๐
- July 18, 2019 at 5:09 am #72917
r_guayaquil
ParticipantHi,
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 #72918
r_guayaquil
ParticipantI just figured it out how to do it.
Thanks ๐
- July 18, 2019 at 12:24 pm #72952
WCFM Forum
MemberGreat … thanks for the update ๐
- AuthorPosts
- You must be logged in to reply to this topic.