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 2 years, 9 months ago by Theo Gkitsos . Reason: image link uploaded
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.
Oh ok, thanks for the clarification! That’s another great idea, we will probably add this as a feature on the future.
Thanks, Theo
Great! When do you think this feature will be released?
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