WCGWP Changelog

Changelog for WooCommerce Gift Wrapper Plus

3.0 – Nov 24 2020

  • Fix – minor naming issues in template headers, referring users to correct file names
  • Tweak – how jQuery is included when enqueuing scripts which require it (just call it a dependency, don’t wp_enqueue it)

3.0-beta2 – Nov 16 2020

This is a BETA release. Especially if you are using templates, be aware this could be a breaking update. Most all of the overrideable templates have changed, and several have been deprecated. Take backups, and use caution installing it on production sites.

  • Fix – modal prompt not working in line item wrap when only one wrap offering
  • Tweak – refactoring of the following templates: templates/wcgwp/modal-cart-checkout.php, modal-cart-item.php, modal-single-product.php
  • Tweak – PHPDoc block improvements
  • Testing to WC version 4.7
  • 3.0-beta1 – Nov 11 2020

    This is a BETA release. Especially if you are using templates, be aware this could be a breaking update. Most all of the overrideable templates have changed, and several have been deprecated. Take backups, and use caution installing it on production sites.

    • Feature – Optionally use one of over 1500 modal entrance/exit animation combinations using animate.css
    • Feature – allow some basic HTML in string translations
    • Feature – For UX, make image of wrap next to radio button clickable if not already a link to product
    • Tweak – Use Kane Cohen’s https://github.com/KaneCohen/modal-vanilla modal instead of Bootstrap JS. Modals no longer require jQuery to function and this avoids Bootstrap conflicts.
    • Tweak – Include fresh copy of Bootstrap modal CSS; modal z-index increased
    • Tweak – move most all JavaScript to enqueued files instead of using templates for JS. Templates cart-slideout-js.php, checkout-slideout-js.php, slideout-js.php are deprecated and will eventually be removed.
    • Tweak – Set DB options autoload to FALSE
    • Tweak – More sanitization of strings before output

    2.5.4 – Nov 11 2020

    • Same as 2.5.3, except tiny changes: remove echo’d variable from admin plugin update screen, update Beta language on license settings page

    2.5.3 – Nov 11 2020

    • Fix – bug in checking for option to receive automatic alerts about beta versions.
    • Compatibility with WC 4.7 confirmed

    2.5.2 – Nov 5 2020

    • Compatibility with WPML
    • Remove unused code and refactor in classes/wc-gift-wrapper-settings-plus.php and classes/wc-gift-wrapper-settings-product.php
    • Remove orphan translation string “Add Gift Wrap Note to Order?”
    • Remove deprecated/unused templates (modal-coupon-header.php and modal-coupon.php)
    • Added dismissable notice to warn template users of changes with version 3.0

    2.5.1 – Oct 4 2020

    • Fix – templates/wcgwp/giftwrap-list-line-item.php template improperly renaming important $count variable
    • Testing with WooCommerce 4.5

    2.5 – August 4 2020

    • Easy settings panel created for string translations (for users who cannot translate for WP or use templates)
    • Be aware most templates have been updated. To get the newest features, update your templates if you have modified them in your (child) theme.
    • Alternate modal styles now possible with thumbnails taking place of radio buttons, you can switch to the new style using the settings panel
    • Wrap thumbnails now have image “alt” tag
    • Language file updates
    • Testing with WP 5.5

    2.4.2 July 14 2020

    • Tweak to version 2.4.1 – No betas unless betas requested, but $shortname wasn’t defined (not needed)

    2.4.1 July 13 2020

    • Tweak – remove use of anonymous function for gift wrap placements in cart and checkout areas, allows users to move hooks
    • Tweak – No betas unless betas requested!
    • Testing to WC version 4.3

    2.4 May 14 2020

    • Feature – beta version checks (opt in at Settings -> Gift Wrapper license)
    • Feature – compatibility with WooCommerce mix-n-match plugin (wrap attributes not added to each child mix-n-match product)
    • Tweak – do not force add wrap to cart when only one wrap selection and modal on single product page, use (hidden) checkbox not radio button
    • Tweak – update Software Licensing to version 1.6.19

    2.3.2 April 7 2020

    • Fix – Software license not calling home because not sending valid key

    2.3.1 April 3 2020

    • Fix – per-product line item wrapping not acknowledging overrides of wrap category
    • Fix – enqueue Bootstrap for single product page when modal desired
    • Fix – Required WC version is 3.0 not 5.4

    2.3 March 24 2020

    • Release. Please stay healthy and be safe!
    • Feature – Woo admin notices when template files are updated by plugin author
    • Fix – Don’t show wrap on individual product pages for excluded categories
    • Fix – Clear removed cart items session before adding line-item or single product page wraps, otherwise old removed items re-appear in cart with wrapped item
    • Tweak – clarify settings pages to help differentiate between per-order and per-product wrapping options
    • Tweak – more checks on wp action hook to make sure wrap functions should execute
    • Tweak – use new template for cart/checkout wrapping which allows more granular control of output: giftwrap-list-cart-checkout.php
    • NOTE: template giftwrap-list-cart.php is DEPRECATED. Please use template giftwrap-list-cart-checkout.php instead.

    2.3-beta3 March 3 2020

    • Tweak – 2.3-beta2 feature altered to accept an array of (one or more than one) product IDs

    2.3-beta2 March 2 2020

    • Feature – On per-product (product page) wrapping, allow admin to set a specific wrap product, rather than a category.

    2.3-beta1 Feb 14 2020

    • Feature – modal on product pages for individual products, complete with template
    • Feature – line item wrap for product page wrapping, to allow separate tax rates, inventory, etc.
    • Feature – more control over how many wraps are allowed for each product
    • Feature – added plugin beta version support, option found at /edit.php?post_type=download&page=edd-tools&tab=betas
    • Feature – Line item style gift wrap from single product pages (as long as redirect-to-cart Woo setting is OFF)
    • Fix – if deleted item with wrap added back to cart, restore its previous quantity
    • Tweak – improvement to wp-admin Per Product settings page for better comprehension
    • Tweak – possibly breaking template change /templates/wcgwp/replace-wrap-js.php
    • Tweak – Improve autoloader
    • Tweak – selective script loading front- and backend to improve performance
    • New templates modal-product.php and modal-product-js.php for Bootstrap modal in product pages

    2.2.1 December 5 2019

    • Fix – conditional in /classes/class-gift-wrapper-line-item.php interferes with line item slideouts
    • Feature – filter hooks ‘wcgwp_add_wrap_prompt’, ‘wcgwp_add_wrap_message’, and ‘wcgwp_add_wrap_button_text’ added to assist in translations (translation files and templates also available)

    2.2.0 – December 3 2019

    • Important note: the following templates changed with version 2.2:
      · giftwrap-list-cart.php,
      · giftwrap-list-line-item.php,
      · giftwrap-list-product.php,
      · modal-coupon.php,
      · modal-line-item.php,
      · cart-slideout-js.php,
      · slideout-js.php
    • Feature – add note for admin to re-affirm which wrap goes with which line item
    • Fix – remove “#” action from line item wrap forms (in templates) to prevent items being added back to cart after removed
    • Fix – add Post/Redirect/Get to peri-cart/peri-checkout wrapping so wrap is not added back to cart after delete + page refresh
    • Fix – styling for simple/single product gift wrapping if modal turned on for per-cart/peri-checkout and line-item wrapping
    • Fix – don’t automatically add wrap to cart on product page when only one wrap option available
    • Fix – don’t offer to gift wrap gift wrap on its product page
    • Tweak – Woocommerce order item meta stored in consistent key values ( wcgwp_selection, wcgwp_note, wcgwp_parent_name, wcgwp_price ) in DB to make per-item queries simpler
    • Tweak – Do not remove customer’s tentative pre-submit input when closing cart JS slideouts – could be discouraging

    2.1.3 – November 22 2019

    • Fix – stripslashes for customer input in cart/checkout
    • Compatibility with WC 3.8

    2.1.2 – October 10 2019

    • Tweak – install new license API manager (Easy Digital Downloads “Sofware License”)
    • Tweak – delete duplicate instance of LNT checkbox (deletes all WCGWP data upon uninstall if checked, now only in one location)

    2.1.1 – October 1 2019

    • Fix – show slideout JS in all cases where modal not in use

    2.1 – October 1 2019

    • Feature – add “after checkout” location for gift wrap prompts
    • Tweak – add “none” selection for multiselect on cart/checkout settings page, for if no location desired/selected
    • Tweak – error catching for if admin hasn’t set wrap category yet but wants wrap displayed
    • Tweak – move plugin action links hook (for settings links on plugin listing page) to register activation hook not admin_init

    2.0 – September 19 2019

    This a BREAKING update if you are using Gift Wrapper templates. Please review template changes carefully before going into production with it.

    • Feature – store inline cart gift wrap items as separate products in order to allow for inventory, refunds, etc.
    • Feature – sort and style inline cart wrap products with parent products in cart, mini cart, and order review
    • Feature – (beta) control number of gift wrap added to each product, 1:1 ratio, 1:x ratio, or ad-lib (free quantity ratios)
    • Feature: ‘wcgwp_remove_cod_gateway’ boolean filter hook in case COD not wanted with wrap in cart/order
    • Feature – Initiate versioning for templates (until notifications set up, keep a close eye on versions!)
    • Feature – CSS class for table row and list line items containing gift wrap, with arrow to show wrap product association
    • Feature – Don’t show note meta in cart if no note added (to assists folks using this plugin in other ways)
    • Feature – Further data sanitization for security
    • Fix – don’t link thumbnails to gift wrap products in order review if not desired
    • Tweak – don’t show Gift Wrapping options on product page representing Gift Wrap
    • Tweak – expand category exclusion to line items in cart/checkout, not just single product pages
    • Tweak – if per-product override of gift-wrapping exclusion, honor it
    • Tweak – Don’t show radio boxes in single product page gift wrap if only one gift wrap selection
    • Tweak – Remove need for use of redundant-seeming templates /templates/wcgwp/modal-coupon.php and /templates/wcgwp/modal-coupon-header.php (these are deprecated, use /templates/wcgwp/modal.php)
    • Tweak – Stop checkout slide-out JS loading on order received page also
    • Tweak – Stop using html form inside html form for line-item (non-modal) cart gift-wrapping
    • Compatibility with WC 3.7

    September 6 2019 – 2.0-beta

    (available for download from /my-account page Sept 10 2019
    This is a stable beta but we need more time for writing documentation on it before release. It is also a BREAKING update if you are using Gift Wrapper templates. Please review template changes carefully before going production with it.

    • Feature – store inline cart gift wrap items as separate products in order to allow for inventory, refunds, etc.
    • Feature – sort and style inline cart wrap products with parent products in cart, mini cart, and order review
    • Feature – (beta) control number of gift wrap added to each product, 1:1 ratio, 1:x ratio, or ad-lib (free quantity ratios)
    • Fix – don’t link thumbnails to gift wrap products in order review if not desired
    • Tweak – don’t show Gift Wrapping options on product page representing Gift Wrap
    • Tweak – expand category exclusion to line items in cart/checkout, not just single product pages
    • Tweak – if per-product override of gift-wrapping exclusion, honor it
    • CSS class for table row and list line items containing gift wrap, with arrow to show wrap product association
    • Initiate versioning for templates (until notifications set up, keep a close eye on versions!)
    • Don’t show radio boxes in single product page gift wrap if only one gift wrap selection
    • Don’t show note meta in cart if no note added (to assists folks using this plugin in other ways)
    • Further data sanitization for security
    • Compatibility with WC 3.7

    July 27 2019 – 1.1.1

    * Update API server – no longer www.little-package.com, now web.little-package.com

    March 29 2019 – 1.1

    * Feature – ‘wcgwp_modal_size’ filter hook for adjusting modal size
    * Feature – handy link to license settings in plugins list
    * Feature – German translation added (thank you Dorothea N)
    * Tweak – Update Bootstrap modal css to version 4.3.1
    * Tweak – unique CSS IDs for line item textareas in cart
    * Tweak – use aria-hidden for JS gift wrap (non-modal) slideouts
    * Fix – also add user note to giftwrap selection in line item slideout

    Feb 24 2019 – 1.0.2

    Fix – if only one giftwrap product and non-simple (checkbox) option checked, do not add giftwrap to cart unless selected

    Feb 22 2019 – 1.0.1

    Tweak – how “Giftwrap Details” is managed – for those with difficulty translating it

    Jan 2019 – 1.0

    Initial release