Version Description
- Fixed: zoomed image did not change when select a variation
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Zoom Magnifier |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- README.txt +6 -2
- assets/js/frontend.js +3 -2
- assets/js/frontend.min.js +3 -3
- class.yith-wcmg-admin.php +1 -1
- class.yith-wcmg-frontend.php +1 -1
- class.yith-wcmg.php +2 -2
- functions.yith-wcmg.php +1 -1
- init.php +2 -2
- uninstall.php +1 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: zoom, magnifier, woocommerce, products, themes, yit, e-commerce, shop
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.5.1
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -22,7 +22,7 @@ Working demo are available:
|
|
22 |
**[LIVE DEMO 1](http://demo.yithemes.com/room09/product/africa-style/)** - **[LIVE DEMO 2](http://demo.yithemes.com/bazar/shop/ankle-shoes/)**
|
23 |
|
24 |
|
25 |
-
Full documentation is available [here](http://yithemes.com/docs-plugins/
|
26 |
|
27 |
|
28 |
= Installation =
|
@@ -69,6 +69,10 @@ The size of the Zoom Image is automatically setted. If you want to change these
|
|
69 |
|
70 |
== Changelog ==
|
71 |
|
|
|
|
|
|
|
|
|
72 |
= 1.0.6 =
|
73 |
|
74 |
* Removed white space from frontend.php
|
4 |
Tags: zoom, magnifier, woocommerce, products, themes, yit, e-commerce, shop
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
22 |
**[LIVE DEMO 1](http://demo.yithemes.com/room09/product/africa-style/)** - **[LIVE DEMO 2](http://demo.yithemes.com/bazar/shop/ankle-shoes/)**
|
23 |
|
24 |
|
25 |
+
Full documentation is available [here](http://yithemes.com/docs-plugins/yith_magnifier/).
|
26 |
|
27 |
|
28 |
= Installation =
|
69 |
|
70 |
== Changelog ==
|
71 |
|
72 |
+
= 1.0.7 =
|
73 |
+
|
74 |
+
* Fixed: zoomed image did not change when select a variation
|
75 |
+
|
76 |
= 1.0.6 =
|
77 |
|
78 |
* Removed white space from frontend.php
|
assets/js/frontend.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Zoom Magnifier
|
6 |
-
* @version 1.0.
|
7 |
*/
|
8 |
jQuery(document).ready(function($){
|
9 |
|
@@ -16,7 +16,7 @@ jQuery(document).ready(function($){
|
|
16 |
|
17 |
yith_wcmg.yith_magnifier(yith_magnifier_options);
|
18 |
|
19 |
-
$(
|
20 |
var image_magnifier = variation.image_magnifier ? variation.image_magnifier : yith_wcmg_default_zoom;
|
21 |
var image_src = variation.image_src ? variation.image_src : yith_wcmg_default_image;
|
22 |
|
@@ -41,3 +41,4 @@ jQuery(document).ready(function($){
|
|
41 |
|
42 |
$( 'form.variations_form .variations select').trigger('change');
|
43 |
});
|
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Zoom Magnifier
|
6 |
+
* @version 1.0.7
|
7 |
*/
|
8 |
jQuery(document).ready(function($){
|
9 |
|
16 |
|
17 |
yith_wcmg.yith_magnifier(yith_magnifier_options);
|
18 |
|
19 |
+
$( document ).on( 'found_variation', 'form.variations_form', function( event, variation ) {
|
20 |
var image_magnifier = variation.image_magnifier ? variation.image_magnifier : yith_wcmg_default_zoom;
|
21 |
var image_src = variation.image_src ? variation.image_src : yith_wcmg_default_image;
|
22 |
|
41 |
|
42 |
$( 'form.variations_form .variations select').trigger('change');
|
43 |
});
|
44 |
+
|
assets/js/frontend.min.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Zoom Magnifier
|
6 |
-
* @version 1.0.
|
7 |
*/
|
8 |
-
jQuery(document).ready(function(b){var a=b(".images"),d=b(".yith_magnifier_zoom"),f=b(".yith_magnifier_zoom img"),e=a.find(".yith_magnifier_zoom").attr("href"),g=a.find(".yith_magnifier_zoom img").attr("src");a.yith_magnifier(yith_magnifier_options);b(
|
9 |
-
function(){d.attr("href",e);a.data("yith_magnifier")&&a.yith_magnifier("destroy");a.yith_magnifier(yith_magnifier_options)});b("form.variations_form .variations select").trigger("change")});
|
3 |
*
|
4 |
* @author Your Inspiration Themes
|
5 |
* @package YITH WooCommerce Zoom Magnifier
|
6 |
+
* @version 1.0.7
|
7 |
*/
|
8 |
+
jQuery(document).ready(function(b){var a=b(".images"),d=b(".yith_magnifier_zoom"),f=b(".yith_magnifier_zoom img"),e=a.find(".yith_magnifier_zoom").attr("href"),g=a.find(".yith_magnifier_zoom img").attr("src");a.yith_magnifier(yith_magnifier_options);b(document).on("found_variation","form.variations_form",function(b,c){var h=c.image_src?c.image_src:g;d.attr("href",c.image_magnifier?c.image_magnifier:e);f.attr("src",h);a.data("yith_magnifier")&&a.yith_magnifier("destroy");a.yith_magnifier(yith_magnifier_options)}).on("reset_image",
|
9 |
+
function(b){d.attr("href",e);a.data("yith_magnifier")&&a.yith_magnifier("destroy");a.yith_magnifier(yith_magnifier_options)});b("form.variations_form .variations select").trigger("change")});
|
class.yith-wcmg-admin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
+
* @version 1.0.7
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
|
class.yith-wcmg-frontend.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
+
* @version 1.0.7
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
|
class.yith-wcmg.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
|
@@ -22,7 +22,7 @@ if( !class_exists( 'YITH_WCMG' ) ) {
|
|
22 |
* @var string
|
23 |
* @since 1.0.0
|
24 |
*/
|
25 |
-
public $version = '1.0.
|
26 |
|
27 |
/**
|
28 |
* Plugin object
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
+
* @version 1.0.7
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
|
22 |
* @var string
|
23 |
* @since 1.0.0
|
24 |
*/
|
25 |
+
public $version = '1.0.7';
|
26 |
|
27 |
/**
|
28 |
* Plugin object
|
functions.yith-wcmg.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
+
* @version 1.0.7
|
8 |
*/
|
9 |
|
10 |
if ( !defined( 'YITH_WCMG' ) ) { exit; } // Exit if accessed directly
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Zoom Magnifier
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images.
|
6 |
-
* Version: 1.0.
|
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 Magnifier
|
14 |
-
* @version 1.0.
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
3 |
* Plugin Name: YITH WooCommerce Zoom Magnifier
|
4 |
* Plugin URI: http://yithemes.com/
|
5 |
* Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images.
|
6 |
+
* Version: 1.0.7
|
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 Magnifier
|
14 |
+
* @version 1.0.7
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
uninstall.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
-
* @version 1.0.
|
8 |
*/
|
9 |
|
10 |
// If uninstall not called from WordPress exit
|
4 |
*
|
5 |
* @author Your Inspiration Themes
|
6 |
* @package YITH WooCommerce Zoom Magnifier
|
7 |
+
* @version 1.0.7
|
8 |
*/
|
9 |
|
10 |
// If uninstall not called from WordPress exit
|