Custom Field

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 12 reply threads
  • Author
    Posts
    • #110358
      r_guayaquil
      Participant

      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.
    • #110998
      r_guayaquil
      Participant

      some help? 🙂

    • #111447

      Hi,

      Please share us the link, we will get back to you.

      Thanks,

    • #111449
      r_guayaquil
      Participant
      This reply has been marked as private.
    • #111835

      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,

    • #111867
      r_guayaquil
      Participant

      Thanks!

    • #111924

      Welcome 🙂

    • #113727
      r_guayaquil
      Participant

      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!

    • #114013

      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,

    • #114392
      r_guayaquil
      Participant
      This reply has been marked as private.
    • #114717

      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,

    • #114879
      r_guayaquil
      Participant

      THANK YOU SO MUCH 🙂

    • #115011

      You’re most welcome. 🙂

Viewing 12 reply threads
  • You must be logged in to reply to this topic.