Version Description
- Fixed: Add to cart Button on Compare page
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Compare |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- README.txt +5 -1
- class.yith-woocompare-admin.php +1 -1
- class.yith-woocompare-frontend.php +1 -1
- class.yith-woocompare-helper.php +1 -1
- class.yith-woocompare.php +1 -1
- functions.yith-woocompare.php +1 -1
- init.php +3 -3
- templates/compare.php +3 -3
- widgets/class.yith-woocompare-widget.php +1 -1
- yith-woocompare-options.php +1 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce, compare, compare products, product compare, widget
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.8.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -83,6 +83,10 @@ Yes, you can sort the fields in the compare table. You can do it in Woocommerce
|
|
83 |
|
84 |
== Changelog ==
|
85 |
|
|
|
|
|
|
|
|
|
86 |
= 1.1.0 =
|
87 |
|
88 |
* Added: Support to WooCommerce 2.1.X
|
4 |
Tags: woocommerce, compare, compare products, product compare, widget
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.8.1
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 1.1.1 =
|
87 |
+
|
88 |
+
* Fixed: Add to cart Button on Compare page
|
89 |
+
|
90 |
= 1.1.0 =
|
91 |
|
92 |
* Added: Support to WooCommerce 2.1.X
|
class.yith-woocompare-admin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Magnifier
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Magnifier
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
class.yith-woocompare-frontend.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
class.yith-woocompare-helper.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Compare
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Compare
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
class.yith-woocompare.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
functions.yith-woocompare.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH Woocommerce Compare
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: Your Inspiration Themes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
@@ -11,7 +11,7 @@
|
|
11 |
*
|
12 |
* @author Your Inspiration Themes
|
13 |
* @package YITH Woocommerce Compare
|
14 |
-
* @version 1.1.
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
@@ -44,7 +44,7 @@ function yith_woocompare_constructor() {
|
|
44 |
load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
|
45 |
|
46 |
define( 'YITH_WOOCOMPARE', true );
|
47 |
-
define( 'YITH_WOOCOMPARE_VERSION', '1.1.
|
48 |
define( 'YITH_WOOCOMPARE_URL', plugin_dir_url( __FILE__ ) );
|
49 |
define( 'YITH_WOOCOMPARE_DIR', plugin_dir_path( __FILE__ ) );
|
50 |
|
3 |
* Plugin Name: YITH Woocommerce Compare
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
|
6 |
+
* Version: 1.1.1
|
7 |
* Author: Your Inspiration Themes
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yit
|
11 |
*
|
12 |
* @author Your Inspiration Themes
|
13 |
* @package YITH Woocommerce Compare
|
14 |
+
* @version 1.1.1
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
44 |
load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
|
45 |
|
46 |
define( 'YITH_WOOCOMPARE', true );
|
47 |
+
define( 'YITH_WOOCOMPARE_VERSION', '1.1.1' );
|
48 |
define( 'YITH_WOOCOMPARE_URL', plugin_dir_url( __FILE__ ) );
|
49 |
define( 'YITH_WOOCOMPARE_DIR', plugin_dir_path( __FILE__ ) );
|
50 |
|
templates/compare.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
global $product;
|
@@ -125,7 +125,7 @@ $wc_get_template = function_exists('wc_get_template') ? 'wc_get_template' : 'woo
|
|
125 |
break;
|
126 |
|
127 |
case 'add-to-cart':
|
128 |
-
$wc_get_template( 'loop/add-to-cart.php' );
|
129 |
break;
|
130 |
|
131 |
default:
|
@@ -156,7 +156,7 @@ $wc_get_template = function_exists('wc_get_template') ? 'wc_get_template' : 'woo
|
|
156 |
<th><?php echo $fields['add-to-cart'] ?></th>
|
157 |
|
158 |
<?php foreach( $products as $i => $product ) : $product_class = ( $i % 2 == 0 ? 'odd' : 'even' ) . ' product_' . $product->id ?>
|
159 |
-
<td class="<?php echo $product_class ?>"><?php $wc_get_template( 'loop/add-to-cart.php' ); ?></td>
|
160 |
<?php endforeach; ?>
|
161 |
|
162 |
</tr>
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
global $product;
|
125 |
break;
|
126 |
|
127 |
case 'add-to-cart':
|
128 |
+
$wc_get_template( 'loop/add-to-cart.php', array( 'product' => $product ) );
|
129 |
break;
|
130 |
|
131 |
default:
|
156 |
<th><?php echo $fields['add-to-cart'] ?></th>
|
157 |
|
158 |
<?php foreach( $products as $i => $product ) : $product_class = ( $i % 2 == 0 ? 'odd' : 'even' ) . ' product_' . $product->id ?>
|
159 |
+
<td class="<?php echo $product_class ?>"><?php $wc_get_template( 'loop/add-to-cart.php', array( 'product' => $product ) ); ?></td>
|
160 |
<?php endforeach; ?>
|
161 |
|
162 |
</tr>
|
widgets/class.yith-woocompare-widget.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Ajax Navigation
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
yith-woocompare-options.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
-
* @version 1.1.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH Woocommerce Compare
|
7 |
+
* @version 1.1.1
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WOOCOMPARE' ) ) { exit; } // Exit if accessed directly
|