Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Custom Field
- This topic has 12 replies, 2 voices, and was last updated 4 years, 7 months ago by Ramamurthy Krishnan.
- AuthorPosts
- March 7, 2020 at 6:38 am #110358r_guayaquilParticipant
Hi,
Is there a way i can show the custom fields as image 1 attached in product page and quick view? Using flatsome
Image 2 is how is showing right now.
Thank you!
Attachments:
You must be logged in to view attached files. - March 10, 2020 at 9:47 pm #110998r_guayaquilParticipant
some help? 🙂
- March 13, 2020 at 5:49 pm #111447Ramamurthy KrishnanKeymaster
Hi,
Please share us the link, we will get back to you.
Thanks,
- March 13, 2020 at 5:58 pm #111449r_guayaquilParticipantThis reply has been marked as private.
- March 16, 2020 at 5:35 pm #111835Ramamurthy KrishnanKeymaster
Hi,
Please add the below css code in your theme’s style.css file:
.product .wcfm_custom_field_display .wcfm_custom_field_display_label { display: inline !important; }
Thanks,
- March 16, 2020 at 11:20 pm #111867r_guayaquilParticipant
Thanks!
- March 17, 2020 at 12:02 pm #111924Ramamurthy KrishnanKeymaster
Welcome 🙂
- March 28, 2020 at 10:31 pm #113727r_guayaquilParticipant
Hi,
I need to show the custom field after product price in the product detail page and wuick view. When i choose the visibility after product price in the settings, it shows them only in the product detail page, but not in the quick view. They disapper in the quick view.
Please help!
- March 30, 2020 at 12:52 pm #114013Ramamurthy KrishnanKeymaster
Hi,
Can you share your website login details with us? We need to check.
Please do share your website login credentials as private reply here.Thanks,
- April 1, 2020 at 3:16 am #114392r_guayaquilParticipantThis reply has been marked as private.
- April 2, 2020 at 6:01 pm #114717Ramamurthy KrishnanKeymaster
Hi,
The “after product price” visibility setting works for product details page only.
I’ve added the below code snippet ( named: Display product custom fields ) in your site to display the custom field values after price in quick view mode:add_filter( 'woocommerce_short_description', 'cus_woocommerce_short_description' ); function cus_woocommerce_short_description( $description ) { global $WCFM, $product, $post; $product_id = 0; $wcfm_custom_fields_values = ''; if ( is_object( $product ) && !is_product() ) { $product_id = $product->get_id(); $wcfm_product_custom_fields = get_option( 'wcfm_product_custom_fields', array() ); $wcfm_custom_fields_obj = new WCFMu_Custom_Field_Support(); 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; $display_data = $wcfm_custom_fields_obj->get_wcfm_custom_field_display_data( $product_id, $wcfm_product_custom_field ); $wcfm_custom_fields_values .= $display_data; } } } return $wcfm_custom_fields_values . $description; }
No need to add the code again as I’ve already added it to your site. Please check your site once.
Thanks,
- April 3, 2020 at 1:27 am #114879r_guayaquilParticipant
THANK YOU SO MUCH 🙂
- April 3, 2020 at 12:54 pm #115011Ramamurthy KrishnanKeymaster
You’re most welcome. 🙂
- AuthorPosts
- You must be logged in to reply to this topic.