WCGWP Changelog

Changelog for WooCommerce Gift Wrapper Plus

4.0.4 – 27 November 2021

  • Fix – Elementor users experience call to CSS file with bad location due to use of __FILE__ in plugins_url()
  • Tweak – Move Elementor widget loading to wp_loaded instead of plugins_loaded hook

4.0.3 – 22 November 2021

  • Fix – Elementor users experience call to deprecated CSS file, breaking JS
  • Fix – Reinstate use of save_strings() esp for new users of plugin to avoid string offset warnings

4.0.2 – 5 November 2021

  • Tweak – allow cart item wrapping and not product page wrapping, as vice versa is already allowed (in settings panel).

4.0.1 – 1 November 2021

  • Fix – WCGWP function not found during Woo product save

4.0 – 1 November 2021

4.0 is a BREAKING RELEASE for previous WCGWP users with plugin customizations. Use backups and test test test before going live!

  • 4.0 includes all the updates listed under betas 1-7 below
  • Tweak – Positioning of coupon-area cart wrap prompt when cart is re-styled with floats
  • Tweak – If not more than one wrap per cart item allowed, don’t show prompt if already one added

4.0-beta7 – 26 October 2021

4.0-beta7 is possibly a breaking release esp. if you are using WCGWP templates or custom CSS.
Make sure to review your products, cart and checkout pages!
See beta releases in changelog below for further changes between version 3.2.2

  • Feature – allow a fee to be added for using note field, e.g. in case of free wrap and priced notecard?
  • Feature – WooCommerce settings tab for Gift Wrapper, to make settings easier to find
  • Feature – Settings section for language translations/adjustments, including more strings
  • Feature – Finally! Option to include gift note when using checkbox opt-in on product pages
  • Feature – if not more than one wrap allowed or wrap is set to 1 wrap per product, don’t show prompt if already wrapped
  • Tweak – if not more than one wrap per cart item allowed, don’t show prompt if already one added
  • Testing with WC 5.8

4.0-beta6 – 26 Sept 2021

  • Fix – revert to PHP <8.0 compatibility

4.0-beta5 – 22 Sept 2021

4.0 is possibly a breaking release esp. if you are using WCGWP templates or custom CSS.
Make sure to review your products, cart and checkout pages!
See beta releases in changelog below for further changes between version 3.2.2

  • Feature – Elementor Pro widget compatible (must have pro for Elementor *WooCommerce* support)
  • Fix – show gift wrap selection in cart for checkbox/attribute-style wrapping
  • Tweak – “Cart/Checkout” gift wrap re-named “Order” wrapping to reflect what is actually going on. Per-product wrap is still called “Product” gift wrap.
  • Tweak – nonces added to frontend forms

4.0-beta4 – 8 Sept 2021

  • Fix – Change to modal-cart-checkout.php template to avoid disrupting the DOM and strange CSS behavior making prices “appear” negative
  • Feature – Allow for different settings between cart and product as far as showing and linking thumbnails.
  • Tweak – Clarify settings pages language, esp around how to set wrap category and what cart/checkout wrap actually means (order wrap).
  • Tweak – Improvement to animate.css, especially for exit animations

4.0-beta3 – 21 July 2021

  • Feature – ‘wcgwp_modal_checkout_template’ and ‘wcgwp_list_cart_checkout_template’ filters to allow for using alternative template, esp. when custom hooks are used in placement.

4.0-beta2 – 7 July 2021

  • Feature – Cue in cart and on product pages when item cannot be gift wrapped. Can be turned on in general settings, and filtered using ‘wcgwp_cannot_wrap_notice’ hook

4.0-beta1 – 2 July 2021

4.0 is possibly a breaking release esp. if you are using WCGWP templates or custom CSS. Make sure to review your products, cart and checkout pages!

  • Tweak – Add ‘wcgwp_get_posts_args’ filter hook to allow for post argument filtering, e.g. in case of using alternative stock mgmt system
  • Tweak – Begin delicate and awkward cleanup of some WCGWP CSS and a dash of inline style for some predictability (using CSS grid)
  • Accessibility improvements, replace href link prompts with buttons. Take note! This means prompts previously styled as href links are now
  • Tweak – Remove need for preg_match() in add_giftwrap_to_product() method in wc-gift-wrapper-cart-item.php
  • Feature – Add “Remove Gift Wrap” prompts for after gift wrap is added as attribute in cart
  • Tweak – Don’t repeat product title twice in cart when simple checkbox giftwrap used.
  • Feature – show product parent relationship when simple checkbox wrap used for cart item wrap
  • Testing with WC 5.4

3.2.2 – 22 March 2021

  • Fix – Line item signaling fixed (CSS re-included) so wrap/parent relationships are clear in UI
  • Tweak – Add ‘woocommerce-gift-wrapper’ textdomain to WP Language directory – localized
  • Testing with WC 5.1
  • Testing with WP 5.7

3.3-beta1 – 8 March 2021

  • Testing with WC 5.0
  • Testing with WP 5.7
  • Feature – Provisions for adding gift wrap to cart items as attribute (handles 1:1 pricing natively)
  • Feature – Filter hooks ‘wcgwp_post_args’ and ‘wcgwp_wrap_posts’ added for handling of wrap lists acquired from WPDB
  • Fix – Do not show non-purchasable or out-of-stock wraps when showing wrap lists (several templates changed)
  • Tweak – Add ‘woocommerce-gift-wrapper’ textdomain to WP Language directory – localized
  • Tweak – clean up settings pages, hiding non-applicable settings with JS where possible

3.2.1 – 1 Feb 2021

  • Fix – Save Gift Wrapper version if none set in update_db() method
  • Testing with WC 4.9.2

3.2 – 29 Dec 2020

  • Feature – set max number of gift wraps possible for peri-cart/checkout wraps (not line item or per-product wrapping)
  • Fix – when singular wrap offering, don’t add gift wrap when not desired
  • Tweak – changes to assets/js/wcgwp-slide-product.js
  • Tweak – helpful CSS classes added to cart item row <tr> in cart

3.1.2 – 24 Dec 2020

  • Tweak – Make “none” selection possible for modal CSS animations
  • Tweak – wcgwp/modal-single-product.php fix for undefined variable $singular_class
  • Tweak – wcgwp/modal-single-product.php remove $checked variable from input – gift wrap being added when not desired
  • Tweak – get_posts() arg changed from to ‘posts_per_page’ to ‘numberposts’ & ‘no_found_rows’ added for speed

3.1.1 – 17 Dec 2020

  • Fix – for alternate-style modal: no default input selected on page load, causing wrap to be added when not requested
  • Tweak – load unminified scripts when ‘SCRIPT_DEBUG’ set in wp-config.php

3.1 – 14 Dec 2020

  • Feature – do not show textarea if textarea length set to 0 (zero) in Gift Wrapper settings
  • Feature – Some support for Woocommerce Product Bundles (https://woocommerce.com/products/product-bundles/) in cart and for YITH Woo Product Bundles single product (attribute) wrap
  • Fix – Save string values if they don’t exist before admin menu page loaded, rather than on plugin upgrade to avoid missing text values on front end
  • Tweak – add version numbers to enqueued JS
  • Testing with WooCommerce version 4.8

3.0.2 – 1 Dec 2020

  • Fix – Define wcgwpAnimate when NOT using animations
  • Tweak – remove incorrectly labeled classes from wc-giftwrap div
  • Tweak – additional CSS for Shopkeeper and The Retailer theme to try to help catch display issues

3.0.1 – Nov 28 2020

  • Fix – add_cart_item_data() method is not static in classes/wc-gift-wrapper-product.php
  • Tweak – no inline JS for admin (product gift wrap) settings pages
  • Tweak – sanitize license key input
  • Tweak – more PHPDoc block improvements

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)
  • Please clear your browser caches between version 2 and 3, especially if using Gift Wrapper template overrides.

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 your 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