• Resolved paulwan

    (@paulwan)


    Could we modify these two descriptor?
    Brief message, printed on the packing slip.
    Name of who is sending the gift, printed on the packing slip.

    Thanks!!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Diego Versiani

    (@diegoversiani)

    Hi @paulwan,

    Yes, you can use the code snippet below to make those changes.

    /**
     * Change gift fields description.
     */
    function fluidcheckout_change_gift_field_description( $gift_option_fields ) {
    	// Change gift message field args
    	if ( array_key_exists( '_fc_gift_message', $gift_option_fields ) ) {
    		$gift_option_fields[ '_fc_gift_message' ][ 'description' ] = __( 'Brief message', 'your-text-domain' );
    	}
    	
    	// Change gift from field args
    	if ( array_key_exists( '_fc_gift_from', $gift_option_fields ) ) {
    		$gift_option_fields[ '_fc_gift_from' ][ 'description' ] = __( 'Name of who is sending the gift', 'your-text-domain' );
    	}
    	
    	return $gift_option_fields;
    }
    add_filter( 'fc_gift_options_fields_args', 'fluidcheckout_change_gift_field_description', 300 );

    If you are unsure about how to add the code snippet, check our article:
    How to safely add code snippets to your WooCommerce website

    Best,
    Diego

Viewing 1 replies (of 1 total)
  • The topic ‘Gift Message’ is closed to new replies.