Gift Wrapper for WooCommerce – Best Free Woo Order Gift Wrapping

Descripción

The Best Gift Wrap Plugin Option for WooCommerce since 2014, from Little Package & Sagehen Studio

The Gift Wrapper treats your wrapping service as a WooCommerce product, allowing it to be inventoried, priced, and taxed separately. Create and offer as many gift wraps as you like, where you like. Not just for gift wrap – use Gift Wrapper for any (inventoriable, taxable and/or discountable) cart add-ons! Examples: add condiments to a food order, or accessories to an electronics order. If you need more features and functionality such as per-product wrap options, check out the PLUS version of The Gift Wrapper from Little Package (not to be confused with a similarly-named but different plugin sold by Woocommerce since March 2020).

Some Features

  • Create a simple gift wrap (or other add-on type) option form on the cart and/or checkout page, or go all out with robust gift wrapping offerings
  • Set individual prices, descriptions, and images for wrapping types
  • Wrap can be inventoried, discounted and/or taxed like other WooCommerce products
  • Show or hide gift wrap images in cart/checkout
  • Static (slide-down) or modal view of gift wrap options on cart and checkout pages
  • Get notice of the customer’s intended gift wrap message on email order notification and on the order page – customer also receives confirmation on receipt
  • Fully CSS-tagged and templated for your customizing pleasure
  • Keep in mind the paid version of this plugin (Gift Wrapper PLUS for WooCommerce) has WAYYYYYY more features and likely does what you need!
  • If you have suggestions for other features, or find a bug, please get in touch.

PLUS (paid version) features

Per-product gift wrapping modal/slideout options on product pages, or a simple per-product “add gift wrap for $x” checkbox
Per-product wrap can appear as product attribute or as separate line item (for separate taxes, inventory etc) in cart.
Add different gift wrap products to each item in cart, if desired
Add more than one wrap products to any item in the cart, if desired
Add/edit/and remove gift wrap to/from products inside cart, per-product
Control ratio of product:wrap in cart line-item wrap offerings
Exclude products from wrap, and/or exclude entire product categories from wrap
Per-product gift wrapping settings
If using modal(s), option to use any of 1500+ possible entrance/exit animations, courtesy animate.css
Compatible with WooCommerce Mix and Match Products and WooCommerce Composite Products
Elementor Pro widget

The upgrade IS worth it! Check out Gift Wrapper Plus

Support future development

I need your support & encouragement! If you have found this free plugin useful, and especially if you have benefited commercially from using Gift Wrapper, please consider donating to support the plugin’s future on the WP repository:

paypal.me/SagehenStudio

I understand you have a budget and might not be able to afford to pay the developer (me) a small tip in thanks. Maybe you can leave a positive review?

Please leave a review of the Gift Wrapper free version

Purchase Gift Wrapper Plus

Translations

Take a moment and help Translate the Gift Wrapper into your language!

Thank you!

Capturas

  • Screenshot of the settings page with slidetoggle selected (WooCommerce -> Settings -> Products -> Gift Wrapping submenu)
  • Animated GIF of cart, click of prompt causes gift wrap options to slide down (with Flatsome WP theme)
  • Screenshot of settings page again, with modal selected
  • Animated GIF of cart, click of prompt opens modal pop-up window with gift wrap options (with Shopkeeper WP theme)
  • Cart with two prompt placements, before and after cart (with The Retailer WP theme)

Instalación

To install plugin

  1. Upload the entire “woocommerce-gift-wrapper” folder to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Visit WooCommerce->Settings->Products tab to set your plugin preferences. Look for the “Gift Wrapping” sub tab link.
  4. Follow the instructions there and review the settings.

Green Geeks has created a good overview of Gift Wrapper installation and set up, which applies to the free version of Gift Wrapper.

To remove plugin:

  1. Deactivate plugin through the ‘Plugins’ menu in WordPress
  2. Delete plugin through the ‘Plugins’ menu in WordPress
  3. NOTE: Your settings will be deleted from your WP database when the plugin is deleted

Preguntas frecuentes

It doesn’t seem to work

Things to check:

  1. Is WooCommerce activated and configured, and are all the theme files current (check WooCommerce->System Status if unsure)
  2. Is the Gift Wrapper plugin activated?
  3. Are you using WooCommerce version 5.6 or newer? Time to upgrade!
  4. Have you created at least one WooCommerce gift wrap product, given it a price (even if $0), saved it to a WooCommerce product category, and entered that product category in your Gift Wrapper settings?
  5. Does the your-theme-or-child-theme/woocommerce/cart/cart.php file include at least one of the following hooks?

    do_action(‘woocommerce_before_cart’); or
    do_action(‘woocommerce_before_cart_collaterals’); or
    do_action(‘woocommerce_after_cart’); or

5a. Does the your-theme-or-child-theme/woocommerce/checkout/form-checkout.php file include at least one of the following hooks?

do_action('woocommerce_before_checkout_form'); or
do_action('woocommerce_after_checkout_form');

Due to third-party theme and plugin overrides, these hooks might be moved or removed. If you can’t find any of these hooks in your WooCommerce installation, you are missing a crucial hook(s) to the functioning of this plugin. Try using a different location for the “Where to Show Gift Wrapping” in the plugin settings, and if that doesn’t work, try the Storefront theme and disable all plugins except WooCommerce & Gift Wrapper to rule out theme/plugin interference.

Other problem? Please let me know before leaving negative feedback! I can usually reply to tickets within 24-48 hours.

Why isn’t gift wrapping added when I click the button in the cart?

Have you added a gift wrapping as a WooCommerce product? This plugin works by creating a product that virtually represents gift wrapping. It is up to you whether that product is visible in the catalog or not, and how fleshed-out you make the product description. But there needs to be a product, and it needs to be in a category whether or not you make more than one wrapping types. That product category is used in the Gift Wrapping settings.

Why make more than one type of wrapping?

Maybe you want to offer “Winter Holiday” wrapping and “Birthday” wrapping separately, or maybe you have other types of gift wrap service: wrapping paper or boxes you use that may incur different prices or shipping rules. It’s up to you whether or not you make more than one wrapping product. You don’t have to.

How can I style the appearance?

I’ve added CSS tags to every aspect of the cart and checkout gift wrap forms so you can style away. Please if you do not know basic CSS, hire a developer to do this for you. We need jobs, too!

If you would like to change the HTML structure of gift wrap lists and modals, you can use the Gift Wrapper templating system to do that easily.

You will need to create a folder called woocommerce in your theme — or better yet — child theme folder. Inside that folder, create another folder called wcgwp. Move any overwritten plugin template files into this wp-content/theme/woocommerce/wcgwp folder, and your changes will be visible. Read more information on WooCommerce templating here.

Can I change the giftwrap thumbnail size?

Yes, use the ‘wcgiftwrap_change_thumbnail’ hook in your (child) theme functions.php file as follows:

function my_custom_thumbnail_size( $thumbnail ) {
    $thumbnail = 'medium';
    return $thumbnail;
}
add_filter( 'wcgiftwrap_change_thumbnail', 'my_custom_thumbnail_size', 10, 1 );

This is just an example. Change ‘medium’ to the size desired, using an existing WordPress image size slug.

I don’t want more than one wrapping added to the cart!

Yeah, that could be a problem, but rather than hard-code against that possibility I leave the settings to you, and for good reason. If you don’t want more than one wrapping possible, make sure to set your wrapping product to “sold individually” under Product Data->Inventory in your Product editor. If you do this make sure your customer has a way to remove the gift wrapping from the cart on small screens, as sometimes responsive CSS designs remove the “Remove from Cart” button from the cart table for small screens.

Gift wrapping seems to interfere with shipping costs

To prevent this happening, I recommend you set up your gift wrap products as WooCommerce “virtual” products (virtual but not downloadable). If setting them up as regular or variable products, make sure to arrange the shipping settings so they don’t incur surprise shipping costs.

I don’t want to show gift wrapping in my catalog

Visit your gift wrap product (WooCommerce product editor screen) and set Catalog Visibility to “hidden” in the upper right corner near the blue update button. If you have more than one gift wrap product, do this for each one.

I don’t want to show something

This plugin is heavily CSS-tagged. If you don’t want to show a part of what the Gift Wrapper displays, add custom CSS to your WordPress theme settings, WordPress theme css (usually style.css), or – better yet – WordPress child theme CSS file (style.css). WordPress also allows CSS to be added in the Customizer.

An example might be:

Let’s hide the gift note textarea/textbox. Add this CSS to your theme:

.wc_giftwrap_notes_container textarea {display:none}

o

.wc_giftwrap_notes {display:none}

Both would work. I cannot support all the requests for free custom theme help any longer! Please study up CSS or hire a developer to help you make custom theme and plugin modifications. WooCommerce has provided some recommendations for where to seek help. Thank you for understanding.

To hide “Giftwrap Details,” you used to be able to just leave the setting blank (pre version 3.0.3). Now you can either use CSS or the ‘wcgwp_hide_details’ filter hook to hide it. To use the hook, add the following code to your functions.php file:

add_filter( 'wcgwp_hide_details', '__return_true' );

You can also adjust the HTML output using the template system (as of version 3.0).

How can I hide gift wrapping when there are only virtual products in the cart?

Easy, add the following line of code to your (child) theme functions.php file:

add_filter( 'giftwrap_exclude_virtual_products', '__return_true' );

If you’re unfamiliar with how to edit the functions.php file, add this code using the Code Snippets plugin.

How can I remove the COD payment option if gift wrap in cart (purchase is probably a gift) ?

Easy, add the following line of code to your (child) theme functions.php file:

add_filter( 'wcgwp_remove_cod_gateway', '__return_true');

How can I make this plugin work with WooCommerce Mix & Match or WooCommerce Composite Products?

Easy. The Plus version of this Gift Wrapper is compatible with the WooCommerce Mix & Match and WooCommerce Composite Products plugins.

I would like this plugin in my language, or to say something different on screen

This plugin comes ready with a .POT file. If you aren’t already familiar with localisation (translation) of WordPress plugins and themes, you can learn more here. You can add .PO files to the /lang folder of this plugin to change it to your language, or even to just adjust the English currently used.

To change what this plugin says on screen, create PO/MO file(s) in your language. If your site is in English (US), then you would be creating a PO file called gift-wrapper-en_US.po and putting it in the /lang/ folder inside the Gift Wrapper plugin folder (/wp-content/plugins/gift-wrapper/lang/). If your site is in French (France), your PO file would be /wp-content/plugins/gift-wrapper/lang/woocommerce-gift-wrapper-fr_FR.po. Note in this case, you would be editing or overwriting the existing po file for French.

I recommend Poedit to get string translations done quickly and simply.

Another option is to use WordPress filter hooks included with most strings in this plugin. Here’s an example for changing the “Add Gift Wrap?” text:

function my_change_wrap_prompt( $prompt ) {
    $prompt = 'Would you like to wrap this?';
    return $prompt;
}
add_filter( 'wcgwp_add_wrap_prompt', 'my_change_wrap_prompt', 11, 1 );

Now the text will say “Would you like to wrap this?” This PHP code could be added using the Code Snippets plugin if you do not have a child theme and are not comfortable editing your child theme functions.php file or with PHP at all.

The PLUS version of this plugin allows for easy string translation by using a settings panel — just type what you want it to say.

How can I translate the “Giftwrap Details” (found in Gift Wrapper settings) when using WPML?

This string is saved in the WordPress options database table and so it takes a little extra work for WPML to find it. Follow these instructions in the WPML documentation to find the ‘wcgwp_details’ database value and translate it.

The popup (modal) doesn’t work with my theme

Most likely this is due to your WordPress theme conflicting with this plugin. Oftentimes, themes use aggressive CSS z-indexing to make page sections “float”. This can cause third-party modals (from any plugin, not just this one) to fail. If you do not know how to correct z-index issues with some custom CSS, please bring this issue up with your theme author and/or your developer. Usually one short line of CSS can fix this issue. I’d share it here but it hugely depends on which theme you are using.

This plugin doesn’t look good or work with my theme

Learn more about possible theme issues. Gift Wrapper works with most themes I’ve tried, both paid and free, and I offer it gratis and as is. Some themes just require very minor tweaking with a line or two of CSS for cooperation. If you have suggestions for how to make it work every time for your theme, I will consider hard-coding in your theme fixes. However, I am not responsible nor for hire to make this plugin work with every theme out there. Thank you for understanding.

Reseñas

12 de enero de 2022
This is a brilliant little plugin and I've been more than happy to pay for the Pro version as it is worth every penny. Customers can now add wrapping for any product with a gift message. The support has been absolutely excellent.
29 de marzo de 2021
Really good plugin, works straight out the box. Support is first class too.
Leer todas las 45 reseñas

Colaboradores y desarrolladores

Este software es de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

"Gift Wrapper for WooCommerce – Best Free Woo Order Gift Wrapping" ha sido traducido a 6 idiomas locales. Gracias a los traductores por sus contribuciones.

Traduce "Gift Wrapper for WooCommerce – Best Free Woo Order Gift Wrapping" a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

5.1.4

  • Testing with PHP 8.1, WC 6.4, readme update
  • Fix possible issues with FR and DE .po files

5.1.3

  • Rename constants GWPLUS_VERSION -> GIFTWRAPPER_VERSION, GWPLUS_PLUGIN_DIR -> GIFTWRAPPER_PLUGIN_DIR, and GWPLUS_PLUGIN_BASE_FILE -> GIFTWRAPPER_PLUGIN_BASE_FILE to avoid conflicts with paid version
  • Update paid upgrade links to point to www.giftwrapper.app

5.1.2

  • More careful variable type checks inside class-gift-wrapper-wrapping.php is_wrap(), also check for $post object in class-gift-wrapper-settings-product.php product_write_panel_tab()

5.1.1

  • Minor change to giftwrap-list.php template to make sure wrap added when only one product offered

5.1

  • More careful sanitization, checks of DB output (much was done in previous release)
  • Sanitize note textarea as textarea to preserve line breaks
  • Prevent possible loop in page load during wrap addition
  • Correct admin URL in setup_error_notice()
  • Merge class-gift-wrapper-settings-product.php is_wrap() with class-gift-wrapper-wrapping.php is_wrap()
  • Prelim handling for wrap products which are set to be “sold individually” (needs work)

5.0

  • Plugin re-naming: WooCommerce Gift Wrapper is now called GIFT WRAPPER
  • Security updates – chiefly escaping output inside templates, but also no JS inlining
  • Use future-safe wc_get_products() instead of get_posts to gather wrap products. This forces breaking changes to templates.
  • Mirror settings in plus version: WooCommerce tabs instead of sub-sections (easier to find settings)
  • Plus settings on display (but not used) to help users see what paid upgrade offers
  • Restore CTA and replace “buymeacoffee” link with PayPal.me/littlepackage link – thank you for your support!
  • Update Bootstrap CSS from v5.1.3
  • Update 3rd party Modal Vanilla script

4.5.3 – 24 January 2022

  • Testing with recent versions of WP and WC
  • Minify slideout JS file

4.5.2 – 15 December 2021

  • Stated compatibility with WP 5.6 (same as WooCommerce); however, repair so backwards compatible with WP 4.9
  • Upon AJAX ‘remove_from_cart’ remove wrap prompt when cart empty or only wrap in cart
  • Testing with WC 5.9

4.5.1 – 15 October 2021

  • Stop nonce check on every cart/checkout page load, use only with certain $_POST values
  • Translation updates

4.5 – 4 October 2021

  • Fix for use with Gutenberg editor while using ‘giftwrap_exclude_virtual_products’ filter, involves
    moving hooked functions from ‘init’ to ‘wp’ (later firing)
  • Fix – nonces added to frontend forms
  • Renew nag

4.4.10 – 28 September 2021

  • Testing with WC 5.7. WooCommerce requires PHP version 7.0, and so therefor so does this plugin.
  • Testing with WP 5.8