Version Description
- Fix text type select list
Download this release
Release Info
Developer | EmranAhmed |
Plugin | WooCommerce Variation Swatches |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- README.txt +7 -4
- assets/css/admin.css +2 -2
- assets/css/admin.min.css +2 -2
- assets/css/frontend.css +2 -2
- assets/css/frontend.min.css +2 -2
- assets/js/admin.js +2 -2
- assets/js/frontend.js +2 -2
- includes/functions.php +8 -9
- webpack.mix.js +1 -1
- woo-variation-swatches.php +3 -3
README.txt
CHANGED
@@ -12,7 +12,7 @@ Beautiful Color, Image and Buttons Variation Swatches For WooCommerce Product At
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
[youtube https://www.youtube.com/watch?v=
|
16 |
|
17 |
Woo Variation Swatches is easy to use WooCommerce product variation swatches plugin. It offers an aesthetic and professional experience to select attributes for variation products. It turns the product variation select options fields into radio images, colors, and label. It means with the help of this powerful WooCommerce color or image variation swatches plugin, you can show product variation items in images, colors, and label. So, you can say goodbye to dropdown product attribute fields.
|
18 |
|
@@ -29,9 +29,8 @@ Woo Variation Swatches not only offers the color, image and label attributes in
|
|
29 |
* No extra option and no conclusion.
|
30 |
|
31 |
= Links =
|
32 |
-
|
33 |
-
|
34 |
-
* [Github](https://github.com/EmranAhmed/woo-variation-swatches/?utm_source=wordpress.org&utm_campaign=Woo+Variation+Swatches)
|
35 |
|
36 |
== Installation ==
|
37 |
|
@@ -95,6 +94,10 @@ Yes, it supports any kinds of product quick view.
|
|
95 |
|
96 |
== Changelog ==
|
97 |
|
|
|
|
|
|
|
|
|
98 |
= 1.0.0 =
|
99 |
|
100 |
* Initial release
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
[youtube https://www.youtube.com/watch?v=BySSYFuqwls]
|
16 |
|
17 |
Woo Variation Swatches is easy to use WooCommerce product variation swatches plugin. It offers an aesthetic and professional experience to select attributes for variation products. It turns the product variation select options fields into radio images, colors, and label. It means with the help of this powerful WooCommerce color or image variation swatches plugin, you can show product variation items in images, colors, and label. So, you can say goodbye to dropdown product attribute fields.
|
18 |
|
29 |
* No extra option and no conclusion.
|
30 |
|
31 |
= Links =
|
32 |
+
|
33 |
+
> [Facebook Group](https://www.facebook.com/groups/GetWooPlugins/) | [Github](https://github.com/EmranAhmed/woo-variation-swatches/?utm_source=wordpress.org&utm_campaign=Woo+Variation+Swatches) | [Website](https://getwooplugins.com/?utm_source=wordpress.org&utm_campaign=Woo+Variation+Swatches)
|
|
|
34 |
|
35 |
== Installation ==
|
36 |
|
94 |
|
95 |
== Changelog ==
|
96 |
|
97 |
+
= 1.0.1 =
|
98 |
+
|
99 |
+
* Fix text type select list
|
100 |
+
|
101 |
= 1.0.0 =
|
102 |
|
103 |
* Initial release
|
assets/css/admin.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Woo Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2017-12-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.button.button-danger {
|
1 |
/*!
|
2 |
+
* Woo Variation Swatches v1.0.1
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2017-12-24 00:13:39
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.button.button-danger {
|
assets/css/admin.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Woo Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2017-12-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.button.button-danger{color:#fff;background-color:#af2d2b;border-color:#a62d2b;-webkit-box-shadow:0 1px 0 #a72d2b;box-shadow:0 1px 0 #a72d2b;vertical-align:top}.button.button-danger.active,.button.button-danger:active,.button.button-danger:focus,.button.button-danger:hover{color:#fff;background:#c9302c}[data-depends].has-dependent-data{display:none}.meta-image-field-wrapper{display:table}.meta-image-field-wrapper .button{margin:5px 0;display:block}.meta-image-field-wrapper .image-preview{display:table-cell;width:60px;padding-right:10px}.meta-image-field-wrapper .button-wrapper{display:table-cell;vertical-align:top}
|
1 |
/*!
|
2 |
+
* Woo Variation Swatches v1.0.1
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2017-12-24 00:13:45
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.button.button-danger{color:#fff;background-color:#af2d2b;border-color:#a62d2b;-webkit-box-shadow:0 1px 0 #a72d2b;box-shadow:0 1px 0 #a72d2b;vertical-align:top}.button.button-danger.active,.button.button-danger:active,.button.button-danger:focus,.button.button-danger:hover{color:#fff;background:#c9302c}[data-depends].has-dependent-data{display:none}.meta-image-field-wrapper{display:table}.meta-image-field-wrapper .button{margin:5px 0;display:block}.meta-image-field-wrapper .image-preview{display:table-cell;width:60px;padding-right:10px}.meta-image-field-wrapper .button-wrapper{display:table-cell;vertical-align:top}
|
assets/css/frontend.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Woo Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2017-12-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.variable-items-wrapper {
|
1 |
/*!
|
2 |
+
* Woo Variation Swatches v1.0.1
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2017-12-24 00:13:39
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.variable-items-wrapper {
|
assets/css/frontend.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Woo Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2017-12-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.variable-items-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.variable-items-wrapper .variable-item{-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;padding:2px;margin:2px;cursor:pointer;border:1px solid rgba(0,0,0,.2);width:30px;height:30px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.variable-items-wrapper .variable-item.button-variable-item,.variable-items-wrapper .variable-item.button-variable-item span,.variable-items-wrapper .variable-item.color-variable-item,.variable-items-wrapper .variable-item.color-variable-item span{border-radius:50%}.variable-items-wrapper .variable-item span{padding:10px;font-size:small}.variable-items-wrapper .variable-item:last-of-type{margin-right:0}.variable-items-wrapper .variable-item.selected,.variable-items-wrapper .variable-item.selected:hover,.variable-items-wrapper .variable-item:hover{border:1px solid #000}.variable-items-wrapper .variable-item.disabled,.variable-items-wrapper .variable-item.disabled:hover{cursor:not-allowed;opacity:.5}
|
1 |
/*!
|
2 |
+
* Woo Variation Swatches v1.0.1
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2017-12-24 00:13:45
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.variable-items-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.variable-items-wrapper .variable-item{-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;padding:2px;margin:2px;cursor:pointer;border:1px solid rgba(0,0,0,.2);width:30px;height:30px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.variable-items-wrapper .variable-item.button-variable-item,.variable-items-wrapper .variable-item.button-variable-item span,.variable-items-wrapper .variable-item.color-variable-item,.variable-items-wrapper .variable-item.color-variable-item span{border-radius:50%}.variable-items-wrapper .variable-item span{padding:10px;font-size:small}.variable-items-wrapper .variable-item:last-of-type{margin-right:0}.variable-items-wrapper .variable-item.selected,.variable-items-wrapper .variable-item.selected:hover,.variable-items-wrapper .variable-item:hover{border:1px solid #000}.variable-items-wrapper .variable-item.disabled,.variable-items-wrapper .variable-item.disabled:hover{cursor:not-allowed;opacity:.5}
|
assets/js/admin.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Woo Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2017-12-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
1 |
/*!
|
2 |
+
* Woo Variation Swatches v1.0.1
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2017-12-24 00:13:39
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
assets/js/frontend.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Woo Variation Swatches v1.0.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 2017-12-
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
1 |
/*!
|
2 |
+
* Woo Variation Swatches v1.0.1
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 2017-12-24 00:13:39
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
includes/functions.php
CHANGED
@@ -61,7 +61,7 @@
|
|
61 |
endif; // function_exists( 'wc_get_attribute_taxonomies' )
|
62 |
}
|
63 |
}
|
64 |
-
|
65 |
//-------------------------------------------------------------------------------
|
66 |
// Extra Product Option Terms
|
67 |
//-------------------------------------------------------------------------------
|
@@ -318,11 +318,13 @@
|
|
318 |
echo '</ul>';
|
319 |
}
|
320 |
endif;
|
321 |
-
|
322 |
//-------------------------------------------------------------------------------
|
323 |
// Get a Attribute taxonomy values
|
324 |
//-------------------------------------------------------------------------------
|
325 |
-
|
|
|
|
|
326 |
if ( ! function_exists( 'wvs_get_wc_attribute_taxonomy' ) ):
|
327 |
function wvs_get_wc_attribute_taxonomy( $attribute_name ) {
|
328 |
|
@@ -373,36 +375,33 @@
|
|
373 |
//-------------------------------------------------------------------------------
|
374 |
// Generate Option HTML
|
375 |
//-------------------------------------------------------------------------------
|
376 |
-
|
377 |
if ( ! function_exists( 'wvs_variation_attribute_options_html' ) ):
|
378 |
function wvs_variation_attribute_options_html( $html, $args ) {
|
379 |
ob_start();
|
380 |
if ( wvs_wc_product_has_attribute_type( 'color', $args[ 'attribute' ] ) ):
|
381 |
-
|
382 |
wvs_color_variation_attribute_options( array(
|
383 |
'options' => $args[ 'options' ],
|
384 |
'attribute' => $args[ 'attribute' ],
|
385 |
'product' => $args[ 'product' ],
|
386 |
'selected' => $args[ 'selected' ]
|
387 |
) );
|
388 |
-
|
389 |
elseif ( wvs_wc_product_has_attribute_type( 'image', $args[ 'attribute' ] ) ):
|
390 |
-
|
391 |
wvs_image_variation_attribute_options( array(
|
392 |
'options' => $args[ 'options' ],
|
393 |
'attribute' => $args[ 'attribute' ],
|
394 |
'product' => $args[ 'product' ],
|
395 |
'selected' => $args[ 'selected' ]
|
396 |
) );
|
397 |
-
|
398 |
elseif ( wvs_wc_product_has_attribute_type( 'button', $args[ 'attribute' ] ) ):
|
399 |
-
|
400 |
wvs_button_variation_attribute_options( array(
|
401 |
'options' => $args[ 'options' ],
|
402 |
'attribute' => $args[ 'attribute' ],
|
403 |
'product' => $args[ 'product' ],
|
404 |
'selected' => $args[ 'selected' ]
|
405 |
) );
|
|
|
|
|
406 |
endif;
|
407 |
|
408 |
return ob_get_clean();
|
61 |
endif; // function_exists( 'wc_get_attribute_taxonomies' )
|
62 |
}
|
63 |
}
|
64 |
+
|
65 |
//-------------------------------------------------------------------------------
|
66 |
// Extra Product Option Terms
|
67 |
//-------------------------------------------------------------------------------
|
318 |
echo '</ul>';
|
319 |
}
|
320 |
endif;
|
321 |
+
|
322 |
//-------------------------------------------------------------------------------
|
323 |
// Get a Attribute taxonomy values
|
324 |
//-------------------------------------------------------------------------------
|
325 |
+
|
326 |
+
// @TODO: See wc_attribute_taxonomy_id_by_name function and wc_get_attribute
|
327 |
+
|
328 |
if ( ! function_exists( 'wvs_get_wc_attribute_taxonomy' ) ):
|
329 |
function wvs_get_wc_attribute_taxonomy( $attribute_name ) {
|
330 |
|
375 |
//-------------------------------------------------------------------------------
|
376 |
// Generate Option HTML
|
377 |
//-------------------------------------------------------------------------------
|
378 |
+
|
379 |
if ( ! function_exists( 'wvs_variation_attribute_options_html' ) ):
|
380 |
function wvs_variation_attribute_options_html( $html, $args ) {
|
381 |
ob_start();
|
382 |
if ( wvs_wc_product_has_attribute_type( 'color', $args[ 'attribute' ] ) ):
|
|
|
383 |
wvs_color_variation_attribute_options( array(
|
384 |
'options' => $args[ 'options' ],
|
385 |
'attribute' => $args[ 'attribute' ],
|
386 |
'product' => $args[ 'product' ],
|
387 |
'selected' => $args[ 'selected' ]
|
388 |
) );
|
|
|
389 |
elseif ( wvs_wc_product_has_attribute_type( 'image', $args[ 'attribute' ] ) ):
|
|
|
390 |
wvs_image_variation_attribute_options( array(
|
391 |
'options' => $args[ 'options' ],
|
392 |
'attribute' => $args[ 'attribute' ],
|
393 |
'product' => $args[ 'product' ],
|
394 |
'selected' => $args[ 'selected' ]
|
395 |
) );
|
|
|
396 |
elseif ( wvs_wc_product_has_attribute_type( 'button', $args[ 'attribute' ] ) ):
|
|
|
397 |
wvs_button_variation_attribute_options( array(
|
398 |
'options' => $args[ 'options' ],
|
399 |
'attribute' => $args[ 'attribute' ],
|
400 |
'product' => $args[ 'product' ],
|
401 |
'selected' => $args[ 'selected' ]
|
402 |
) );
|
403 |
+
else:
|
404 |
+
echo $html;
|
405 |
endif;
|
406 |
|
407 |
return ob_get_clean();
|
webpack.mix.js
CHANGED
@@ -60,7 +60,7 @@ if (Mix.inProduction()) {
|
|
60 |
}
|
61 |
|
62 |
mix.banner({
|
63 |
-
banner : "Woo Variation Swatches v1.0.
|
64 |
});
|
65 |
|
66 |
mix.notification({
|
60 |
}
|
61 |
|
62 |
mix.banner({
|
63 |
+
banner : "Woo Variation Swatches v1.0.1 \n\nAuthor: Emran Ahmed ( emran.bd.08@gmail.com ) \nDate: " + new Date().toLocaleString() + "\nReleased under the GPLv3 license."
|
64 |
});
|
65 |
|
66 |
mix.notification({
|
woo-variation-swatches.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
|
5 |
* Description: WooCommerce Product Variation Swatches
|
6 |
* Author: Emran Ahmed
|
7 |
-
* Version: 1.0.
|
8 |
* Domain Path: /languages
|
9 |
* Requires at least: 4.8
|
10 |
* Tested up to: 4.9
|
@@ -18,9 +18,9 @@
|
|
18 |
|
19 |
if ( ! class_exists( 'Woo_Variation_Swatches' ) ):
|
20 |
|
21 |
-
class Woo_Variation_Swatches {
|
22 |
|
23 |
-
protected $_version = '1.0.
|
24 |
|
25 |
protected static $_instance = NULL;
|
26 |
|
4 |
* Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
|
5 |
* Description: WooCommerce Product Variation Swatches
|
6 |
* Author: Emran Ahmed
|
7 |
+
* Version: 1.0.1
|
8 |
* Domain Path: /languages
|
9 |
* Requires at least: 4.8
|
10 |
* Tested up to: 4.9
|
18 |
|
19 |
if ( ! class_exists( 'Woo_Variation_Swatches' ) ):
|
20 |
|
21 |
+
final class Woo_Variation_Swatches {
|
22 |
|
23 |
+
protected $_version = '1.0.1';
|
24 |
|
25 |
protected static $_instance = NULL;
|
26 |
|