=== YITH WooCommerce Gift Cards ===

Contributors: yithemes
Tags: gift card, gift certificate, certificate, gift, woocommerce
Requires at least: 4.0
Tested up to: 4.9
Stable tag: 1.3.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Allow your users to purchase and send gift cards, an easy and direct way to encourage new sales.

== Description ==

Have you ever had that unpleasant feeling of having to make a present to someone, but not knowing what to buy? 99% of the times, this type of uncertainty does not help users completing their purchase.
Gifts are always welcome and YITH WooCommerce Gift Cards lets you offer your users a powerful sales tool able to enhance the purchases made on your site.
Allow your users to purchase gift cards of the amounts you want and they will receive a pretty gift card via email with a discount code, and encourage your customers to gift them to possible new users of your shop. This way, you will kill two birds with one stone: the possibility to make appreciated presents and the chance to promote your products thanks to convenient coupons.

= Main features =

* A new product type, Gift-card, to configure your own gift cards.
* Set the amount you want to use for each Gift Card.
* Email the gift card to the recipient once the order has been completed.
* The recipient can use it as a discount code as far as there's credit available.

= Languages =

Also available in:

* English
* Italian
* Spanish
* Japanese
 and [much more](https://translate.wordpress.org/locale/it/default/wp-plugins/yith-woocommerce-gift-cards "Translating WordPress").

= WPML =

Take advantage of [WPML](https://wpml.org/?aid=24889&affiliate_key=Qn1wDeBNTcZV) compatibility.
You are free to translate your plugin easily with the most popular and powerful tool for multi-language sites, [WPML](https://wpml.org/?aid=24889&affiliate_key=Qn1wDeBNTcZV).

= PREMIUM FEATURES of YITH WooCommerce Gift Cards =

* Create physical/printable and digital gift cards.
* Select pre-set amounts among which customers can choose.
* Allow customers to enter their own gift card amount.
* Choose whether enabling the manual amount on all gift cards or on specific ones only.
* Allow customers to view a list of their gift cards used so far and show both the order on which they have been used and the available credit left.
* Choose whether deleting or simply disabling the gift card if a refund is issued.
* Choose whether deleting or simply disabling the gift card if the order is cancelled.
* Customers can change the gift card details after purchase, except for the card amount.
* Choose whether the gift card has to include the shipping fees or not.

**Physical/printable Gift Cards:**

* Manage your products using a pre-printed code and enter the gift card code manually.
* Generate the gift card code automatically: the seller will attach it to the product that needs to be shipped.

**Digital Gift Cards:**

* Show a preview of the gift card while customers configure it on product page.
* Customers can directly send the gift card to the recipient's email address.
* Buy the same gift card for multiple recipients in one move: each recipient will get a gift card of the selected amount.
* Add the sender's name.
* Add a message that will be printed on the digital gift card.
* Customers can upload their own image that will be used as the gift card template background.
* Customers can pick from a selection of templates uploaded by the admin and sorted by event (wedding, birth, Valentine's day, birthday etc...)
* Create a gift card from one of the products of your shop: the gift card amount will be equal to the product price and the recipients will be suggested the product in the email they get.
* Add a link in the gift card email: this will take the recipients directly to the shop cart page, product added to the cart and discount applied.
* Allow customers to buy a gift card and plan the shipping of the email on a following date.
* Set an image to be used as the main image of each single gift card's template.

**Back end:**

* Create gift cards manually.
* Edit the gift card and change code, amount and recipient(s).
* View all gift cards sold.
* View details of each gift card: full amount, credit left, associated gift-card order, orders on which it has been applied and the total spend it generated.
* Enable/disable the gift card.
* View the date on which the email has been shipped or has been planed to be shipped.
* Send the email manually.

For more information about the PREMIUM version of YITH WooCommerce Gift Cards, visit the official page on **[yithemes marketplace](https://yithemes.com/themes/plugins/yith-woocommerce-gift-cards)**

= Premium Live Demo =

Do you want to discover all plugin features? Would you like to try it?

Visit our **[test sandbox](http://plugins.yithemes.com/yith-woocommerce-gift-cards)**
By accessing our testing platform, you will be able to discover all plugin features and test them as your prefer, both in back end and in front end.

What are you waiting for? Open the official plugin "**[live demo](http://plugins.yithemes.com/yith-woocommerce-gift-cards)**" and click on the "LAUNCH ADMIN DEMO" link that you find on the top bar to test the plugin right now.

= Documentation =

Please, read the **[official documentation of YITH WooCommerce Gift Cards](http://yithemes.com/docs-plugins/yith-woocommerce-gift-cards)** to learn more about all plugin features.

== Screenshots ==

1. Set a product as gift card.
2. Set the gift card amount.
3. Allow users to choose a custom amount for the gift card.
4. Purchase a gift card as well as other products.
5. Generate a discount code when the order is complete.
6. Customers receive discount codes via email.
7. Use the discount code and apply it in the dedicated box.
8. Discount is applied to the cart.


== Frequently Asked Questions ==

= To which email address will the gift card be shipped? =

The gift card will be sent to the buyer's billing email address.

= Which format will be used for the code sent? =

The format of the generated code is ____-____-____-____ and it will be made out of letters and figures.

= Can I edit the format used? =

It's not possible to edit the default format.

= Why haven't I received the email containing the gift card code? =

The gift card code is generated only after the order status goes to "complete" and therefore it will be sent to the email address entered.

= What happens if the customers spend less than the total card amount? =

Each time the gift card is used, its available credit is updated and if there's some left, it can be used for future purchases.

= Can I share a gift card? =

The gift card is sent to the buyer's email address, but anyone who has the code can use it.

== Installation ==

**Important**: First of all, you have to download and activate [WooCommerce](https://wordpress.org/plugins/woocommerce) plugin, because without it YITH WooCommerce Gift Cards cannot work.
 
1. Unzip the downloaded zip file.
2. Upload the plugin folder into the `wp-content/plugins/` directory of your WordPress site.
3. Activate `YITH WooCommerce Gift Cards` from Plugins page.

= Configuration =

YITH WooCommerce Gift Cards will add a new tab called "Gift Cards" in "YITH Plugins" menu item. There, you will find all YITH plugins with quick access to the plugin settings page.

== Suggestions ==

If you have suggestions about how to improve YITH WooCommerce Gift Cards, you can [write us](mailto:plugins@yithemes.com "Your Inspiration Themes") so we can bundle them into YITH WooCommerce Gift Cards.

== Translators ==

If you can't find this plugin in your language and want to translate it, use the dedicated tool at [Translating WordPress](https://translate.wordpress.org/locale/it/default/wp-plugins/yith-woocommerce-gift-cards "Translating WordPress").
Or, if you have created your own language pack, or have an update for an existing one, you can send it as an email attachment from our [Contacts page](http://yithemes.com/contact/ "Your Inspiration Themes") and we will bundle into YITH WooCommerce Gift Cards.

== Changelog ==

= Version 1.3.3 - Released: Dec 12, 2018 =

* New: Support to WordPress 5.0
* Update: plugin framework version 3.1.10


= Version 1.3.2 - Released: Oct 23, 2018 =

* New: Support to WooCommerce 3.5.0
* Update: plugin framework
* Update: plugin description
* Update: plugin links

= Version 1.3.1 - Released: Feb 01, 2018 =

* New: plugin framework 3.0.11
* New: support to WooCommerce 3.3.x


= Version 1.3.0 - Released: Jan 08, 2017 =

* New: plugin framework 3.0.6
* Fix: gift card amount is set to zero in cart page
* Fix: add to cart button does not showed using IE browser


= Version 1.2.9 - Released: Oct 11, 2017 =

* Fix: Warning message, cannot modify header information

= Version 1.2.8 - Released: Oct 6, 2017 =

* Update: Adding a filter to change the mode of making gift card code

= Version 1.2.7 - Released: Sep 28, 2017 =

* Fix: price gift card insertion
* Fix: gift card coupon not showed in order completed email

= Version 1.2.6 - Released: Aug 11, 2017 =

* New: support for WooCommerce 3.1.
* Update: YITH Plugin Framework.
* Update: language files.
* Tweak: tested up to WordPress 4.8.

= Version 1.2.5 - Released: Apr 30, 2017 =

* Update: YITH Plugin Framework.
* Tweak: tested up to WordPress 4.7.4.
* Tweak: changed plugin tags.

= Version 1.2.4 - Released: Apr 13, 2017 =

* Fix: prevent gift card code duplication when order status turn in processing and the in complete.
* Fix: gift card discount not correctly applied when used with WooCommerce 3.0+.

= Version 1.2.3 - Released: Apr 03, 2017 =

* New: ready for WooCommerce 3.0.
* New: create gift cards when the order status turn in processing or completed.
* Fix: YITH Plugin Framework initialization.
* Dev: filter 'yith_ywgc_generate_gift_card_on_order_status' lets third party set the order statuses on which the gift card will be created.

= Version 1.2.2 - Released: Jan 16, 2017 =

* New: WordPress 4.7 ready

= Version 1.2.1 - Released: Dec 01, 2016 =

* Updated: YITH Plugin framework
* Fixed: the available gift card amount does not contains the taxes paid at checkout

= Version 1.2.0 - Released: Oct 20, 2016 =

* Updated: YITH Plugin framework
* Tweaked: improved script and style file enqueuing
* Fixed: backward compatibility with WooCommerce version 2.6.0 or sooner: wrong product title shown when a gift card is added to the cart
* Fixed: coupon code rejected when used together with gift card code
* Fixed: duplicated fields shown on cart page

= Version 1.1.0 - Released: Jul 06, 2016 =

* Added: gift card code table
* Fixed: tab 'general' not visible after the update of WooCommerce to 2.6.2

= Version 1.0.10 - Released: May 04, 2016 =

* Fixed: missing YITH Plugin FW files

= Version 1.0.9 - Released: May 02, 2016 =

* Updated: plugin compatible with WordPress 4.5
* Updated: plugin author name
* Updated: YITH Plugin Framework

= Version 1.0.8 - Released: Mar 22, 2016 =

* Fixed: gift card code not shown correctly on emails
* Fixed: missing localization for some string
* Updated: YITH Plugin FW

= Version 1.0.7 - Released: Jan 29, 2016 =

* Fixed: add to cart fails when "sold individually" is wrongly checked
* Updated: "sold individually" it set to false as default for gift card product

= Version 1.0.6 - Released: Jan 11, 2016 =

* Updated: Changed the way that plugin files are included to avoid the "Fatal error: Class 'WC_Product' not found" experienced by some user
* Updated: removed the class YWGC_Gift_Cards, all functions are now on the main YITH_WooCommerce_Gift_Cards class
* Added: option to temporary disable the plugin

= Version 1.0.5 - Released: Nov 06, 2015 =

* Fixed: conflicts with coupon code on checkout page.
* Fixed: gift cards are set as virtual product

= Version 1.0.4 - Released: Nov 04, 2015 =

* Fixed: avoid showing post_id on order page

= Version 1.0.3 - Released: Oct 29, 2015 =

* Update: YITH plugin framework

= Version 1.0.2 - Released: Oct 22, 2015 =

* Fix: removed unused plugin settings tab.

= Version 1.0.1 - Released: Oct 12, 2015 =

* Fix: coupon code not applied correctly.

= Version 1.0.0 - Released: Sep 22, 2015 =

* Initial release



