Special Bundle Offer! All-in-one Pack (Script + Android + iOS + Installation) Buy Now

Gift wrapper integration with woocommerce


Here I explained about how to integrate gift wrapper with woocommerce. Using WooCommerce Product Gift Wrap extension website admin can enable this feature in your site. This extension allows you to add a gift wrap option to your products with optional price.

WooCommerce > Settings lets you set up the default gift-wrappable status per-product and cost. These costs can be overridden per-product too.

If the customer adds gift wrap, it is shown in cart + orders, and adds your defined cost to the item cost too.


how to integrate Gift Wrapper feature with Etsy, ebay, Aliexpress, Amazon clone migrateshop themes?

Step 1:

Install this plugin https://wordpress.org/plugins/woocommerce-product-gift-wrap/

Step 2:

Add following code in your product-edit.php template & paste it where ever you want.

'post_id' => $object_id,
'id' => 'wcv_custom_product_gift_wrapper_enable',
'label' => __( 'Let buyer choose product to be wrapped?', 'wcvendors-pro' ),
'type' => 'checkbox'
WCVendors_Pro_Form_Helper::input( array(
'type' => 'text',
'post_id' => $object_id,
'id' => 'wcv_custom_product_gift_wrap_price',
'label' => __( 'Wrapping cost', 'wcvendors-pro' ),
'placeholder' => __( '0', 'wcvendors-pro' ),
'desc_tip' => 'true',
'description' => __( 'Leave blank if wrapping is free.', 'wcvendors-pro' ),
) );


Add following code in your functions.php template & paste it where ever you want.

function wcv_enable_gift_wrap ($post_id) {
$wcv_enable_wrap = get_post_meta( $post_id, 'wcv_custom_product_gift_wrapper_enable', true );
$wcv_gift_wrap_cost = get_post_meta( $post_id, 'wcv_custom_product_gift_wrap_price', true );
if ( $wcv_enable_wrap = 'yes' ) {
update_post_meta( $post_id, '_is_gift_wrappable', $wcv_enable_wrap );
update_post_meta( $post_id, '_gift_wrap_cost', $wcv_gift_wrap_cost );
add_action ('wcv_save_product','wcv_enable_gift_wrap');