• Resolved arbremojo

    (@arbremojo)


    Hi,

    I really like your plugin. I tried many of them and yours is the best (very simple, just what we need). I just have a small inquiry that could improve your plugin: add a text field below so we could add a message.

    What do you think?

    BR,

    Clara.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Theo Gkitsos

    (@theogk)

    Hi Clara, thanks for your kind words!

    Maybe we will add this in the future. In the meantime, you can use an existing hook to add a description.

    Add the following to your child theme’s functions.php file, or in a plugin like Code snippets.

    add_action( 'tgpc_wc_gift_wrapper_checkout_field_after', 'dc_add_descr_after_gift_wrapping' );
    function dc_add_descr_after_gift_wrapping() {
    	$wrapping_description = 'Your description...';
    	
    	echo '<div class="dc-tgpc-description">' . $wrapping_description . '</div>';
    }

    You can also add some CSS to style it, using the class dc-tgpc-description, for example:

    
    .dc-tgpc-description {
        color: #555;
        font-size: 14px;
        margin: 5px 0 15px;
        padding-left: 20px;
    }

    Add your CSS in your child theme’s style.css file, or the WordPress Customizer -> Custom CSS.

    If you follow the above instructions, you can achieve something like this:

    https://prnt.sc/otHpbZqd6lkl

    Theo

    • This reply was modified 1 year, 2 months ago by Theo Gkitsos. Reason: image link uploaded
    Thread Starter arbremojo

    (@arbremojo)

    Hi,

    I wasn’t talking about a description field, but an input field where the user can enter a custom message for a friend, which is stored in the order.

    Do you know what I mean?

    BR,

    Clara.

    Plugin Author Theo Gkitsos

    (@theogk)

    Oh ok, thanks for the clarification! That’s another great idea, we will probably add this as a feature on the future.

    Thanks, Theo

    Thread Starter arbremojo

    (@arbremojo)

    Great! When do you think this feature will be released?

    Plugin Author Pexle Chris

    (@pexlechris)

    We don’t know about the implementation timeline…

    Alternatively, you can do it with custom code or with a plugin such Checkout Field Editor (Checkout Manager) for WooCommerce

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add message field’ is closed to new replies.