WC Lovers

WooCommerce Frontend Manager - Multivendor marketplace vendor dashboard

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!

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Change checkbox display on single product page #97545
    cartaclaudio
    Participant

    Thanks this works great like this

    add_filter( 'wcfm_custom_field_value', function( $field_value, $field_name, $product_id, $field_type ) {
    	if( $field_type == 'checkbox' ) {
    		if( $field_value == 'no' ) {
    			add_filter( 'wcfm_is_allow_custom_field_display_by_icon', '__return_false' );
    			$field_value = '';
    		} else {
    			if( $field_name == 'explicit' ) {
    				add_filter( 'wcfm_is_allow_custom_field_display_by_icon', '__return_false' );
    				$field_value = '<img src="http://XXXXXXX/wp-content/themes/themify-music-child/images/explicit.png" width="64px" />';
    			}else {
    				$field_value = get_post_meta( $product_id, $field_name.'_checkbox', true );		
    			}
    		}
    	}
    	return $field_value;
    }, 50, 4 );
    

    is there a filter I can use to hide the checkboxes name from appearing in a label?

    in reply to: Change checkbox display on single product page #93283
    cartaclaudio
    Participant

    Hi,

    I have been testing a playing around with this one, however it does not work. When the field_value is ” its returning everything as checked instead of hiding the value.

    in reply to: Change checkbox display on single product page #89011
    cartaclaudio
    Participant

    Hi,

    I have added this code to functions.php, the function is getting in but when the field_values are no(tested by var_dump) they are still producing the checkbox post meta.

    in reply to: Stores Page to filter to show only stores you follow #89010
    cartaclaudio
    Participant
    This reply has been marked as private.
    in reply to: Stores Page to filter to show only stores you follow #86795
    cartaclaudio
    Participant

    Thanks would I need to change any of the code from my store list page?

    in reply to: Change checkbox display on single product page #86793
    cartaclaudio
    Participant

    Thank you so much. with this code it displays the word no instead of an icon. is it possible to not display the field at all if left unchecked?

    Regards,
    Claudio

    in reply to: Make followers Clickable #69962
    cartaclaudio
    Participant

    Hi,

    I am using buddypress to make the profiles public.

    Thank you.

Viewing 7 posts - 1 through 7 (of 7 total)