Version Description
Release Date - 26 February 2017
- Fixed an issue with W3 Total Cache compatibility
- Added public functions
Download this release
Release Info
Developer | templateinvaders |
Plugin | WooCommerce Wishlist Plugin |
Version | 1.1.9 |
Comparing to | |
See all releases |
Code changes from version 1.1.8 to 1.1.9
- includes/tinvwl.class.php +1 -1
- languages/ti-woocommerce-wishlist.pot +20 -14
- public/addtowishlist.class.php +24 -14
- public/cart.class.php +17 -6
- public/tinvwl.class.php +23 -3
- public/wishlist/view.class.php +20 -10
- readme.txt +11 -1
- ti-woocommerce-wishlist.php +2 -2
- tinv-wishlists-function.php +54 -1
includes/tinvwl.class.php
CHANGED
@@ -54,7 +54,7 @@ class TInvWL {
|
|
54 |
$this->load_function();
|
55 |
$this->define_hooks();
|
56 |
$this->object_admin = new TInvWL_Admin_TInvWL( $this->_n, $this->_v );
|
57 |
-
$this->object_public =
|
58 |
}
|
59 |
|
60 |
/**
|
54 |
$this->load_function();
|
55 |
$this->define_hooks();
|
56 |
$this->object_admin = new TInvWL_Admin_TInvWL( $this->_n, $this->_v );
|
57 |
+
$this->object_public = TInvWL_Public_TInvWL::instance( $this->_n, $this->_v );
|
58 |
}
|
59 |
|
60 |
/**
|
languages/ti-woocommerce-wishlist.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: TI WooCommerce Wishlist\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2017-
|
7 |
"POT-Revision-Date: Sun Apr 10 2016 12:21:06 GMT+0200 (Västeuropa, "
|
8 |
"sommartid)\n"
|
9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
@@ -20,7 +20,7 @@ msgstr ""
|
|
20 |
"_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
|
21 |
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
|
22 |
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
|
23 |
-
"X-Generator: Poedit 1.8.
|
24 |
"X-Poedit-SearchPath-0: ..\n"
|
25 |
|
26 |
#: ../admin/basestyle.helper.php:57
|
@@ -80,7 +80,7 @@ msgid "Wishlist Page Options"
|
|
80 |
msgstr ""
|
81 |
|
82 |
#: ../admin/settings/general.class.php:90
|
83 |
-
#: ../admin/settings/general.class.php:107 ../public/tinvwl.class.php:
|
84 |
msgid "Coming soon"
|
85 |
msgstr ""
|
86 |
|
@@ -723,7 +723,7 @@ msgid "Page Setup"
|
|
723 |
msgstr ""
|
724 |
|
725 |
#: ../includes/wizard.class.php:281 ../includes/wizard.class.php:311
|
726 |
-
#: ../public/tinvwl.class.php:
|
727 |
msgid "Wishlist"
|
728 |
msgstr ""
|
729 |
|
@@ -755,19 +755,25 @@ msgstr ""
|
|
755 |
msgid "Ready!"
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: ../public/addtowishlist.class.php:
|
759 |
msgid "Product option is not selected!"
|
760 |
msgstr ""
|
761 |
|
762 |
-
#: ../public/tinvwl.class.php:
|
763 |
#, php-format
|
764 |
msgid "%1$s of %2$s"
|
765 |
msgstr ""
|
766 |
|
767 |
-
#: ../public/tinvwl.class.php:
|
768 |
msgid "Create New"
|
769 |
msgstr ""
|
770 |
|
|
|
|
|
|
|
|
|
|
|
|
|
771 |
#: ../public/wishlist/buttons.class.php:53
|
772 |
#, php-format
|
773 |
msgid "Apply %s"
|
@@ -786,7 +792,7 @@ msgid "Remove"
|
|
786 |
msgstr ""
|
787 |
|
788 |
#: ../public/wishlist/buttons.class.php:347
|
789 |
-
#: ../public/wishlist/view.class.php:
|
790 |
#, php-format
|
791 |
msgid "“%s”"
|
792 |
msgstr ""
|
@@ -798,25 +804,25 @@ msgid_plural "%s have been successfully removed from wishlist."
|
|
798 |
msgstr[0] ""
|
799 |
msgstr[1] ""
|
800 |
|
801 |
-
#: ../public/wishlist/view.class.php:
|
802 |
#, php-format
|
803 |
msgid "%s has been removed from wishlist."
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: ../public/wishlist/view.class.php:
|
807 |
#, php-format
|
808 |
msgid "%s has not been removed from wishlist."
|
809 |
msgstr ""
|
810 |
|
811 |
-
#: ../public/wishlist/view.class.php:
|
812 |
msgid "Return to Wishlist"
|
813 |
msgstr ""
|
814 |
|
815 |
-
#: ../public/wishlist/view.class.php:
|
816 |
msgid "Previous Page"
|
817 |
msgstr ""
|
818 |
|
819 |
-
#: ../public/wishlist/view.class.php:
|
820 |
msgid "Next Page"
|
821 |
msgstr ""
|
822 |
|
@@ -868,7 +874,7 @@ msgstr ""
|
|
868 |
msgid "In stock"
|
869 |
msgstr ""
|
870 |
|
871 |
-
#: ../tinv-wishlists-function.php:
|
872 |
msgid "Select options"
|
873 |
msgstr ""
|
874 |
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: TI WooCommerce Wishlist\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2017-02-26 22:07+0700\n"
|
7 |
"POT-Revision-Date: Sun Apr 10 2016 12:21:06 GMT+0200 (Västeuropa, "
|
8 |
"sommartid)\n"
|
9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
20 |
"_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
|
21 |
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
|
22 |
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
|
23 |
+
"X-Generator: Poedit 1.8.11\n"
|
24 |
"X-Poedit-SearchPath-0: ..\n"
|
25 |
|
26 |
#: ../admin/basestyle.helper.php:57
|
80 |
msgstr ""
|
81 |
|
82 |
#: ../admin/settings/general.class.php:90
|
83 |
+
#: ../admin/settings/general.class.php:107 ../public/tinvwl.class.php:221
|
84 |
msgid "Coming soon"
|
85 |
msgstr ""
|
86 |
|
723 |
msgstr ""
|
724 |
|
725 |
#: ../includes/wizard.class.php:281 ../includes/wizard.class.php:311
|
726 |
+
#: ../public/tinvwl.class.php:423
|
727 |
msgid "Wishlist"
|
728 |
msgstr ""
|
729 |
|
755 |
msgid "Ready!"
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: ../public/addtowishlist.class.php:172
|
759 |
msgid "Product option is not selected!"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: ../public/tinvwl.class.php:220
|
763 |
#, php-format
|
764 |
msgid "%1$s of %2$s"
|
765 |
msgstr ""
|
766 |
|
767 |
+
#: ../public/tinvwl.class.php:359
|
768 |
msgid "Create New"
|
769 |
msgstr ""
|
770 |
|
771 |
+
#: ../public/tinvwl.class.php:361
|
772 |
+
msgid ""
|
773 |
+
"Please select some product options before adding this product to your "
|
774 |
+
"wishlist."
|
775 |
+
msgstr ""
|
776 |
+
|
777 |
#: ../public/wishlist/buttons.class.php:53
|
778 |
#, php-format
|
779 |
msgid "Apply %s"
|
792 |
msgstr ""
|
793 |
|
794 |
#: ../public/wishlist/buttons.class.php:347
|
795 |
+
#: ../public/wishlist/view.class.php:242
|
796 |
#, php-format
|
797 |
msgid "“%s”"
|
798 |
msgstr ""
|
804 |
msgstr[0] ""
|
805 |
msgstr[1] ""
|
806 |
|
807 |
+
#: ../public/wishlist/view.class.php:244
|
808 |
#, php-format
|
809 |
msgid "%s has been removed from wishlist."
|
810 |
msgstr ""
|
811 |
|
812 |
+
#: ../public/wishlist/view.class.php:246
|
813 |
#, php-format
|
814 |
msgid "%s has not been removed from wishlist."
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: ../public/wishlist/view.class.php:322
|
818 |
msgid "Return to Wishlist"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: ../public/wishlist/view.class.php:402
|
822 |
msgid "Previous Page"
|
823 |
msgstr ""
|
824 |
|
825 |
+
#: ../public/wishlist/view.class.php:411
|
826 |
msgid "Next Page"
|
827 |
msgstr ""
|
828 |
|
874 |
msgid "In stock"
|
875 |
msgstr ""
|
876 |
|
877 |
+
#: ../tinv-wishlists-function.php:655
|
878 |
msgid "Select options"
|
879 |
msgstr ""
|
880 |
|
public/addtowishlist.class.php
CHANGED
@@ -22,12 +22,6 @@ class TInvWL_Public_AddToWishlist {
|
|
22 |
* @var string
|
23 |
*/
|
24 |
private $_n;
|
25 |
-
/**
|
26 |
-
* Plugin version
|
27 |
-
*
|
28 |
-
* @var string
|
29 |
-
*/
|
30 |
-
private $_v;
|
31 |
/**
|
32 |
* Global product
|
33 |
*
|
@@ -40,17 +34,34 @@ class TInvWL_Public_AddToWishlist {
|
|
40 |
* @var array
|
41 |
*/
|
42 |
private $wishlist;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
|
45 |
/**
|
46 |
* Constructor
|
47 |
*
|
48 |
* @param string $plugin_name Plugin name.
|
49 |
-
* @param string $version Plugin version.
|
50 |
*/
|
51 |
-
function __construct( $plugin_name
|
52 |
$this->_n = $plugin_name;
|
53 |
-
$this->_v = $version;
|
54 |
$this->define_hooks();
|
55 |
}
|
56 |
|
@@ -60,15 +71,14 @@ class TInvWL_Public_AddToWishlist {
|
|
60 |
function define_hooks() {
|
61 |
switch ( tinv_get_option( 'add_to_wishlist', 'position' ) ) {
|
62 |
case 'before':
|
63 |
-
add_action( 'woocommerce_before_add_to_cart_button',
|
64 |
-
add_action( 'woocommerce_single_product_summary',
|
65 |
break;
|
66 |
case 'after':
|
67 |
-
add_action( 'woocommerce_after_add_to_cart_button',
|
68 |
-
add_action( 'woocommerce_single_product_summary',
|
69 |
break;
|
70 |
}
|
71 |
-
add_shortcode( 'ti_wishlists_addtowishlist', array( $this, 'shortcode' ) );
|
72 |
|
73 |
add_action( 'wp_loaded', array( $this, 'add_to_wishlist' ), 0 );
|
74 |
}
|
22 |
* @var string
|
23 |
*/
|
24 |
private $_n;
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
/**
|
26 |
* Global product
|
27 |
*
|
34 |
* @var array
|
35 |
*/
|
36 |
private $wishlist;
|
37 |
+
/**
|
38 |
+
* This class
|
39 |
+
*
|
40 |
+
* @var \TInvWL_Public_AddToWishlist
|
41 |
+
*/
|
42 |
+
protected static $_instance = null;
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Get this class object
|
46 |
+
*
|
47 |
+
* @param string $plugin_name Plugin name.
|
48 |
+
* @return \TInvWL_Public_AddToWishlist
|
49 |
+
*/
|
50 |
+
public static function instance( $plugin_name = TINVWL_PREFIX ) {
|
51 |
+
if ( is_null( self::$_instance ) ) {
|
52 |
+
self::$_instance = new self( $plugin_name );
|
53 |
+
}
|
54 |
+
return self::$_instance;
|
55 |
+
}
|
56 |
|
57 |
|
58 |
/**
|
59 |
* Constructor
|
60 |
*
|
61 |
* @param string $plugin_name Plugin name.
|
|
|
62 |
*/
|
63 |
+
function __construct( $plugin_name ) {
|
64 |
$this->_n = $plugin_name;
|
|
|
65 |
$this->define_hooks();
|
66 |
}
|
67 |
|
71 |
function define_hooks() {
|
72 |
switch ( tinv_get_option( 'add_to_wishlist', 'position' ) ) {
|
73 |
case 'before':
|
74 |
+
add_action( 'woocommerce_before_add_to_cart_button', 'tinvwl_view_addto_html', 0 );
|
75 |
+
add_action( 'woocommerce_single_product_summary', 'tinvwl_view_addto_htmlout', 29 );
|
76 |
break;
|
77 |
case 'after':
|
78 |
+
add_action( 'woocommerce_after_add_to_cart_button', 'tinvwl_view_addto_html', 0 );
|
79 |
+
add_action( 'woocommerce_single_product_summary', 'tinvwl_view_addto_htmlout', 31 );
|
80 |
break;
|
81 |
}
|
|
|
82 |
|
83 |
add_action( 'wp_loaded', array( $this, 'add_to_wishlist' ), 0 );
|
84 |
}
|
public/cart.class.php
CHANGED
@@ -23,21 +23,32 @@ class TInvWL_Public_Cart {
|
|
23 |
*/
|
24 |
static $_n;
|
25 |
/**
|
26 |
-
*
|
27 |
*
|
28 |
-
* @var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
*/
|
30 |
-
static $
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
/**
|
33 |
* Constructor
|
34 |
*
|
35 |
* @param string $plugin_name Plugin name.
|
36 |
-
* @param string $version Plugin version.
|
37 |
*/
|
38 |
-
function __construct( $plugin_name
|
39 |
self::$_n = $plugin_name;
|
40 |
-
self::$_v = $version;
|
41 |
$this->define_hooks();
|
42 |
}
|
43 |
|
23 |
*/
|
24 |
static $_n;
|
25 |
/**
|
26 |
+
* This class
|
27 |
*
|
28 |
+
* @var \TInvWL_Public_Cart
|
29 |
+
*/
|
30 |
+
protected static $_instance = null;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Get this class object
|
34 |
+
*
|
35 |
+
* @param string $plugin_name Plugin name.
|
36 |
+
* @return \TInvWL_Public_Cart
|
37 |
*/
|
38 |
+
public static function instance( $plugin_name = TINVWL_PREFIX ) {
|
39 |
+
if ( is_null( self::$_instance ) ) {
|
40 |
+
self::$_instance = new self( $plugin_name );
|
41 |
+
}
|
42 |
+
return self::$_instance;
|
43 |
+
}
|
44 |
|
45 |
/**
|
46 |
* Constructor
|
47 |
*
|
48 |
* @param string $plugin_name Plugin name.
|
|
|
49 |
*/
|
50 |
+
function __construct( $plugin_name ) {
|
51 |
self::$_n = $plugin_name;
|
|
|
52 |
$this->define_hooks();
|
53 |
}
|
54 |
|
public/tinvwl.class.php
CHANGED
@@ -29,6 +29,26 @@ class TInvWL_Public_TInvWL {
|
|
29 |
* @var string
|
30 |
*/
|
31 |
public $_v;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
/**
|
34 |
* Constructor
|
@@ -56,9 +76,9 @@ class TInvWL_Public_TInvWL {
|
|
56 |
add_filter( 'woocommerce_locate_core_template', array( $this, 'locate_template' ), 10, 3 );
|
57 |
add_filter( 'woocommerce_locate_template', array( $this, 'locate_template' ), 10, 3 );
|
58 |
|
59 |
-
$this->
|
60 |
-
$this->
|
61 |
-
$this->cart
|
62 |
}
|
63 |
|
64 |
/**
|
29 |
* @var string
|
30 |
*/
|
31 |
public $_v;
|
32 |
+
/**
|
33 |
+
* This class
|
34 |
+
*
|
35 |
+
* @var \TInvWL_Public_TInvWL
|
36 |
+
*/
|
37 |
+
protected static $_instance = null;
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Get this class object
|
41 |
+
*
|
42 |
+
* @param string $plugin_name Plugin name.
|
43 |
+
* @param string $version Plugin version.
|
44 |
+
* @return \TInvWL_Public_TInvWL
|
45 |
+
*/
|
46 |
+
public static function instance( $plugin_name = TINVWL_PREFIX, $version = TINVWL_VERSION ) {
|
47 |
+
if ( is_null( self::$_instance ) ) {
|
48 |
+
self::$_instance = new self( $plugin_name, $version );
|
49 |
+
}
|
50 |
+
return self::$_instance;
|
51 |
+
}
|
52 |
|
53 |
/**
|
54 |
* Constructor
|
76 |
add_filter( 'woocommerce_locate_core_template', array( $this, 'locate_template' ), 10, 3 );
|
77 |
add_filter( 'woocommerce_locate_template', array( $this, 'locate_template' ), 10, 3 );
|
78 |
|
79 |
+
$this->addto = TInvWL_Public_AddToWishlist::instance( $this->_n );
|
80 |
+
$this->view = TInvWL_Public_Wishlist_View::instance( $this->_n );
|
81 |
+
$this->cart = TInvWL_Public_Cart::instance( $this->_n );
|
82 |
}
|
83 |
|
84 |
/**
|
public/wishlist/view.class.php
CHANGED
@@ -22,12 +22,6 @@ class TInvWL_Public_Wishlist_View {
|
|
22 |
* @var string
|
23 |
*/
|
24 |
private $_n;
|
25 |
-
/**
|
26 |
-
* Plugin version
|
27 |
-
*
|
28 |
-
* @var string
|
29 |
-
*/
|
30 |
-
private $_v;
|
31 |
|
32 |
/**
|
33 |
* List per page
|
@@ -35,16 +29,33 @@ class TInvWL_Public_Wishlist_View {
|
|
35 |
* @var integer
|
36 |
*/
|
37 |
private $lists_per_page;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
/**
|
40 |
* Constructor
|
41 |
*
|
42 |
* @param string $plugin_name Plugin name.
|
43 |
-
* @param string $version Plugin version.
|
44 |
*/
|
45 |
-
function __construct( $plugin_name
|
46 |
$this->_n = $plugin_name;
|
47 |
-
$this->_v = $version;
|
48 |
$this->define_hooks();
|
49 |
}
|
50 |
|
@@ -52,7 +63,6 @@ class TInvWL_Public_Wishlist_View {
|
|
52 |
* Defined shortcode and hooks
|
53 |
*/
|
54 |
function define_hooks() {
|
55 |
-
add_shortcode( 'ti_wishlistsview', array( $this, 'shortcode' ) );
|
56 |
add_action( 'wp', array( $this, 'wishlist_action' ), 0 );
|
57 |
|
58 |
add_action( 'tinvwl_before_wishlist', array( $this, 'wishlist_header' ) );
|
22 |
* @var string
|
23 |
*/
|
24 |
private $_n;
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
/**
|
27 |
* List per page
|
29 |
* @var integer
|
30 |
*/
|
31 |
private $lists_per_page;
|
32 |
+
/**
|
33 |
+
* This class
|
34 |
+
*
|
35 |
+
* @var \TInvWL_Public_Wishlist_View
|
36 |
+
*/
|
37 |
+
protected static $_instance = null;
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Get this class object
|
41 |
+
*
|
42 |
+
* @param string $plugin_name Plugin name.
|
43 |
+
* @return \TInvWL_Public_Wishlist_View
|
44 |
+
*/
|
45 |
+
public static function instance( $plugin_name = TINVWL_PREFIX ) {
|
46 |
+
if ( is_null( self::$_instance ) ) {
|
47 |
+
self::$_instance = new self( $plugin_name );
|
48 |
+
}
|
49 |
+
return self::$_instance;
|
50 |
+
}
|
51 |
|
52 |
/**
|
53 |
* Constructor
|
54 |
*
|
55 |
* @param string $plugin_name Plugin name.
|
|
|
56 |
*/
|
57 |
+
function __construct( $plugin_name ) {
|
58 |
$this->_n = $plugin_name;
|
|
|
59 |
$this->define_hooks();
|
60 |
}
|
61 |
|
63 |
* Defined shortcode and hooks
|
64 |
*/
|
65 |
function define_hooks() {
|
|
|
66 |
add_action( 'wp', array( $this, 'wishlist_action' ), 0 );
|
67 |
|
68 |
add_action( 'tinvwl_before_wishlist', array( $this, 'wishlist_header' ) );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://templateinvaders.com/
|
|
4 |
Tags: wishlist, woocommerce, products, e-commerce, shop, ecommerce wishlist, woocommerce wishlist, woocommerce , shop wishlist, wishlist for Woocommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -114,17 +114,27 @@ There are few ways to install TI WooCommerce Wishlist plugin:
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
= 1.1.8 =
|
118 |
*Release Date - 03 February 2017*
|
119 |
|
120 |
* Fixed an issue with "Add to Wishlist" function in a quick view popup (Compatibility with plugins that provide QuickView functionality)
|
121 |
* Added JavaScript alert for the "Add to Wishlist" button on a single product page when no variations are selected
|
122 |
|
|
|
123 |
= 1.1.7 =
|
124 |
*Release Date - 30 January 2017*
|
125 |
|
126 |
* Fixed an issue when maximum 10 products can be added to cart from a Wishlist page using the "Add all to cart" button
|
127 |
|
|
|
128 |
= 1.1.6 =
|
129 |
*Release Date - 27 January 2017*
|
130 |
|
4 |
Tags: wishlist, woocommerce, products, e-commerce, shop, ecommerce wishlist, woocommerce wishlist, woocommerce , shop wishlist, wishlist for Woocommerce
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.1.9
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
114 |
|
115 |
== Changelog ==
|
116 |
|
117 |
+
|
118 |
+
= 1.1.9 =
|
119 |
+
*Release Date - 26 February 2017*
|
120 |
+
|
121 |
+
* Fixed an issue with W3 Total Cache compatibility
|
122 |
+
* Added public functions
|
123 |
+
|
124 |
+
|
125 |
= 1.1.8 =
|
126 |
*Release Date - 03 February 2017*
|
127 |
|
128 |
* Fixed an issue with "Add to Wishlist" function in a quick view popup (Compatibility with plugins that provide QuickView functionality)
|
129 |
* Added JavaScript alert for the "Add to Wishlist" button on a single product page when no variations are selected
|
130 |
|
131 |
+
|
132 |
= 1.1.7 =
|
133 |
*Release Date - 30 January 2017*
|
134 |
|
135 |
* Fixed an issue when maximum 10 products can be added to cart from a Wishlist page using the "Add all to cart" button
|
136 |
|
137 |
+
|
138 |
= 1.1.6 =
|
139 |
*Release Date - 27 January 2017*
|
140 |
|
ti-woocommerce-wishlist.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: TI WooCommerce Wishlist
|
5 |
* Plugin URI: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
-
* Version: 1.1.
|
8 |
* Author: Template Invaders
|
9 |
* Author URI: https://templateinvaders.com/
|
10 |
* License: GPL-2.0+
|
@@ -37,7 +37,7 @@ if ( ! defined( 'TINVWL_DOMAIN' ) ) {
|
|
37 |
}
|
38 |
|
39 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
40 |
-
define( 'TINVWL_FVERSION', '1.1.
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
4 |
* Plugin Name: TI WooCommerce Wishlist
|
5 |
* Plugin URI: https://templateinvaders.com/product/ti-woocommerce-wishlist-wordpress-plugin/
|
6 |
* Description: Wishlist functionality for your WooCommerce store.
|
7 |
+
* Version: 1.1.9
|
8 |
* Author: Template Invaders
|
9 |
* Author URI: https://templateinvaders.com/
|
10 |
* License: GPL-2.0+
|
37 |
}
|
38 |
|
39 |
if ( ! defined( 'TINVWL_FVERSION' ) ) {
|
40 |
+
define( 'TINVWL_FVERSION', '1.1.9' );
|
41 |
}
|
42 |
|
43 |
if ( ! defined( 'TINVWL_LOAD_FREE' ) ) {
|
tinv-wishlists-function.php
CHANGED
@@ -599,31 +599,36 @@ if ( ! function_exists( 'tinvwl_w3total_reject_uri' ) ) {
|
|
599 |
if ( ! in_array( $page, $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
600 |
$settings[] = $page;
|
601 |
$config->set( 'dbcache.reject.uri', $settings );
|
|
|
602 |
}
|
603 |
$page = preg_replace( "/^\//", '', str_replace( get_site_url(), '', get_permalink( tinv_get_option( 'page', 'manage' ) ) ) ); // @codingStandardsIgnoreLine Squiz.Strings.DoubleQuoteUsage.NotRequired
|
604 |
if ( ! in_array( $page, $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
605 |
$settings[] = $page;
|
606 |
$config->set( 'dbcache.reject.uri', $settings );
|
|
|
607 |
}
|
608 |
$settings = array_map( 'trim', $config->get_array( 'pgcache.reject.uri' ) );
|
609 |
$page = preg_replace( "/^\//", '', str_replace( get_site_url(), '', get_permalink( tinv_get_option( 'page', 'wishlist' ) ) ) ); // @codingStandardsIgnoreLine Squiz.Strings.DoubleQuoteUsage.NotRequired
|
610 |
if ( ! in_array( $page, $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
611 |
$settings[] = $page;
|
612 |
$config->set( 'pgcache.reject.uri', $settings );
|
|
|
613 |
}
|
614 |
$page = preg_replace( "/^\//", '', str_replace( get_site_url(), '', get_permalink( tinv_get_option( 'page', 'manage' ) ) ) ); // @codingStandardsIgnoreLine Squiz.Strings.DoubleQuoteUsage.NotRequired
|
615 |
if ( ! in_array( $page, $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
616 |
$settings[] = $page;
|
617 |
$config->set( 'pgcache.reject.uri', $settings );
|
|
|
618 |
}
|
619 |
$settings = array_map( 'trim', $config->get_array( 'pgcache.reject.cookie' ) );
|
620 |
if ( ! in_array( 'tinv_wishlist', $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
621 |
$settings[] = 'tinv_wishlist';
|
622 |
$config->set( 'pgcache.reject.cookie', $settings );
|
|
|
623 |
}
|
624 |
}
|
625 |
|
626 |
-
add_action( '
|
627 |
}
|
628 |
|
629 |
if ( ! function_exists( 'gf_productaddon_support' ) ) {
|
@@ -690,3 +695,51 @@ if ( ! function_exists( 'gf_productaddon_support' ) ) {
|
|
690 |
|
691 |
add_action( 'init', 'gf_productaddon_support' );
|
692 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
599 |
if ( ! in_array( $page, $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
600 |
$settings[] = $page;
|
601 |
$config->set( 'dbcache.reject.uri', $settings );
|
602 |
+
$config->save();
|
603 |
}
|
604 |
$page = preg_replace( "/^\//", '', str_replace( get_site_url(), '', get_permalink( tinv_get_option( 'page', 'manage' ) ) ) ); // @codingStandardsIgnoreLine Squiz.Strings.DoubleQuoteUsage.NotRequired
|
605 |
if ( ! in_array( $page, $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
606 |
$settings[] = $page;
|
607 |
$config->set( 'dbcache.reject.uri', $settings );
|
608 |
+
$config->save();
|
609 |
}
|
610 |
$settings = array_map( 'trim', $config->get_array( 'pgcache.reject.uri' ) );
|
611 |
$page = preg_replace( "/^\//", '', str_replace( get_site_url(), '', get_permalink( tinv_get_option( 'page', 'wishlist' ) ) ) ); // @codingStandardsIgnoreLine Squiz.Strings.DoubleQuoteUsage.NotRequired
|
612 |
if ( ! in_array( $page, $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
613 |
$settings[] = $page;
|
614 |
$config->set( 'pgcache.reject.uri', $settings );
|
615 |
+
$config->save();
|
616 |
}
|
617 |
$page = preg_replace( "/^\//", '', str_replace( get_site_url(), '', get_permalink( tinv_get_option( 'page', 'manage' ) ) ) ); // @codingStandardsIgnoreLine Squiz.Strings.DoubleQuoteUsage.NotRequired
|
618 |
if ( ! in_array( $page, $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
619 |
$settings[] = $page;
|
620 |
$config->set( 'pgcache.reject.uri', $settings );
|
621 |
+
$config->save();
|
622 |
}
|
623 |
$settings = array_map( 'trim', $config->get_array( 'pgcache.reject.cookie' ) );
|
624 |
if ( ! in_array( 'tinv_wishlist', $settings ) ) { // @codingStandardsIgnoreLine WordPress.PHP.StrictInArray.MissingTrueStrict
|
625 |
$settings[] = 'tinv_wishlist';
|
626 |
$config->set( 'pgcache.reject.cookie', $settings );
|
627 |
+
$config->save();
|
628 |
}
|
629 |
}
|
630 |
|
631 |
+
add_action( 'admin_init', 'tinvwl_w3total_reject_uri' );
|
632 |
}
|
633 |
|
634 |
if ( ! function_exists( 'gf_productaddon_support' ) ) {
|
695 |
|
696 |
add_action( 'init', 'gf_productaddon_support' );
|
697 |
}
|
698 |
+
|
699 |
+
if ( ! function_exists( 'tinvwl_shortcode_addtowishlist' ) ) {
|
700 |
+
/**
|
701 |
+
* Shortcode Add To Wishlist
|
702 |
+
*
|
703 |
+
* @param array $atts Array parameter from shortcode.
|
704 |
+
* @return string
|
705 |
+
*/
|
706 |
+
function tinvwl_shortcode_addtowishlist( $atts = array() ) {
|
707 |
+
$class = TInvWL_Public_AddToWishlist::instance();
|
708 |
+
return $class->shortcode( $atts );
|
709 |
+
}
|
710 |
+
add_shortcode( 'ti_wishlists_addtowishlist', 'tinvwl_shortcode_addtowishlist' );
|
711 |
+
}
|
712 |
+
|
713 |
+
if ( ! function_exists( 'tinvwl_shortcode_view' ) ) {
|
714 |
+
/**
|
715 |
+
* Shortcode view Wishlist
|
716 |
+
*
|
717 |
+
* @param array $atts Array parameter from shortcode.
|
718 |
+
* @return string
|
719 |
+
*/
|
720 |
+
function tinvwl_shortcode_view( $atts = array() ) {
|
721 |
+
$class = TInvWL_Public_Wishlist_View::instance();
|
722 |
+
return $class->shortcode( $atts );
|
723 |
+
}
|
724 |
+
add_shortcode( 'ti_wishlistsview', 'tinvwl_shortcode_view' );
|
725 |
+
}
|
726 |
+
|
727 |
+
if ( ! function_exists( 'tinvwl_view_addto_html' ) ) {
|
728 |
+
/**
|
729 |
+
* Show button Add to Wishlsit
|
730 |
+
*/
|
731 |
+
function tinvwl_view_addto_html() {
|
732 |
+
$class = TInvWL_Public_AddToWishlist::instance();
|
733 |
+
$class->htmloutput();
|
734 |
+
}
|
735 |
+
}
|
736 |
+
|
737 |
+
if ( ! function_exists( 'tinvwl_view_addto_htmlout' ) ) {
|
738 |
+
/**
|
739 |
+
* Show button Add to Wishlsit, if product is not purchasable
|
740 |
+
*/
|
741 |
+
function tinvwl_view_addto_htmlout() {
|
742 |
+
$class = TInvWL_Public_AddToWishlist::instance();
|
743 |
+
$class->htmloutput_out();
|
744 |
+
}
|
745 |
+
}
|