*** WooCommerce Compare Products Pro Changelog ***

2014.08.29 - version 2.2.1
* Tweak - use wc_get_product() function instead of get_product() function when site is using WooCommerce Version 2.2
* Tweak - Tested 100% compatible with WooCommerce Version 2.2

2014.05.07 - version 2.2.0
* Feature - Added Full integration with WooCommerce Product Categories, Product Attributes and Attribute Terms. 
* Feature - More features and less code. 3,894 lines of coded added in 42 files, 4,652 lines deleted. Net reduction of 758 lines of code. 
* Feature - From Product Category Create / Edit page enable the category for use as a compare category.  
* Feature - From the Product Attribute Create / Edit page assign the Attribute to activated Product categories. 
* Feature - From the Product Attribute Create / Edit page set the Compare Input data type field for that attribute. 
* Feature - On update to this version Auto convert Compare Categories, Features and input terms to Product Categories, Attributes and Terms if they do not already exist. 
* Tweak - Updated Compare Data input type text on Attributes page to clearly explain how that works with Attributes and Terms. 
* Tweak - Changed Categories and Features sub menu to Categories and Attributes. 
* Tweak - On Categories and Attributes menu add help text box at the top of the page to explain new functionality. 
* Tweak - On Categories and Attribute menu removed all create and edit Compare Categories and Compare features code. 
* Tweak - Removed Un-Assigned Compare features code. 
* Tweak - Updated chosen js script to latest version 1.0.1 on the a3rev Plugin Framework 
* Tweak - Changed add_filter( 'gettext', array( $this, 'change_button_text' ), null, 2 ); to add_filter( 'gettext', array( $this, 'change_button_text' ), null, 3 ); 
* Tweak - Update change_button_text() function from ( $original == 'Insert into Post' ) to ( is_admin() && $original === 'Insert into Post' ) 
* Tweak - Added support for placeholder feature for input, email , password , text area types.     
* Tweak - Tested 100% compatible with WooCommerce version 2.1.11 
* Tweak - Tested 100% compatible with WordPress version 3.9.1 

2014.05.07 - version 2.1.6.2
* Tweak - Update the compare widget. Added load items to cart by ajax to solve the problem of cart items being cached by caching plugins
* Tweak - set DONOTCACHEPAGE constant for Comparison page to prevent caching of current items in widget.
* Tweak - Updated Framework help text font for consistency.
* Tweak - Added remove_all_filters('mce_external_plugins'); before call to wp_editor to remove extension scripts from other plugins.
* Tweak - Tested 100% compatible with WooCommerce version 2.1.8
* Tweak - Tested 100% compatible with WordPress version 3.9 

2014.02.04 - version 2.1.6.1
* Fix - Undefined index: _woo_compare_category in class-wc-compare-metabox.php

2014.01.14 - version 2.1.6
* Feature - Upgraded plugins code for 100% compatibility with WooCommerce version 2.1 and backwards to version 2.0
* Tweak - Clean up on deletion feature now entirely removes compare categories, features from database and product compare meta keys.

2013.12.30 - version 2.1.5
* Feature - Upgraded the plugin to the newly developed a3rev admin panel app interface.
* Feature - a3rev Plugin Framework admin interface 100% Compatibility with WordPress v3.8.0 with backward compatibility.
* Feature - a3rev framework admin interface 100% iOS and Android compatible.
* Feature - Dashboard switches and sliders use Vector based display that shows when WordPress version 3.8.0 is activated.
* Feature - All plugin .jpg icons and images use Vector based display for full compatibility with new WordPress version.
* Feature - New admin UI features check boxes replaced by switches, some dropdowns replaced by sliders.
* Feature - Added 4 new border display types, Grove, Ridge, Inset, Outset
* Feature - Button Corner style - Rounded - Can now set a rounded value for each corner of the button to create many different button styles.
* Feature - New Border / Button shadow features. Create shadow external or internal, set wide of shadow.
* Feature - Replaced colour picker with new WordPress 3.6.0 colour picker.
* Feature - Added choice of 350 Google fonts to the existing 17 websafe fonts in all new single row font editor.
* Feature - New on page instant previews for Fonts editor, create border and shadow style. 
* Feature - Added intuitive triggers for settings. When switched ON a features corresponding feature settings show, when OFF they hide.
* Feature - New Compare feature Field Input type 'Audio Player' supports .mp3, .m4a, .ogg, .wav file formats. Add audio URL, the default WordPress Audio player shows & plays in comparison table.
* Feature - New Compare feature Field Input type 'Video Player' supports Youtube, Vimeo and WordPressTV. Just add video URL and the video shows and plays in the comparison table.
* Feature - Added House keeping function to settings. Clean up on Deletion.  Option - Choose if you ever delete this plugin it will completely remove all tables and data it created.
* Tweak - Moved plugin settings from WooCommerce menu to its own menu item on the wp-admin sidebar.
* Tweak - Changed plugins menu item name from Product Comparison to WC Compare.
* Tweak - Added main sub menu items, Category & Feature | Product Manager | Settings & Style
* Tweak - Added ON | OFF setting for Print Page feature and option to leave Print Page select 3 and Print text empty.
* Tweak - Numerous admin description text tweaks and typo fix ups.
* Tweak - Removed add custom button CSS class from button create settings and apply to frontend – no longer required or practical.
* Tweak - Tested 100% compatible with WP 3.8.0
* Tweak - Tested 100% compatible with WooCommerce Version 2.0.20

2013.08.20 - version 2.1.4
* Tweaks :
	* Tested for full compatibility with WordPress v3.6.0
	* Added PHP Public Static to functions in Class. Done so that Public Static warnings don't show in WP__DEBUG mode.

2013.06.15 - version 2.1.3
* Feature: Added triggers to the end of Ajax actions to allow developers to easily add custom script code to make something after the event has completed.
* Tweak: Added .trigger("woo_add_product_to_compare_list", [product_id]);
* Tweak: Added .trigger("woo_remove_product_from_compare_list", [remove_product_id]);
* Tweak: Added .trigger("woo_clear_compare_list");
* Tweak: Added .trigger("woo_update_total_compare_list");
* Tweak: Added .trigger("woo_popup_remove_product_from_compare_list", [popup_remove_product_id]);
* Tweak: Added.trigger("woo_update_compare_popup");
* Fix: Compare Features Tab on Product Page, Enable / Disable function. The 2 functions worked but the opposite of what they where supposed to.

2013.04.26 - version 2.1.2
* Fixed: Text colour pickers not saving and displaying the hex number and hex colour in Font Colour, Font Link Colour and Font Hover colour selectors after editing and updating. The bug affected all font colour setting that use theme colours on install. These are the settings show an empty colour selector field on install.

2013.04.23 - version 2.1.1
* Fixed: External / Affiliates link on Compare Window is now backward compatible from WooCommerce Version 2.0. Was showing fatal Error for older versions.

2013.04.08 - version 2.1.0
* INTRODUCING IN-PLUGIN CUSTOM STYLING!
* Feature: In-Plugin Custom Styling - Style every element of the compare feature that front end users see and interface with all without touching the theme or plugin code.
* Feature: Theme updates and changing a theme does not affect the layout and styles you create for your Compare feature because it is all in the plugin, independent of any theme.
* Feature: Removed the old Settings tab and replaced with 4 new tabs, Product Page | Widget Style | Grid View Style | Comparison Page
* Feature: Separated all Product page and Grid View page layout and style settings for fine grain control of how the feature shows on any theme.
* Feature: Product Page Main tab.  Full custom layout and style features for the compare feature on product pages under 4 new sub tabs.
* Feature: Added Activate / Deactivate the Compare Feature on single product pages.
* Feature: Added full custom Compare Button and Linked Text style options.
* Feature: Added Product page 'successfully added' to compare icon. Auto shows after button is clicked. Default icon is a green tick, includes option to remove or upload a custom icon.
* Feature: Added 'View Compare' feature. Just like the 'View Cart' feature. Fully customizable Button or Linked Text. Ideal for full wide product pages that have no sidebar.
* Feature: Widget Style main tab. Full custom styling of everything that the plugin outputs in the Compare WordPress widget.
* Feature: Added option to show product feature image with items added to the Compare widget. Set thumbnail size, position (Right | Left) and custom image border.
* Feature: Added option to show Widget Compare Button as Button or Linked Text, full custom styling, set position (Left | Center | Right)
* Feature: Added option to create a fully customized Widget Title including background colour and border style.
* Feature: Added option to show 'Clear All' feature as Button or Link text, full custom styling, set position relative to the compare button (Above | Below) and horizontal align (Left | Right | Center)
* Feature: Added fully Customize the 'Nothing to Compare' text message and font style that shows when widget is empty.
* Feature: Added option to upload a custom 'Remove' Single item icon from Compare Widget.
* Feature: Added 'Remove' single item icon function auto position. Always displays opposite side of product title to thumbnail. If thumbnail feature not activated - shows to the right as default.
* Feature: Grid View Style main tab. Created full custom settings for the Compare feature for product extracts on the WooCommerce Shop, Product Categories and Product Tags pages.
* Feature: Added option to set the position that the Compare feature shows relative to the 'add to cart' button (Above | Below) independent of Product page settings.
* Feature: Added Activate / Deactivate Compare Feature option on Grid View (Shop page, Product Categories and Product Tag archives pages)
* Feature: Added full custom styling of Compare Button / Text Link on Grid View pages independent of Product page settings.
* Feature: Added Grid View 'successfully added' to compare icon. Auto shows after button is clicked. Default icon is a green tick, includes option to remove or upload a custom icon.
* Feature: Added 'View Compare' feature on Grid View Product listings. Auto shows under Compare button after click. Fully customizable Link text.
* Feature: Comparison Page main tab. In this upgrade we launch full table customization features.
* Feature: Added all new Page Header image uploader script to replace the old and clunky show image by URL from WordPress media library.
* Feature: Added Shortcode now shows as an image in the page visual text editor instead of the shortcode [product_comparison_page]. Added set page from the admin panel.
* Feature: Added customize Comparison page Header background colour, body background colour and the Comparison Empty Window Message text font and style.
* Feature: Added option to show Print Page function as a button or Linked text with full style options for both.
* Feature: Added text edit and font style options for print page message.
* Feature: Added option to show Close Window function as a button or Linked text with full style options for both.
* Feature: Added custom style options for Table header and Alternate rows background colours. Custom style options for Table borders and row padding.
* Feature: Added custom style options for Compare Feature Titles font (Left fixed column), Table Rows Feature Values font and Product Name font.
* Feature: Added text edit and font style options and custom cell background colour to replace the default N/A text for Compare features that have no value. Default is now empty instead of N/A
* Feature: Added Product Prices - Activate / Deactivate option. Custom font styling. Position options to display prices Top and Bottom | Top Only | Bottom Only.
* Feature: Added 'Add to Cart' - Activate / Deactivate option. Added show Add to Cart as button or Linked text with full style options.
* Feature: Added 'successfully added' to cart icon that shows after a Simple Product is added to cart. Default icon is a green tick, includes option to remove or upload a custom icon.
* Feature: Added custom 'View Cart' text link including text edit and font style. The "View Cart' link shows under add to cart button when a Simple Product is added to the cart from the comparison table.
* Feature: Added support for External / Affiliate Products. Button or link shows the same text as the product page listing with link to external source.
* Feature: Added chosen script for select Compare categories on add and edit Compare features.
* Feature: Tested and optimization in Windows XP, IE 7, IE8, Windows 7, IE8 and IE9 and Windows 8, IE10 and IE10 Desktop.
* Feature: Tested and optimization for all 3 Windows operating systems - for these legacy browsers - Firefox, Safari, Chrome and Opera.
* Feature: Tested and optimization for Apple OS X operating systems. Snow leopard, Lion and Mountain Lion using these legacy Browsers - Firefox, Safari, Chrome and Opera
* Feature: Tested and optimization for Apple IOS Mobile Safari in iPhones and all iPads.
* Feature: Tested and optimization for Android Browser on all models of these manufacturers tablets that use the Android operating system - Amazon Kindle Fire, Google Nexus 7, Samsung Galaxy Note, Samsung Galaxy Tab 2
* Feature: Tested and optimization for Android Browser on all models of these manufacturers phone that use the Android operating system (to many to list) mobile phones that support - Samsung Galaxy, Motorola, HTC, Sony and LG
* Feature: Tested and optimization for Opera Mobile - Samsung Galaxy Tablet and Mobiles HTC Wildfire. Nokia 5800, Samsung Galaxy S II, Motorola Droid X and Motorola Atrix 4G
* Fixed: Full WP_DEG run. All Uncaught exceptions fixed.
* Fixed: Added site page ownership information to Compare Window so browsers recognized window as part of the site.
* Fixed: Add to Cart button on Comparison table for Variable Products now opens the variation product where the user can add it to their cart. Cannot add to cart like a Simple Product because WooCommerce does not support add variations to cart by ajax so this is the best work around we could come up with.
* Fixed: Bug for users who have https: (SSL) on their sites wp-admin but have http on sites front end. This was causing a -1 to show when products added to Compare Widget wp-admin with SSL applied only allows https: but the url of admin-ajax.php is http: and it is denied hence returning the ajax -1 error. Fixed by writing a filter to recognize when https is configured on wp-admin and parsing correctly.
* Tweak: Compare product page meta only shows open if the feature is activated.
* Tweak: Removed the Print Page Button and print page message from showing on the printed comparison.
* Tweak: Moved the Un-Assigned Compare Features on Features tab to the top of Compare categories for ease of use.
* Tweak: Updated admin error messages that displays when creating a Compare Category or Feature that already exists.
* Tweak: Jumped version from 2.0.8 to 2.1.0 for release of the In-Plugin Custom Styling feature.
* Tweak: Updated plugin wiki docs to include new custom styling and layout features.

2013.02.25 - version 2.0.6
MAJOR FEATURE UPGRADE!
* Feature: All plugin code updated to be 100% compatible with WooCommerce version 2.0 and backwards.
* Feature: Removed Compare pop-up fly out powered by Fancybox and Lightbox tools and replaced with Product Comparisons opening in a new browser window. WooCommerce Version 2.0 uses the new WordPress PrettyPhoto as the pop-up tool and in testing we found supporting 3 pop-up scripts, PrettyPhoto, Fancybox and Lightbox was very buggy and troublesome. So we have removed all 3 pop-up scripts and replaced with open in browser window. The result is around 4,000 less lines of code in the plugin and a beautifully robust comaparison result presentation.
* Feature: Added 2 show Comparison in new widow options. Option 1. Show the product Comparison in an on-screen pop-up window or Option 2. Show Comparisons in a new window.
* Feature: Added Fixed Features Title column. This means when more than 3 products are being compared in the pop up window or on-page comparison the products scroll left under the Features Title column - this means the user always can see what product features are being compared, beacuse the are fixed while the products and each feature values scroll under them.
* Feature: Added Comparison Table scrolls horizontal and vertical via the window scrollers and not by scrollers on an inner container. This is a great UI enhancement as it does away with inner containers - no more having to use the window scrollers to get to the inner container scroll bars which was confusing and messy.
* Feature: Completely reworked the Print Product Comparison function. The Print function now works beautifully with added print style. Prints the entire tall of 3 products Comparison columns regardless of the tall of the columns.

2013.01.08 - version 2.0.5
* Feature: Added support for Chinese Characters
* Tweak: UI tweak - changed the order of the admin panel tabs so that the most used Features tab is moved to first tab.
* Tweak: Updated Support and Pro Version link URL's on wordpress.org description, plugins and plugins dashboard. Links were returning 404 errors since the launch of the all new a3rev.com mobile responsive site as the base e-commerce permalinks have changed.

2012.12.31 - version 2.0.4
* IMPORTANT! Please upgrade your plugin now.
* Feature: Updated plugin API to allow Pro Version License holders to manage their Licenses from the all new "My Account" dashboard on a3rev. Includes the option to see which domains each plugin is installed and activated on and the ability to deactivate the plugin on any domain from the 'My Account' > Manage Licenses dashboard.

2012.12.14 - version 2.0.3
* Fixed: Updated depreciated custom database collator $wpdb->supports_collation() with new WP3.5 function $wpdb->has_cap( 'collation' ).  Supports backward version compatibility.
* Fixed: When Product attributes are auto created as Compare Features, if the Attribute has no terms then the value input field is created as Input Text - Single line instead of a Checkbox.
* Fixed: On Compare Products admin tab, ajax not able to load the products list again after saving a product edit

2012.11.30 - version 2.0.2
* Feature: Change Pro Version plugin API call from cURL to now use WordPress auto update wp_remote_request function. This is to fix Pro License user who do not have cURL activated on their host not being able to install and activate the plugin.
* Feature: Built new Amazon EC2 plugin API to increase connection and download speed as well as reliability and uptime - plugin from this version calls to the new API.
* Feature: Now supports WPMU - Pro Version Single License now works on any domain or sub domain that the Plugin is installed on with the WPMU environment. Note it only works on 1. WPMU license option coming soon.
* Fixed: Fixed conflict with WordPress Domain Mapping plugin - thanks to Johannes for access to his WPMU install to find and fix this issue.
* Fixed : Updated depreciated php function ereg() with stristr() so that auto plugin auto upgrade feature work without error for WordPress 3.4.0 and later
* Fixed: Change Pro Version plugin API call so that it only calls from the WP-Plugins page and not from every admin page.
* Fixed: Changed Pro Version plugin API call so that if it calls once to the API and it does not connect it auto aborts instead of keeping on trying to call.

2012.08.14 - version 2.0.1
* Changed - attributes terms where auto created as Compare Feature input type 'dropdown' (single select). Changed to input type 'check box' (multi-select)
* Documentation - Added comprehensive extension documentation to the [a3rev wiki](http://docs.a3rev.com/user-guides/woocommerce/compare-products/).
* Localization - Added Turkish translation thanks to ManusH
* Video - Added demo video to extensions home page
* Tweak: Set database table name to be created the same as WordPress table type
* Tweak - Change localization file path from actual to base path
* Tweak - Corrected typo on Compare pop-up window

2012.08.03 - version 2.0.0
MAJOR UPGRADE
* Feature - All Product Categories and Sub Categories are auto created as Compare Categories when plugin is activated. Feature is activated on upgrade.
* Feature - All Product Parent Variations are auto created as Compare Features and show on the Features tab under Categories as 'Un-Assigned Compare Features'.
* Feature - When Product Categories or Sub categories are created they are auto created as Compare Categories. The plugin only listens to Create new so edits to Product categories are ignored.
* Feature: When parent product variations are created they are auto created as Compare Features. Child product variations and edits are ignored.
* Feature - Complete rework of admin user interface - Combined Features and Categories tabs into a single tab - Added Products Tab. Greatly enhanced user experience and ease of use.
* Feature - Moved Create New Categories and Features to a single edit on-page assessable from an 'add new' button on Features tab.
* Feature - Added Features search facility for ease of finding and editing Compare Features.
* Feature - Added support for use of special characters in Feature Fields.
* Feature - Added support for use of Cyrillic Symbols in Feature Fields.
* Feature - Added support for use of sup tags in Feature Fields.
* Feature - Language file added to support localization, looking for people to do translations.
* Feature - Created plugin documents on a3rev wiki.
* Fixed - Can't create Compare Feature if user does not have a default value set in SQL. Changed INSERT INTO SQL command output to cater for this relatively rare occurrence.
* Tweak - Replaced all Category Edit | Delete icons with WordPress link text. Replace edit icon on Product Update table with text link.
* Tweak - Edited Product update table to fit 100% wide on page so that the horizontal scroll bar does not auto show.
* Tweak - Edited the way that Add Compare Features shows on product edit page - now same width as the page content.
* Tweak - Show Compare Featured fields on products page - added support for theme table css styling.
* Tweak - Adding padding between Product name and the Clear All - Compare button in sidebar widget.
* Tweak - Added yellow Pro update frame and dialogue box so its clear what features are activated on upgrade.
* Other - Create script to facilitate seamless upgrade from Version 1.04 to Major upgrade Version 2.0
* Other - Created and added WooCommerce Compare Products video to Wordpress plugins page

2012.05.22 - version 1.0.5
* Feature: Set Compare Button position above or below and padding from the WooCommerce Add to Cart Button.
* Fix: This feature is a workaround for site owners who use the WooCommerce Premium Catalog Visibility extension that removes the WooCommerce hook that Compare needs to show the button. Set the Compare button to show below the Add to Cart button in your theme and it will still show when that plugin removes the cart functionality.

2012.04.17 - version 1.0.4
* Fixed: Print this page feature not working on Fly-Out screen
* Fixed: Column alignment problem on Features admin panel on smaller screens.
* Tweak: Re-designed admin panel style for improve UX and in line with the PRO version
* Tweak: Changed blue border in pop-up screen to square corners and gray colour.
* Tweak: Change alignment of Compare button to 'align right' in sidebar widget.
* Tweak: Code re-organized into folders with all files commented on and appropriate names as per WordPress Coding standards.

2012.04.05 - version 1.0.3
* Tweak: Compare Settings page now on 2 tabs - SETTINGS | FEATURES in the same style as WooCommerce setting page for familiarity and greater ease of use.

2012.04.04 - version 1.0.2
* Feature: Add default WooCommerce Fancybox  Fly-Out screen option. Retained Lightbox and now have option to use Fancybox or Lightbox to power Fly-Out window.
* Feature: Greatly improved the layout and ease of use of the single page admin panel.
* Feature: Added comprehensive admin page plugin setup instructions and added Tool Tips
* Fix : Auto add Compare Widget to sidebar when plugin is activated.
* Fix: Feature Unit of Measurement is added in brackets after Feature Name and if nothing added it does not show.
* Fix: Use $woocommerce->add_inline_js for inline javascript to add it to the footer (after scripts/fancybox are loaded) to prevent errors
* Tweak: Changed Fly-Out window from - include( '../../../wp-config.php') to show content using wp_ajax
* Tweak: Run WP_DEBUG and fix plugins 'undefined...' errors
* Tweak: Removed fading update messages and animation and replaced with default wordpress 'updated' messages.
* Tweak: Replace custom ajax handlers  with wp_ajax and wp_ajax_nopriv
* Tweak: Add pop up window when deleting feature fields to ask you to check if you are sure?

2012.03.22 - version 1.0.1
* Tweak: Remove validation script never use for this plugin

2012.03.15 - version 1.0.0
* First working release.