Version Description
27-01-2021 =
Update: Extended note on Performance Section
Download this release
Release Info
Developer | EmranAhmed |
Plugin | WooCommerce Variation Swatches |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
- README.txt +27 -4
- assets/css/admin.css +7 -7
- assets/css/admin.min.css +3 -3
- assets/css/frontend-tooltip.css +2 -2
- assets/css/frontend-tooltip.min.css +2 -2
- assets/css/frontend.css +2 -2
- assets/css/frontend.min.css +2 -2
- assets/css/gwp-admin-notice.css +2 -2
- assets/css/gwp-admin-notice.min.css +2 -2
- assets/css/gwp-admin.css +2 -2
- assets/css/gwp-admin.min.css +2 -2
- assets/css/wvs-theme-override.css +2 -2
- assets/css/wvs-theme-override.min.css +2 -2
- assets/js/admin.js +2 -2
- assets/js/frontend.js +402 -402
- assets/js/frontend.min.js +1 -1
- assets/js/gwp-admin.js +2 -2
- images/red-archive-preview.png +0 -0
- images/red-special-preview.png +0 -0
- images/red-style-preview.png +0 -0
- images/tutorial-1.png +0 -0
- images/tutorial-10.jpg +0 -0
- images/tutorial-11.jpg +0 -0
- images/tutorial-12.jpg +0 -0
- images/tutorial-13.jpg +0 -0
- images/tutorial-14.gif +0 -0
- images/tutorial-15.gif +0 -0
- images/tutorial-16.jpg +0 -0
- images/tutorial-17.jpg +0 -0
- images/tutorial-18.jpg +0 -0
- images/tutorial-19.jpg +0 -0
- images/tutorial-2.png +0 -0
- images/tutorial-20.jpg +0 -0
- images/tutorial-21.jpg +0 -0
- images/tutorial-3.png +0 -0
- images/tutorial-4.png +0 -0
- images/tutorial-5.png +0 -0
- images/tutorial-6.png +0 -0
- images/tutorial-7.jpg +0 -0
- images/tutorial-8.jpg +0 -0
- images/tutorial-9.jpg +0 -0
- includes/functions.php +60 -5
- includes/tutorials.php +53 -30
- languages/woo-variation-swatches.pot +41 -37
- package.json +1 -1
- webpack.mix.js +1 -1
- woo-variation-swatches.php +11 -4
README.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== Variation Swatches for WooCommerce ===
|
2 |
Contributors: EmranAhmed, getwooplugins
|
3 |
Tags: woocommerce variation swatches, woocommerce variation, woocommerce, variation swatches, woocommerce attributes, product attributes, product color, product size, variable product attributes, variation product swatches, color variation swatch, image variation swatch, printful color swatches
|
4 |
-
Requires at least: 4.8
|
5 |
-
Tested up to: 5.6
|
6 |
Requires PHP: 5.6
|
7 |
-
|
8 |
WC requires at least: 4.5
|
|
|
9 |
WC tested up to: 4.9
|
|
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
@@ -93,7 +93,7 @@ In the free WooCommerce attribute variation plugin, besides creating size, brand
|
|
93 |
👉 Compatible with popular WooCommerce themes and plugins
|
94 |
👉 Frequently Updated And Secured Codebase
|
95 |
👉 Option to disable default plugin stylesheet for theme developer
|
96 |
-
👉 Compatible With Popular WooCommerce Plugins
|
97 |
|
98 |
## 🏆 Users' Feedback For Variation Swatches For WooCommerce ##
|
99 |
|
@@ -283,6 +283,25 @@ In the free WooCommerce attribute variation plugin, besides creating size, brand
|
|
283 |
* <a target="_blank" href="https://wordpress.org/plugins/polylang/">Polylang</a>
|
284 |
* <a target="_blank" href="https://wordpress.org/plugins/loco-translate/">Loco Translate</a>
|
285 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
= Forum and Feature Request =
|
287 |
|
288 |
<blockquote>
|
@@ -390,6 +409,10 @@ And your are ready to go.
|
|
390 |
|
391 |
== Changelog ==
|
392 |
|
|
|
|
|
|
|
|
|
393 |
= 1.1.5 - 13-01-2021 =
|
394 |
|
395 |
* Update: Remove `wp_ajax_wvs_get_available_variations` hook
|
1 |
=== Variation Swatches for WooCommerce ===
|
2 |
Contributors: EmranAhmed, getwooplugins
|
3 |
Tags: woocommerce variation swatches, woocommerce variation, woocommerce, variation swatches, woocommerce attributes, product attributes, product color, product size, variable product attributes, variation product swatches, color variation swatch, image variation swatch, printful color swatches
|
|
|
|
|
4 |
Requires PHP: 5.6
|
5 |
+
Requires at least: 4.8
|
6 |
WC requires at least: 4.5
|
7 |
+
Tested up to: 5.6
|
8 |
WC tested up to: 4.9
|
9 |
+
Stable tag: trunk
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
93 |
👉 Compatible with popular WooCommerce themes and plugins
|
94 |
👉 Frequently Updated And Secured Codebase
|
95 |
👉 Option to disable default plugin stylesheet for theme developer
|
96 |
+
👉 Compatible With Popular WooCommerce Plugins
|
97 |
|
98 |
## 🏆 Users' Feedback For Variation Swatches For WooCommerce ##
|
99 |
|
283 |
* <a target="_blank" href="https://wordpress.org/plugins/polylang/">Polylang</a>
|
284 |
* <a target="_blank" href="https://wordpress.org/plugins/loco-translate/">Loco Translate</a>
|
285 |
|
286 |
+
= Compatible WooCommerce Plugin =
|
287 |
+
|
288 |
+
<blockquote>
|
289 |
+
|
290 |
+
<ul>
|
291 |
+
<li><a target="_blank" href="http://bit.ly/woovs-org-item-page">Additional Variation Image Gallery For WooCommerce</a></li>
|
292 |
+
</ul>
|
293 |
+
<ul>
|
294 |
+
<li><a target="_blank" href="http://bit.ly/swatches-link-to-duplicator-readme">Variation Duplicator For WoooCommerce</a></li>
|
295 |
+
</ul>
|
296 |
+
<ul>
|
297 |
+
<li><a target="_blank" href="https://wordpress.org/plugins/woo-cart-redirect-to-checkout-page">Add to Cart Redirect for WooCommerce</a></li>
|
298 |
+
</ul>
|
299 |
+
<ul>
|
300 |
+
<li><a target="_blank" href="https://wordpress.org/plugins/woo-2checkout">Payment Gateway – 2Checkout for WooCommerce</a></li>
|
301 |
+
</ul>
|
302 |
+
</blockquote>
|
303 |
+
|
304 |
+
|
305 |
= Forum and Feature Request =
|
306 |
|
307 |
<blockquote>
|
409 |
|
410 |
== Changelog ==
|
411 |
|
412 |
+
= 1.1.6 - 27-01-2021 =
|
413 |
+
|
414 |
+
* Update: Extended note on Performance Section
|
415 |
+
|
416 |
= 1.1.5 - 13-01-2021 =
|
417 |
|
418 |
* Update: Remove `wp_ajax_wvs_get_available_variations` hook
|
assets/css/admin.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.button.button-danger {
|
@@ -183,19 +183,19 @@
|
|
183 |
}
|
184 |
|
185 |
#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo {
|
186 |
-
background-color: #
|
187 |
-
color: #
|
188 |
-
border:
|
189 |
}
|
190 |
|
191 |
#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo:hover {
|
192 |
-
background: #
|
193 |
}
|
194 |
|
195 |
#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs {
|
196 |
background-color: #36373A;
|
197 |
color: #FFFFFF;
|
198 |
-
border:
|
199 |
}
|
200 |
|
201 |
#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs:hover {
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.button.button-danger {
|
183 |
}
|
184 |
|
185 |
#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo {
|
186 |
+
background-color: #F44336;
|
187 |
+
color: #fff;
|
188 |
+
border: 0;
|
189 |
}
|
190 |
|
191 |
#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo:hover {
|
192 |
+
background: #c71609;
|
193 |
}
|
194 |
|
195 |
#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs {
|
196 |
background-color: #36373A;
|
197 |
color: #FFFFFF;
|
198 |
+
border: 0;
|
199 |
}
|
200 |
|
201 |
#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs:hover {
|
assets/css/admin.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
-
.button.button-danger{color:#fff;background-color:#af2d2b;border-color:#a62d2b;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-wvsdepends]{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}.gwp-rate-stars{display:inline-block;color:#ffb900;position:relative;top:3px}.gwp-rate-stars svg,.gwp-rate-stars svg a{fill:#ffb900;stroke:#ffb900;cursor:pointer}.gwp-rate-stars svg:hover,.gwp-rate-stars svg a:hover{fill:#ffb900}.gwp-rate-stars svg:hover~svg,.gwp-rate-stars svg:hover~svg a,.gwp-rate-stars svg a:hover~svg,.gwp-rate-stars svg a:hover~svg a{fill:none}#wvs-meta-preview{width:30px}.wvs-preview{width:30px;height:30px;border:1px solid #000}#woo-variation-swatches-settings-wrap #settings-tabs{margin-top:30px}#woo-variation-swatches-settings-wrap #settings-tabs h2{font-size:1.5em;margin-bottom:10px}#woo-variation-swatches-settings-wrap #settings-tabs .form-table{margin-top:15px;background:#fff;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.07),0 1px 1px rgba(0,0,0,.04)}#woo-variation-swatches-settings-wrap #settings-tabs .form-table tr{border-bottom:1px solid #eee;display:block}#woo-variation-swatches-settings-wrap #settings-tabs .form-table tr:last-child{border:0}#woo-variation-swatches-settings-wrap #settings-tabs .form-table th{padding:20px 10px 20px 20px}#woo-variation-swatches-settings-wrap #settings-tabs #special .form-table,#woo-variation-swatches-settings-wrap #settings-tabs #style .form-table{margin-bottom:30px}#woo-variation-swatches-settings-wrap #tutorial .form-table tr{padding:0!important}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper img{width:100%}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper ul{margin:0}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper li{overflow:hidden;display:flex;align-items:center;padding:50px 30px;margin:0;border-bottom:1px solid #ddd;position:relative}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper li:last-child{border:0}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper,#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper{float:left;padding:0 20px;box-sizing:border-box}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper{width:60%}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper{width:40%}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper h3{margin:0 0 20px;font-size:1.5em}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-contents{font-size:15px;line-height:1.5em;margin-bottom:20px}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button{border-radius:3px;line-height:1;padding:13px 20px;font-size:13px;height:40px;box-shadow:none;text-shadow:none}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button:active{-webkit-transform:translateY(0);transform:translateY(0)}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo{background-color:#
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
+
.button.button-danger{color:#fff;background-color:#af2d2b;border-color:#a62d2b;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-wvsdepends]{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}.gwp-rate-stars{display:inline-block;color:#ffb900;position:relative;top:3px}.gwp-rate-stars svg,.gwp-rate-stars svg a{fill:#ffb900;stroke:#ffb900;cursor:pointer}.gwp-rate-stars svg:hover,.gwp-rate-stars svg a:hover{fill:#ffb900}.gwp-rate-stars svg:hover~svg,.gwp-rate-stars svg:hover~svg a,.gwp-rate-stars svg a:hover~svg,.gwp-rate-stars svg a:hover~svg a{fill:none}#wvs-meta-preview{width:30px}.wvs-preview{width:30px;height:30px;border:1px solid #000}#woo-variation-swatches-settings-wrap #settings-tabs{margin-top:30px}#woo-variation-swatches-settings-wrap #settings-tabs h2{font-size:1.5em;margin-bottom:10px}#woo-variation-swatches-settings-wrap #settings-tabs .form-table{margin-top:15px;background:#fff;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.07),0 1px 1px rgba(0,0,0,.04)}#woo-variation-swatches-settings-wrap #settings-tabs .form-table tr{border-bottom:1px solid #eee;display:block}#woo-variation-swatches-settings-wrap #settings-tabs .form-table tr:last-child{border:0}#woo-variation-swatches-settings-wrap #settings-tabs .form-table th{padding:20px 10px 20px 20px}#woo-variation-swatches-settings-wrap #settings-tabs #special .form-table,#woo-variation-swatches-settings-wrap #settings-tabs #style .form-table{margin-bottom:30px}#woo-variation-swatches-settings-wrap #tutorial .form-table tr{padding:0!important}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper img{width:100%}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper ul{margin:0}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper li{overflow:hidden;display:flex;align-items:center;padding:50px 30px;margin:0;border-bottom:1px solid #ddd;position:relative}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper li:last-child{border:0}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper,#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper{float:left;padding:0 20px;box-sizing:border-box}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper{width:60%}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper{width:40%}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper h3{margin:0 0 20px;font-size:1.5em}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-contents{font-size:15px;line-height:1.5em;margin-bottom:20px}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button{border-radius:3px;line-height:1;padding:13px 20px;font-size:13px;height:40px;box-shadow:none;text-shadow:none}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button:active{-webkit-transform:translateY(0);transform:translateY(0)}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo{background-color:#f44336;color:#fff;border:0}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-live-demo:hover{background:#c71609}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs{background-color:#36373a;color:#fff;border:0}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-docs:hover{background:#5d5e61;border-color:#5d5e61}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-pro{background-color:#39b54a;color:#fff;border:1px solid #39b54a}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-description-wrapper .tutorial-buttons .button.button-pro:hover{background:#3fc851;border-color:#3fc851}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper{position:relative}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper .ribbon{position:absolute;left:-5px;top:-5px;z-index:1;overflow:hidden;width:75px;height:75px;text-align:right;margin:1px 22px}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper .ribbon span{font-size:10px;font-weight:700;color:#fff;text-transform:uppercase;text-align:center;line-height:20px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);width:100px;display:block;background:#bc0808;box-shadow:0 3px 10px -5px #000;position:absolute;top:19px;left:-21px}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper .ribbon span:before{content:"";position:absolute;left:0;top:100%;z-index:-1;border-left:3px solid #8f0808;border-right:3px solid transparent;border-bottom:3px solid transparent;border-top:3px solid #8f0808}#woo-variation-swatches-settings-wrap #tutorial .gwp-tutorials-wrapper .tutorial-image-wrapper .ribbon span:after{content:"";position:absolute;right:0;top:100%;z-index:-1;border-left:3px solid transparent;border-right:3px solid #8f0808;border-bottom:3px solid transparent;border-top:3px solid #8f0808}#woo-variation-swatches-settings-wrap .nav-tab-wrapper [data-new-text],#woo-variation-swatches-settings-wrap .nav-tab-wrapper [data-pro-text]{position:relative}#woo-variation-swatches-settings-wrap .nav-tab-wrapper [data-new-text]:after,#woo-variation-swatches-settings-wrap .nav-tab-wrapper [data-new-text]:before,#woo-variation-swatches-settings-wrap .nav-tab-wrapper [data-pro-text]:after,#woo-variation-swatches-settings-wrap .nav-tab-wrapper [data-pro-text]:before{-webkit-transform:translateY(-50%);transform:translateY(-50%);position:absolute;right:5px;top:0;color:#fff;font-size:8px;font-weight:400;text-transform:uppercase;padding:3px 5px;line-height:1;border-radius:10px}#woo-variation-swatches-settings-wrap .nav-tab-wrapper [data-pro-text]:before{content:attr(data-pro-text);background:#f44336}#woo-variation-swatches-settings-wrap .nav-tab-wrapper [data-new-text]:after{content:attr(data-new-text);background:#2196f3}#woo-variation-swatches-settings-wrap .wvs-setting-tab .wvs-new-feature-tick{position:relative;right:-5px;top:-2px;color:#fff;background:#ff5722;font-size:8px;font-weight:400;text-transform:uppercase;padding:3px 5px;line-height:1;border-radius:10px}#woo-variation-swatches-settings-wrap .wvs-setting-tab .description{font-size:small;font-style:italic}.woo-variation-swatches-pro_tab.pro-inactive a{background-color:#ff9800;color:#fff}.wvs-settings-field-content{position:relative}.wvs-show-pro-label{display:block}.wvs-show-pro-label span{padding:2px 4px;background:#fa0000;color:#fff;text-transform:uppercase;font-size:9px;border-radius:2px}.wvs-show-pro-contents{display:inline-block;color:#fa0000;font-size:11px;text-transform:uppercase;font-style:italic;text-decoration:underline;padding:0 5px}.wvs-button-wrapper .reset{color:#a00}
|
assets/css/frontend-tooltip.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches .radio-variable-item[data-wvstooltip] {
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches .radio-variable-item[data-wvstooltip] {
|
assets/css/frontend-tooltip.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches .radio-variable-item[data-wvstooltip]{position:relative}.woo-variation-swatches .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches .radio-variable-item[data-wvstooltip]:before{left:8px;bottom:100%}.woo-variation-swatches .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);transform:translateX(-50%);left:8px}.woo-variation-swatches.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:50%}.woo-variation-swatches.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%}.woo-variation-swatches.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:100%}.woo-variation-swatches.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);transform:translateX(-50%);left:100%}.wvs-has-image-tooltip,[data-wvstooltip]{position:relative;cursor:pointer;outline:none}.wvs-has-image-tooltip:after,.wvs-has-image-tooltip:before,[data-wvstooltip]:after,[data-wvstooltip]:before{visibility:hidden;opacity:0;pointer-events:none;box-sizing:inherit;position:absolute;bottom:130%;left:50%;z-index:999;-webkit-transform:translateZ(0);transform:translateZ(0);box-shadow:0 7px 15px rgba(0,0,0,.3);transition:opacity .3s linear,bottom .3s linear}.wvs-has-image-tooltip:before,[data-wvstooltip]:before{margin-bottom:5px;-webkit-transform:translateX(-50%);transform:translateX(-50%);padding:7px;border-radius:3px;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;text-align:center;font-size:14px;line-height:1.2}[data-wvstooltip]:before{min-width:100px;content:attr(data-wvstooltip)}.wvs-has-image-tooltip:before{content:attr(data-title);background-image:var(--tooltip-background);background-repeat:no-repeat;width:var(--tooltip-width);height:calc(var(--tooltip-height) + 20px);background-size:contain;border:2px solid;background-position:top;padding:0;line-height:20px;display:flex;align-items:flex-end;justify-content:center;font-size:12px;-webkit-backface-visibility:hidden;backface-visibility:hidden}.wvs-has-image-tooltip:after,[data-wvstooltip]:after{margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid rgba(51,51,51,.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.wvs-has-image-tooltip:hover:after,.wvs-has-image-tooltip:hover:before,[data-wvstooltip]:hover:after,[data-wvstooltip]:hover:before{bottom:120%;visibility:visible;opacity:1}
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches .radio-variable-item[data-wvstooltip]{position:relative}.woo-variation-swatches .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches .radio-variable-item[data-wvstooltip]:before{left:8px;bottom:100%}.woo-variation-swatches .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);transform:translateX(-50%);left:8px}.woo-variation-swatches.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:50%}.woo-variation-swatches.wvs-archive-align-center .wvs-archive-variation-wrapper .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);transform:translateX(-50%);left:50%}.woo-variation-swatches.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:after,.woo-variation-swatches.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item[data-wvstooltip]:before{left:100%}.woo-variation-swatches.wvs-archive-align-right .wvs-archive-variation-wrapper .radio-variable-item .image-tooltip-wrapper{-webkit-transform:translateX(-50%);transform:translateX(-50%);left:100%}.wvs-has-image-tooltip,[data-wvstooltip]{position:relative;cursor:pointer;outline:none}.wvs-has-image-tooltip:after,.wvs-has-image-tooltip:before,[data-wvstooltip]:after,[data-wvstooltip]:before{visibility:hidden;opacity:0;pointer-events:none;box-sizing:inherit;position:absolute;bottom:130%;left:50%;z-index:999;-webkit-transform:translateZ(0);transform:translateZ(0);box-shadow:0 7px 15px rgba(0,0,0,.3);transition:opacity .3s linear,bottom .3s linear}.wvs-has-image-tooltip:before,[data-wvstooltip]:before{margin-bottom:5px;-webkit-transform:translateX(-50%);transform:translateX(-50%);padding:7px;border-radius:3px;background-color:#000;background-color:rgba(51,51,51,.9);color:#fff;text-align:center;font-size:14px;line-height:1.2}[data-wvstooltip]:before{min-width:100px;content:attr(data-wvstooltip)}.wvs-has-image-tooltip:before{content:attr(data-title);background-image:var(--tooltip-background);background-repeat:no-repeat;width:var(--tooltip-width);height:calc(var(--tooltip-height) + 20px);background-size:contain;border:2px solid;background-position:top;padding:0;line-height:20px;display:flex;align-items:flex-end;justify-content:center;font-size:12px;-webkit-backface-visibility:hidden;backface-visibility:hidden}.wvs-has-image-tooltip:after,[data-wvstooltip]:after{margin-left:-5px;width:0;border-top:5px solid #000;border-top:5px solid rgba(51,51,51,.9);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.wvs-has-image-tooltip:hover:after,.wvs-has-image-tooltip:hover:before,[data-wvstooltip]:hover:after,[data-wvstooltip]:hover:before{bottom:120%;visibility:visible;opacity:1}
|
assets/css/frontend.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches .woo-variation-raw-select,
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches .woo-variation-raw-select,
|
assets/css/frontend.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches .woo-variation-raw-select,.woo-variation-swatches .woo-variation-raw-select+.select2{display:none!important}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color>a{display:inline-block;position:relative}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color>a .wvs-widget-item-wrapper{display:inline-block}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .item{display:inline-block;float:left;padding:9px;margin:0 4px;box-shadow:0 0 0 1px rgba(0,0,0,.5);height:20px;width:20px}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .text{display:inline-block}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .text :after{content:"";display:inline;clear:both}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color.woocommerce-widget-layered-nav-list__item--chosen .item{box-shadow:0 0 0 1px rgba(0,0,0,.9)}.woo-variation-swatches .variable-items-wrapper{display:flex;flex-wrap:wrap;margin:0!important;padding:0;list-style:none}.woo-variation-swatches .variable-items-wrapper .variable-item{margin:0;padding:0;list-style:none;transition:all .2s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none}.woo-variation-swatches .variable-items-wrapper .variable-item.variation-disabled{display:none!important}.woo-variation-swatches .variable-items-wrapper .variable-item img{margin:0;padding:0;width:100%;height:100%;pointer-events:none}.woo-variation-swatches .variable-items-wrapper .variable-item span{pointer-events:none}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper{display:block}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item{box-sizing:border-box;display:block;list-style:none;cursor:pointer;margin:0}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input,.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item label{cursor:pointer}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{margin-right:5px}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item label{font-weight:400;font-size:14px;display:inline-block}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item){box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.3);padding:2px;margin:4px 8px 4px 0}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):last-of-type{margin-right:0}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{box-shadow:0 0 0 3px rgba(0,0,0,.1)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):focus{box-shadow:0 0 0 3px rgba(0,0,0,.3)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover{box-shadow:0 0 0 2px rgba(0,0,0,.9)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item .variable-item-span-color{width:100%;height:100%;position:relative}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item .variable-item-span-color:after{position:absolute;content:"";width:100%;height:100%;top:0;left:0;box-shadow:inset 0 0 1px 0 rgba(0,0,0,.5)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{text-align:center}.woo-variation-swatches.wvs-style-rounded .variable-items-wrapper .variable-item,.woo-variation-swatches.wvs-style-rounded .variable-items-wrapper .variable-item .variable-item-span,.woo-variation-swatches.wvs-style-rounded .variable-items-wrapper .variable-item .variable-item-span:after,.woo-variation-swatches.wvs-style-rounded .variable-items-wrapper .variable-item img{border-radius:100%}.woo-variation-swatches.wvs-style-squared .variable-items-wrapper .variable-item{border-radius:2px}.woo-variation-swatches.wvs-style-squared .variable-items-wrapper .variable-item.button-variable-item{width:auto}.woo-variation-swatches.wvs-style-squared .variable-items-wrapper .variable-item.button-variable-item .variable-item-span{padding:0 5px}.woo-variation-swatches.wvs-style-squared .variable-items-wrapper .variable-item.color-variable-item span:after{border-radius:0}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover{box-shadow:0 0 0 1px rgba(0,0,0,.05);pointer-events:none;cursor:not-allowed;position:relative;overflow:hidden}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover img,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover span,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled img,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled span{opacity:.3}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:after,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:before,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:after,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:before{position:absolute;content:" "!important;width:100%;height:1px;background:red!important;left:0;right:0;bottom:0;top:50%;visibility:visible;opacity:1;border:0;margin:0!important;padding:0!important;min-width:auto;-webkit-transform-origin:center;transform-origin:center;z-index:0}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:before,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:after,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:hover input,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:hover label,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled input,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled label{cursor:not-allowed;text-decoration:line-through;opacity:.5}.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:after,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:before,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:hover:after,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:hover:before{display:none}.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled:hover{pointer-events:none;box-shadow:0 0 0 1px rgba(0,0,0,.05);position:relative;overflow:hidden}.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled:hover img,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled:hover span,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled img,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled span{opacity:.3}.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled:hover{overflow:hidden}.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled:hover input,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled:hover label,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled input,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled label{pointer-events:none;opacity:.3}.woo-variation-swatches.wvs-attr-behavior-hide .variable-item.disabled{opacity:0;visibility:hidden;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center;transform-origin:center;width:0!important;height:0!important;padding:0!important;margin:0!important;min-width:0!important;min-height:0!important}.woo-variation-swatches.wvs-attr-behavior-hide .variable-item.disabled.radio-variable-item{width:auto!important}.woo-variation-swatches.rtl table.variations td.label{padding-left:15px;padding-right:0;text-align:left}.woo-variation-swatches.rtl .variable-items-wrapper .variable-item{text-align:right}.woo-variation-swatches.rtl .variable-items-wrapper .variable-item:not(.radio-variable-item){margin:4px 0 4px 8px}.woo-variation-swatches.rtl .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{margin-right:0;margin-left:5px}.woo-variation-swatches.woocommerce .product.elementor table.variations td.value:before{display:none!important}.woo-variation-swatches.woo-variation-swatches-ie11 .variable-items-wrapper{display:block!important}.woo-variation-swatches.woo-variation-swatches-ie11 .variable-items-wrapper .variable-item:not(.radio-variable-item){float:left}.woo-variation-swatches.wvs-show-label .variations td{display:block;width:auto!important}.woo-variation-swatches.wvs-show-label .variations td .woo-selected-variation-item-name,.woo-variation-swatches.wvs-show-label .variations td label{display:inline-block;margin:0 2px}
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.woo-variation-swatches .woo-variation-raw-select,.woo-variation-swatches .woo-variation-raw-select+.select2{display:none!important}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color>a{display:inline-block;position:relative}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color>a .wvs-widget-item-wrapper{display:inline-block}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .item{display:inline-block;float:left;padding:9px;margin:0 4px;box-shadow:0 0 0 1px rgba(0,0,0,.5);height:20px;width:20px}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .text{display:inline-block}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color .text :after{content:"";display:inline;clear:both}.woo-variation-swatches .wvs-widget-layered-nav-list__item-color.woocommerce-widget-layered-nav-list__item--chosen .item{box-shadow:0 0 0 1px rgba(0,0,0,.9)}.woo-variation-swatches .variable-items-wrapper{display:flex;flex-wrap:wrap;margin:0!important;padding:0;list-style:none}.woo-variation-swatches .variable-items-wrapper .variable-item{margin:0;padding:0;list-style:none;transition:all .2s ease;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none}.woo-variation-swatches .variable-items-wrapper .variable-item.variation-disabled{display:none!important}.woo-variation-swatches .variable-items-wrapper .variable-item img{margin:0;padding:0;width:100%;height:100%;pointer-events:none}.woo-variation-swatches .variable-items-wrapper .variable-item span{pointer-events:none}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper{display:block}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item{box-sizing:border-box;display:block;list-style:none;cursor:pointer;margin:0}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input,.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item label{cursor:pointer}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{margin-right:5px}.woo-variation-swatches .variable-items-wrapper.radio-variable-wrapper .radio-variable-item label{font-weight:400;font-size:14px;display:inline-block}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item){box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;background-color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.3);padding:2px;margin:4px 8px 4px 0}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):last-of-type{margin-right:0}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{box-shadow:0 0 0 3px rgba(0,0,0,.1)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):focus{box-shadow:0 0 0 3px rgba(0,0,0,.3)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover{box-shadow:0 0 0 2px rgba(0,0,0,.9)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item .variable-item-span-color{width:100%;height:100%;position:relative}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item .variable-item-span-color:after{position:absolute;content:"";width:100%;height:100%;top:0;left:0;box-shadow:inset 0 0 1px 0 rgba(0,0,0,.5)}.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item{text-align:center}.woo-variation-swatches.wvs-style-rounded .variable-items-wrapper .variable-item,.woo-variation-swatches.wvs-style-rounded .variable-items-wrapper .variable-item .variable-item-span,.woo-variation-swatches.wvs-style-rounded .variable-items-wrapper .variable-item .variable-item-span:after,.woo-variation-swatches.wvs-style-rounded .variable-items-wrapper .variable-item img{border-radius:100%}.woo-variation-swatches.wvs-style-squared .variable-items-wrapper .variable-item{border-radius:2px}.woo-variation-swatches.wvs-style-squared .variable-items-wrapper .variable-item.button-variable-item{width:auto}.woo-variation-swatches.wvs-style-squared .variable-items-wrapper .variable-item.button-variable-item .variable-item-span{padding:0 5px}.woo-variation-swatches.wvs-style-squared .variable-items-wrapper .variable-item.color-variable-item span:after{border-radius:0}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover{box-shadow:0 0 0 1px rgba(0,0,0,.05);pointer-events:none;cursor:not-allowed;position:relative;overflow:hidden}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover img,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover span,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled img,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled span{opacity:.3}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:after,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:before,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:after,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:before{position:absolute;content:" "!important;width:100%;height:1px;background:red!important;left:0;right:0;bottom:0;top:50%;visibility:visible;opacity:1;border:0;margin:0!important;padding:0!important;min-width:auto;-webkit-transform-origin:center;transform-origin:center;z-index:0}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:before,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:after,.woo-variation-swatches.wvs-attr-behavior-blur .variable-item:not(.radio-variable-item).disabled:hover:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:hover input,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:hover label,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled input,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled label{cursor:not-allowed;text-decoration:line-through;opacity:.5}.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:after,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:before,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:hover:after,.woo-variation-swatches.wvs-attr-behavior-blur .radio-variable-item.disabled:hover:before{display:none}.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled:hover{pointer-events:none;box-shadow:0 0 0 1px rgba(0,0,0,.05);position:relative;overflow:hidden}.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled:hover img,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled:hover span,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled img,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .variable-item:not(.radio-variable-item).disabled span{opacity:.3}.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled:hover{overflow:hidden}.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled:hover input,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled:hover label,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled input,.woo-variation-swatches.wvs-attr-behavior-blur-no-cross .radio-variable-item.disabled label{pointer-events:none;opacity:.3}.woo-variation-swatches.wvs-attr-behavior-hide .variable-item.disabled{opacity:0;visibility:hidden;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center;transform-origin:center;width:0!important;height:0!important;padding:0!important;margin:0!important;min-width:0!important;min-height:0!important}.woo-variation-swatches.wvs-attr-behavior-hide .variable-item.disabled.radio-variable-item{width:auto!important}.woo-variation-swatches.rtl table.variations td.label{padding-left:15px;padding-right:0;text-align:left}.woo-variation-swatches.rtl .variable-items-wrapper .variable-item{text-align:right}.woo-variation-swatches.rtl .variable-items-wrapper .variable-item:not(.radio-variable-item){margin:4px 0 4px 8px}.woo-variation-swatches.rtl .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{margin-right:0;margin-left:5px}.woo-variation-swatches.woocommerce .product.elementor table.variations td.value:before{display:none!important}.woo-variation-swatches.woo-variation-swatches-ie11 .variable-items-wrapper{display:block!important}.woo-variation-swatches.woo-variation-swatches-ie11 .variable-items-wrapper .variable-item:not(.radio-variable-item){float:left}.woo-variation-swatches.wvs-show-label .variations td{display:block;width:auto!important}.woo-variation-swatches.wvs-show-label .variations td .woo-selected-variation-item-name,.woo-variation-swatches.wvs-show-label .variations td label{display:inline-block;margin:0 2px}
|
assets/css/gwp-admin-notice.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-live-feed-contents {
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-live-feed-contents {
|
assets/css/gwp-admin-notice.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-live-feed-contents{position:relative;clear:both;overflow:hidden}.gwp-live-feed-contents.gwp-ad-gallery:before,.gwp-live-feed-contents.notice-info:before{content:"\F161";background:#41a1d3}.gwp-live-feed-contents.notice-success:before{content:"\F147";background:#46b450}.gwp-live-feed-contents.notice-error:before{content:"\F158";background:#dc3232}.gwp-live-feed-contents.notice-warning:before{content:"\F534";background:#f6ba33}.gwp-live-feed-contents.gwp-notice-required:before{content:"\F463";background:#ce3100;text-shadow:0 -1px 1px #ce3100}.gwp-live-feed-contents.gwp-notice-recommended:before{content:"\F529";background:#3d4046;text-shadow:0 -1px 1px #3d4046}.gwp-live-feed-contents.gwp-ad-gallery,.gwp-live-feed-contents.gwp-notice-recommended,.gwp-live-feed-contents.gwp-notice-required,.gwp-live-feed-contents.notice-error,.gwp-live-feed-contents.notice-info,.gwp-live-feed-contents.notice-success,.gwp-live-feed-contents.notice-warning{display:flex;align-items:stretch;padding:0;border-radius:4px}.gwp-live-feed-contents.gwp-ad-gallery:before,.gwp-live-feed-contents.gwp-notice-recommended:before,.gwp-live-feed-contents.gwp-notice-required:before,.gwp-live-feed-contents.notice-error:before,.gwp-live-feed-contents.notice-info:before,.gwp-live-feed-contents.notice-success:before,.gwp-live-feed-contents.notice-warning:before{font-family:dashicons;font-size:20px;color:#fff;padding:10px;display:flex;align-items:center}.gwp-live-feed-contents.gwp-ad-gallery .feed-message-wrapper,.gwp-live-feed-contents.gwp-notice-recommended .feed-message-wrapper,.gwp-live-feed-contents.gwp-notice-required .feed-message-wrapper,.gwp-live-feed-contents.notice-error .feed-message-wrapper,.gwp-live-feed-contents.notice-info .feed-message-wrapper,.gwp-live-feed-contents.notice-success .feed-message-wrapper,.gwp-live-feed-contents.notice-warning .feed-message-wrapper{padding:10px 60px 10px 20px}.gwp-live-feed-contents.gwp-notice-discount{border-radius:5px;border:0;display:flex;align-items:center;padding:0;max-width:750px;margin-left:auto;margin-right:auto;background:#594679}.gwp-live-feed-contents.gwp-notice-discount .feed-thumbnail-wrapper .attachment-thumbnail{display:block}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper{display:flex;justify-content:space-between;align-items:center;width:100%;color:#fff;text-shadow:0 -1px 1px #594679;padding:20px 30px 20px 20px}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper p{font-size:14px;margin:0;padding:0}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper span.big{font-weight:400;font-size:18px}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper strong{font-weight:800}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper .button-primary{font-size:16px;border-radius:30px;padding:0 25px;border:0;height:40px;line-height:40px}.gwp-live-feed-contents.gwp-notice-discount .gwp-live-feed-close{color:#fff;opacity:.5;font-size:12px}.gwp-live-feed-contents.gwp-notice-discount .gwp-live-feed-close:hover{opacity:1}.gwp-live-feed-contents.gwp-notice-discount .gwp-live-feed-close:before{color:#fff}.gwp-live-feed-contents.gwp-notice-pro{border-radius:5px;border:0;display:flex;align-items:center;padding:0;max-width:750px;margin-left:auto;margin-right:auto;background:#2196f3}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper{display:flex;justify-content:space-between;align-items:center;width:100%;color:#fff;text-shadow:0 -1px 1px #2196f3;padding:20px}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper p{font-size:14px;margin:0;padding:0}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper span.big{font-weight:400;font-size:18px}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper strong{font-weight:800}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper .button-upgrade{position:relative;font-size:16px;color:#fff;font-weight:600;text-decoration:none;padding:25px 25px 25px 80px;display:block;margin:-20px;background:#673ab7;text-shadow:0 -1px 1px #673ab7}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper .button-upgrade small{font-weight:300;display:block}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper .button-upgrade i{position:absolute;left:25px;font-size:36px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:36px;height:36px}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper .button-upgrade:hover{background:#305af3;text-shadow:0 -1px 1px #305af3}.gwp-live-feed-contents.gwp-notice-pro .gwp-live-feed-close{color:#fff;opacity:.5;font-size:12px;z-index:1}.gwp-live-feed-contents.gwp-notice-pro .gwp-live-feed-close:hover{opacity:1}.gwp-live-feed-contents.gwp-notice-pro .gwp-live-feed-close:before{color:#fff}.gwp-live-feed-contents.gwp-notice-new{border:0;padding:0;max-width:750px;margin-left:auto;margin-right:auto;background:transparent;box-shadow:none}.gwp-live-feed-contents.gwp-notice-new .feed-message-wrapper,.gwp-live-feed-contents.gwp-notice-new .feed-message-wrapper img,.gwp-live-feed-contents.gwp-notice-new .feed-message-wrapper p{padding:0;margin:0}.gwp-live-feed-contents.gwp-notice-new .gwp-live-feed-close{color:rgba(0,0,0,.5);opacity:.5;font-size:12px}.gwp-live-feed-contents.gwp-notice-new .gwp-live-feed-close:hover{opacity:1}.gwp-live-feed-contents.gwp-notice-new .gwp-live-feed-close:before{color:rgba(0,0,0,.5)}.gwp-live-feed-contents .button-primary{background:#56bfd4;border-color:#3a9db1;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.3);text-shadow:0 -1px 1px #238ea5}.gwp-live-feed-contents .button-primary:active,.gwp-live-feed-contents .button-primary:focus,.gwp-live-feed-contents .button-primary:hover{background:#39b1ca;border-color:#3a9db1}.gwp-live-feed-contents .gwp-live-feed-close{display:flex;right:0;text-decoration:none;padding:10px 10px 10px 25px}.gwp-live-feed-contents .gwp-live-feed-close:before{display:inline-block}.gwp-live-feed-contents .gwp-live-feed-close-plain{display:flex;right:0;text-decoration:none;padding:15px}.gwp-live-feed-contents .gwp-live-feed-close-plain:before{display:inline-block}.wp-admin.rtl .gwp-live-feed-contents .gwp-live-feed-close-plain{left:0;right:auto}
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-live-feed-contents{position:relative;clear:both;overflow:hidden}.gwp-live-feed-contents.gwp-ad-gallery:before,.gwp-live-feed-contents.notice-info:before{content:"\F161";background:#41a1d3}.gwp-live-feed-contents.notice-success:before{content:"\F147";background:#46b450}.gwp-live-feed-contents.notice-error:before{content:"\F158";background:#dc3232}.gwp-live-feed-contents.notice-warning:before{content:"\F534";background:#f6ba33}.gwp-live-feed-contents.gwp-notice-required:before{content:"\F463";background:#ce3100;text-shadow:0 -1px 1px #ce3100}.gwp-live-feed-contents.gwp-notice-recommended:before{content:"\F529";background:#3d4046;text-shadow:0 -1px 1px #3d4046}.gwp-live-feed-contents.gwp-ad-gallery,.gwp-live-feed-contents.gwp-notice-recommended,.gwp-live-feed-contents.gwp-notice-required,.gwp-live-feed-contents.notice-error,.gwp-live-feed-contents.notice-info,.gwp-live-feed-contents.notice-success,.gwp-live-feed-contents.notice-warning{display:flex;align-items:stretch;padding:0;border-radius:4px}.gwp-live-feed-contents.gwp-ad-gallery:before,.gwp-live-feed-contents.gwp-notice-recommended:before,.gwp-live-feed-contents.gwp-notice-required:before,.gwp-live-feed-contents.notice-error:before,.gwp-live-feed-contents.notice-info:before,.gwp-live-feed-contents.notice-success:before,.gwp-live-feed-contents.notice-warning:before{font-family:dashicons;font-size:20px;color:#fff;padding:10px;display:flex;align-items:center}.gwp-live-feed-contents.gwp-ad-gallery .feed-message-wrapper,.gwp-live-feed-contents.gwp-notice-recommended .feed-message-wrapper,.gwp-live-feed-contents.gwp-notice-required .feed-message-wrapper,.gwp-live-feed-contents.notice-error .feed-message-wrapper,.gwp-live-feed-contents.notice-info .feed-message-wrapper,.gwp-live-feed-contents.notice-success .feed-message-wrapper,.gwp-live-feed-contents.notice-warning .feed-message-wrapper{padding:10px 60px 10px 20px}.gwp-live-feed-contents.gwp-notice-discount{border-radius:5px;border:0;display:flex;align-items:center;padding:0;max-width:750px;margin-left:auto;margin-right:auto;background:#594679}.gwp-live-feed-contents.gwp-notice-discount .feed-thumbnail-wrapper .attachment-thumbnail{display:block}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper{display:flex;justify-content:space-between;align-items:center;width:100%;color:#fff;text-shadow:0 -1px 1px #594679;padding:20px 30px 20px 20px}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper p{font-size:14px;margin:0;padding:0}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper span.big{font-weight:400;font-size:18px}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper strong{font-weight:800}.gwp-live-feed-contents.gwp-notice-discount .feed-message-wrapper .button-primary{font-size:16px;border-radius:30px;padding:0 25px;border:0;height:40px;line-height:40px}.gwp-live-feed-contents.gwp-notice-discount .gwp-live-feed-close{color:#fff;opacity:.5;font-size:12px}.gwp-live-feed-contents.gwp-notice-discount .gwp-live-feed-close:hover{opacity:1}.gwp-live-feed-contents.gwp-notice-discount .gwp-live-feed-close:before{color:#fff}.gwp-live-feed-contents.gwp-notice-pro{border-radius:5px;border:0;display:flex;align-items:center;padding:0;max-width:750px;margin-left:auto;margin-right:auto;background:#2196f3}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper{display:flex;justify-content:space-between;align-items:center;width:100%;color:#fff;text-shadow:0 -1px 1px #2196f3;padding:20px}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper p{font-size:14px;margin:0;padding:0}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper span.big{font-weight:400;font-size:18px}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper strong{font-weight:800}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper .button-upgrade{position:relative;font-size:16px;color:#fff;font-weight:600;text-decoration:none;padding:25px 25px 25px 80px;display:block;margin:-20px;background:#673ab7;text-shadow:0 -1px 1px #673ab7}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper .button-upgrade small{font-weight:300;display:block}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper .button-upgrade i{position:absolute;left:25px;font-size:36px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:36px;height:36px}.gwp-live-feed-contents.gwp-notice-pro .feed-message-wrapper .button-upgrade:hover{background:#305af3;text-shadow:0 -1px 1px #305af3}.gwp-live-feed-contents.gwp-notice-pro .gwp-live-feed-close{color:#fff;opacity:.5;font-size:12px;z-index:1}.gwp-live-feed-contents.gwp-notice-pro .gwp-live-feed-close:hover{opacity:1}.gwp-live-feed-contents.gwp-notice-pro .gwp-live-feed-close:before{color:#fff}.gwp-live-feed-contents.gwp-notice-new{border:0;padding:0;max-width:750px;margin-left:auto;margin-right:auto;background:transparent;box-shadow:none}.gwp-live-feed-contents.gwp-notice-new .feed-message-wrapper,.gwp-live-feed-contents.gwp-notice-new .feed-message-wrapper img,.gwp-live-feed-contents.gwp-notice-new .feed-message-wrapper p{padding:0;margin:0}.gwp-live-feed-contents.gwp-notice-new .gwp-live-feed-close{color:rgba(0,0,0,.5);opacity:.5;font-size:12px}.gwp-live-feed-contents.gwp-notice-new .gwp-live-feed-close:hover{opacity:1}.gwp-live-feed-contents.gwp-notice-new .gwp-live-feed-close:before{color:rgba(0,0,0,.5)}.gwp-live-feed-contents .button-primary{background:#56bfd4;border-color:#3a9db1;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.3);text-shadow:0 -1px 1px #238ea5}.gwp-live-feed-contents .button-primary:active,.gwp-live-feed-contents .button-primary:focus,.gwp-live-feed-contents .button-primary:hover{background:#39b1ca;border-color:#3a9db1}.gwp-live-feed-contents .gwp-live-feed-close{display:flex;right:0;text-decoration:none;padding:10px 10px 10px 25px}.gwp-live-feed-contents .gwp-live-feed-close:before{display:inline-block}.gwp-live-feed-contents .gwp-live-feed-close-plain{display:flex;right:0;text-decoration:none;padding:15px}.gwp-live-feed-contents .gwp-live-feed-close-plain:before{display:inline-block}.wp-admin.rtl .gwp-live-feed-contents .gwp-live-feed-close-plain{left:0;right:auto}
|
assets/css/gwp-admin.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/**
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/**
|
assets/css/gwp-admin.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-backbone-modal *{box-sizing:border-box}.gwp-backbone-modal .gwp-backbone-modal-content{position:fixed;background:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:100%;min-width:300px}.gwp-backbone-modal .gwp-backbone-modal-content article{overflow:auto}.gwp-backbone-modal .gwp-backbone-modal-content{width:40%}.gwp-backbone-modal .gwp-feedback-dialog-form-body h2{font-weight:700;font-size:15px;color:#495157;margin:0 0 20px}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-dialog-input-wrapper{line-height:1.3;overflow:hidden;margin-bottom:15px}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-dialog-input{float:left;margin:0 10px 0 0;box-shadow:none}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-text{margin:10px 0 0 25px;padding:5px;font-size:13px;box-shadow:none;background-color:#fff;width:92%;display:none}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-alert{color:#0273a9;background-color:#fff;font-weight:600}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-dialog-label{display:block;font-size:13px;color:#6d7882}.gwp-backbone-modal footer{margin-top:30px;overflow:hidden;clear:both}.gwp-backbone-modal footer .feedback-dialog-form-button-send{background-color:#56bfd4;border-radius:3px;color:#fff;line-height:1;padding:12px 20px;font-size:13px;height:40px;border:0;box-shadow:none;text-shadow:none;float:left}.gwp-backbone-modal footer .feedback-dialog-form-button-send:hover{background:#389db1}.gwp-backbone-modal footer .feedback-dialog-form-button-send:active{-webkit-transform:translateY(0);transform:translateY(0)}.gwp-backbone-modal footer .feedback-dialog-form-button-skip{font-size:12px;color:#a4afb7;background:none;float:right;width:auto;cursor:pointer;padding:10px 0;outline:0;text-decoration:none}.gwp-backbone-modal footer .feedback-dialog-form-button-skip:focus{box-shadow:none}.gwp-backbone-modal footer .feedback-dialog-form-button-skip:hover{text-decoration:underline}.woo-variation-gallery-message{background-color:#7f54b3;color:#fff;padding:5px 10px;border-radius:5px;display:none}.woo-variation-gallery-message a{color:#fff}.woo-variation-gallery-message.enable,.woo-variation-gallery-message.loading{display:block}@media screen and (max-width:782px){.gwp-backbone-modal .gwp-backbone-modal-content{width:100%;height:100%;min-width:100%}}.gwp-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:99900}.gwp-backbone-modal-main{padding-bottom:55px}.gwp-backbone-modal-main article,.gwp-backbone-modal-main header{display:block;position:relative}.gwp-backbone-modal-main .gwp-backbone-modal-header{height:auto;background:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.gwp-backbone-modal-main .gwp-backbone-modal-header h1{margin:0;color:#495157;font-weight:700;font-size:14px;background:transparent;line-height:2em;text-transform:uppercase;border:0}.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;transition:color .1s ease-in-out,background .1s ease-in-out}.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link:before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:"\F335";font-weight:300}.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link:focus,.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link:hover{background:#ddd;border-color:#ccc;color:#000}.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link:focus{outline:none}.gwp-backbone-modal-main article{padding:1.5em}.gwp-backbone-modal-main article p{margin:1.5em 0}.gwp-backbone-modal-main article p:first-child{margin-top:0}.gwp-backbone-modal-main article p:last-child{margin-bottom:0}.gwp-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.gwp-backbone-modal-main article table.widefat{margin:0;width:100%;border:0;box-shadow:none}.gwp-backbone-modal-main article table.widefat thead th{padding:0 1em 1em;text-align:left}.gwp-backbone-modal-main article table.widefat thead th:first-child{padding-left:0}.gwp-backbone-modal-main article table.widefat thead th:last-child{padding-right:0;text-align:right}.gwp-backbone-modal-main article table.widefat tbody td,.gwp-backbone-modal-main article table.widefat tbody th{padding:1em;text-align:left;vertical-align:middle}.gwp-backbone-modal-main article table.widefat tbody td:first-child,.gwp-backbone-modal-main article table.widefat tbody th:first-child{padding-left:0}.gwp-backbone-modal-main article table.widefat tbody td:last-child,.gwp-backbone-modal-main article table.widefat tbody th:last-child{padding-right:0;text-align:right}.gwp-backbone-modal-main article table.widefat tbody td .select2-container,.gwp-backbone-modal-main article table.widefat tbody td select,.gwp-backbone-modal-main article table.widefat tbody th .select2-container,.gwp-backbone-modal-main article table.widefat tbody th select{width:100%}.gwp-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.gwp-backbone-modal-main footer .inner{text-align:right;line-height:23px}.gwp-backbone-modal-main footer .inner .button{margin-bottom:0}.gwp-backbone-modal-main footer .inner .gwp-action-button-group{display:inline-block;float:left}.gwp-backbone-modal-main footer .inner .button.button-large{margin-left:10px;padding:0 10px!important;line-height:28px;height:auto;display:inline-block}.gwp-action-button-group{vertical-align:middle;line-height:26px;text-align:left}.gwp-action-button-group .gwp-action-button-group__items{display:inline-flex;flex-flow:row wrap;align-content:flex-start;justify-content:flex-start}.gwp-action-button-group .gwp-action-button{margin:0 0 0 -1px!important;border:1px solid #ccc;padding:0 10px!important;border-radius:0!important;float:none;line-height:28px;height:auto;z-index:1;position:relative;overflow:hidden;text-overflow:ellipsis;flex:1 0 auto;box-sizing:border-box;text-align:center;white-space:nowrap}.gwp-action-button-group .gwp-action-button:focus,.gwp-action-button-group .gwp-action-button:hover{border:1px solid #999;z-index:2}.gwp-action-button-group .gwp-action-button:first-child{margin-left:0!important;border-top-left-radius:3px!important;border-bottom-left-radius:3px!important}.gwp-action-button-group .gwp-action-button:last-child{border-top-right-radius:3px!important;border-bottom-right-radius:3px!important}.gwp-action-button-group .spinner{margin:10px}.gwp-action-button-group .spinner.visible{visibility:visible}
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.gwp-backbone-modal *{box-sizing:border-box}.gwp-backbone-modal .gwp-backbone-modal-content{position:fixed;background:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:100%;min-width:300px}.gwp-backbone-modal .gwp-backbone-modal-content article{overflow:auto}.gwp-backbone-modal .gwp-backbone-modal-content{width:40%}.gwp-backbone-modal .gwp-feedback-dialog-form-body h2{font-weight:700;font-size:15px;color:#495157;margin:0 0 20px}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-dialog-input-wrapper{line-height:1.3;overflow:hidden;margin-bottom:15px}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-dialog-input{float:left;margin:0 10px 0 0;box-shadow:none}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-text{margin:10px 0 0 25px;padding:5px;font-size:13px;box-shadow:none;background-color:#fff;width:92%;display:none}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-alert{color:#0273a9;background-color:#fff;font-weight:600}.gwp-backbone-modal .gwp-feedback-dialog-form-body .feedback-dialog-form-body .feedback-dialog-label{display:block;font-size:13px;color:#6d7882}.gwp-backbone-modal footer{margin-top:30px;overflow:hidden;clear:both}.gwp-backbone-modal footer .feedback-dialog-form-button-send{background-color:#56bfd4;border-radius:3px;color:#fff;line-height:1;padding:12px 20px;font-size:13px;height:40px;border:0;box-shadow:none;text-shadow:none;float:left}.gwp-backbone-modal footer .feedback-dialog-form-button-send:hover{background:#389db1}.gwp-backbone-modal footer .feedback-dialog-form-button-send:active{-webkit-transform:translateY(0);transform:translateY(0)}.gwp-backbone-modal footer .feedback-dialog-form-button-skip{font-size:12px;color:#a4afb7;background:none;float:right;width:auto;cursor:pointer;padding:10px 0;outline:0;text-decoration:none}.gwp-backbone-modal footer .feedback-dialog-form-button-skip:focus{box-shadow:none}.gwp-backbone-modal footer .feedback-dialog-form-button-skip:hover{text-decoration:underline}.woo-variation-gallery-message{background-color:#7f54b3;color:#fff;padding:5px 10px;border-radius:5px;display:none}.woo-variation-gallery-message a{color:#fff}.woo-variation-gallery-message.enable,.woo-variation-gallery-message.loading{display:block}@media screen and (max-width:782px){.gwp-backbone-modal .gwp-backbone-modal-content{width:100%;height:100%;min-width:100%}}.gwp-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;z-index:99900}.gwp-backbone-modal-main{padding-bottom:55px}.gwp-backbone-modal-main article,.gwp-backbone-modal-main header{display:block;position:relative}.gwp-backbone-modal-main .gwp-backbone-modal-header{height:auto;background:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.gwp-backbone-modal-main .gwp-backbone-modal-header h1{margin:0;color:#495157;font-weight:700;font-size:14px;background:transparent;line-height:2em;text-transform:uppercase;border:0}.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;transition:color .1s ease-in-out,background .1s ease-in-out}.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link:before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:"\F335";font-weight:300}.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link:focus,.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link:hover{background:#ddd;border-color:#ccc;color:#000}.gwp-backbone-modal-main .gwp-backbone-modal-header .modal-close-link:focus{outline:none}.gwp-backbone-modal-main article{padding:1.5em}.gwp-backbone-modal-main article p{margin:1.5em 0}.gwp-backbone-modal-main article p:first-child{margin-top:0}.gwp-backbone-modal-main article p:last-child{margin-bottom:0}.gwp-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.gwp-backbone-modal-main article table.widefat{margin:0;width:100%;border:0;box-shadow:none}.gwp-backbone-modal-main article table.widefat thead th{padding:0 1em 1em;text-align:left}.gwp-backbone-modal-main article table.widefat thead th:first-child{padding-left:0}.gwp-backbone-modal-main article table.widefat thead th:last-child{padding-right:0;text-align:right}.gwp-backbone-modal-main article table.widefat tbody td,.gwp-backbone-modal-main article table.widefat tbody th{padding:1em;text-align:left;vertical-align:middle}.gwp-backbone-modal-main article table.widefat tbody td:first-child,.gwp-backbone-modal-main article table.widefat tbody th:first-child{padding-left:0}.gwp-backbone-modal-main article table.widefat tbody td:last-child,.gwp-backbone-modal-main article table.widefat tbody th:last-child{padding-right:0;text-align:right}.gwp-backbone-modal-main article table.widefat tbody td .select2-container,.gwp-backbone-modal-main article table.widefat tbody td select,.gwp-backbone-modal-main article table.widefat tbody th .select2-container,.gwp-backbone-modal-main article table.widefat tbody th select{width:100%}.gwp-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.gwp-backbone-modal-main footer .inner{text-align:right;line-height:23px}.gwp-backbone-modal-main footer .inner .button{margin-bottom:0}.gwp-backbone-modal-main footer .inner .gwp-action-button-group{display:inline-block;float:left}.gwp-backbone-modal-main footer .inner .button.button-large{margin-left:10px;padding:0 10px!important;line-height:28px;height:auto;display:inline-block}.gwp-action-button-group{vertical-align:middle;line-height:26px;text-align:left}.gwp-action-button-group .gwp-action-button-group__items{display:inline-flex;flex-flow:row wrap;align-content:flex-start;justify-content:flex-start}.gwp-action-button-group .gwp-action-button{margin:0 0 0 -1px!important;border:1px solid #ccc;padding:0 10px!important;border-radius:0!important;float:none;line-height:28px;height:auto;z-index:1;position:relative;overflow:hidden;text-overflow:ellipsis;flex:1 0 auto;box-sizing:border-box;text-align:center;white-space:nowrap}.gwp-action-button-group .gwp-action-button:focus,.gwp-action-button-group .gwp-action-button:hover{border:1px solid #999;z-index:2}.gwp-action-button-group .gwp-action-button:first-child{margin-left:0!important;border-top-left-radius:3px!important;border-bottom-left-radius:3px!important}.gwp-action-button-group .gwp-action-button:last-child{border-top-right-radius:3px!important;border-bottom-right-radius:3px!important}.gwp-action-button-group .spinner{margin:10px}.gwp-action-button-group .spinner.visible{visibility:visible}
|
assets/css/wvs-theme-override.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.wvs-theme-sober .product form.cart .variations .variable,
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.wvs-theme-sober .product form.cart .variations .variable,
|
assets/css/wvs-theme-override.min.css
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.wvs-theme-child-sober .product form.cart .variations .variable,.wvs-theme-sober .product form.cart .variations .variable{margin-bottom:15px!important}.wvs-theme-child-sober .product form.cart .variations .variable-options,.wvs-theme-sober .product form.cart .variations .variable-options{border:0!important}.wvs-theme-child-sober .product form.cart .variations .arrow,.wvs-theme-child-sober .product form.cart .variations .variable-options:after,.wvs-theme-sober .product form.cart .variations .arrow,.wvs-theme-sober .product form.cart .variations .variable-options:after{display:none}.wvs-theme-child-sober .product form.cart .variations .label,.wvs-theme-sober .product form.cart .variations .label{display:block;text-align:right;margin-right:10px}.wvs-theme-child-sober .product form.cart .variations .value,.wvs-theme-sober .product form.cart .variations .value{flex-grow:unset}.wvs-theme-child-sober .product form.cart .variations select,.wvs-theme-sober .product form.cart .variations select{border:1px solid #e4e6eb!important;padding:.5em 1em!important;text-align:left!important;-moz-text-align-last:left!important;text-align-last:left!important;-webkit-appearance:menulist-button!important}.wvs-theme-child-sober .product form.cart .radio-variable-item,.wvs-theme-sober .product form.cart .radio-variable-item{margin:5px;text-align:left}.wvs-theme-child-sober .product form.cart .radio-variable-item:last-child,.wvs-theme-sober .product form.cart .radio-variable-item:last-child{margin-right:0}.wvs-theme-child-sober .product form.cart .radio-variable-item label,.wvs-theme-sober .product form.cart .radio-variable-item label{padding-left:30px;margin:0}.wvs-theme-child-sober .product form.cart .radio-variable-item label:before,.wvs-theme-sober .product form.cart .radio-variable-item label:before{top:0;border-radius:100%}.wvs-theme-child-sober .product form.cart .radio-variable-item label:after,.wvs-theme-sober .product form.cart .radio-variable-item label:after{top:8px}.wvs-theme-shophistic-lite.woocommerce #main .entry-summary .variations{display:block!important}.wvs-theme-shophistic-lite .ql_custom_variations{display:none!important}.wvs-theme-shophistic-lite .radio-variable-item input[type=radio]{display:inline-block;margin:0}.wvs-theme-flatsome .variations .reset_variations{position:relative;bottom:0;left:0}.wvs-theme-child-storefront.single-product div.product,.wvs-theme-storefront.single-product div.product{overflow:visible!important}.wvs-theme-stockholm .variations .reset_variations{position:relative;bottom:0;left:0;-webkit-transform:none;transform:none}.wvs-theme-kalium-child .image-variable-item img,.wvs-theme-kalium .image-variable-item img{width:100%!important}.wvs-theme-kalium-child .radio-variable-item input,.wvs-theme-kalium .radio-variable-item input{width:16px!important;height:16px!important}.wvs-theme-kalium-child .woo-variation-items-wrapper .select-option-ui,.wvs-theme-kalium .woo-variation-items-wrapper .select-option-ui{display:none}.wvs-theme-aurum .variable-items-wrapper .image-variable-item>img,.wvs-theme-child-aurum .variable-items-wrapper .image-variable-item>img{width:100%}.wvs-theme-hestia .woo-variation-items-wrapper.value:before{display:none!important}.wvs-theme-child-thegem .woo-variation-items-wrapper .combobox-wrapper,.wvs-theme-thegem .woo-variation-items-wrapper .combobox-wrapper{display:none}.wvs-theme-child-thegem .wvs-archive-variation-wrapper .variations,.wvs-theme-thegem .wvs-archive-variation-wrapper .variations{padding:0}.wvs-theme-child-ushop .variations_form,.wvs-theme-ushop .variations_form{overflow:visible!important}.wvs-theme-child-ushop .single-product-summary .product_meta,.wvs-theme-ushop .single-product-summary .product_meta{display:inline-table}.wvs-theme-child-savoy .woo-variation-items-wrapper,.wvs-theme-savoy .woo-variation-items-wrapper{position:relative!important}.wvs-theme-child-savoy .woo-variation-items-wrapper .sod_select,.wvs-theme-savoy .woo-variation-items-wrapper .sod_select{display:none!important}.wvs-theme-child-savoy .nm-variation-row,.wvs-theme-savoy .nm-variation-row{display:flex}.wvs-theme-child-woodstock .woo-variation-items-wrapper .variation-select,.wvs-theme-woodstock .woo-variation-items-wrapper .variation-select{display:none!important}.wvs-theme-child-woodmart .woo-variation-items-wrapper>.swatches-select,.wvs-theme-woodmart .woo-variation-items-wrapper>.swatches-select{display:none}.wvs-theme-gecko-child .variations .value.woo-variation-items-wrapper,.wvs-theme-gecko .variations .value.woo-variation-items-wrapper{border:0!important}.wvs-theme-gecko-child .variations .value.woo-variation-items-wrapper:after,.wvs-theme-gecko .variations .value.woo-variation-items-wrapper:after{display:none!important}.woo-variation-gallery-theme-child-massive-dynamic .woo-variation-items-wrapper .clear-selection,.woo-variation-gallery-theme-massive-dynamic .woo-variation-items-wrapper .clear-selection{border:0;height:auto;width:auto}.woo-variation-gallery-theme-child-massive-dynamic .woo-variation-items-wrapper .clear-selection .reset_variations,.woo-variation-gallery-theme-massive-dynamic .woo-variation-items-wrapper .clear-selection .reset_variations{font-size:8px!important;width:20px;height:20px;padding:5px;box-sizing:border-box;border-radius:100%;border:1px solid #f04040;color:#f04040}.wvs-theme-child-claue .woo-variation-items-wrapper,.wvs-theme-claue .woo-variation-items-wrapper{border:none}.wvs-theme-child-claue .woo-variation-items-wrapper:after,.wvs-theme-claue .woo-variation-items-wrapper:after{display:none}.wvs-theme-child-jupiter table.variations,.wvs-theme-jupiter table.variations{overflow:initial}.wvs-theme-child-oxygen .woo-variation-items-wrapper .select-wrapper,.wvs-theme-oxygen .woo-variation-items-wrapper .select-wrapper{display:none}.wvs-theme-child-oxygen .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input,.wvs-theme-oxygen .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{width:18px}.wvs-theme-child-simple-elegant .woo-variation-items-wrapper .wi-nice-select,.wvs-theme-simple-elegant .woo-variation-items-wrapper .wi-nice-select{display:none}.wvs-theme-child-twentytwenty table.variations,.wvs-theme-twentytwenty table.variations{overflow:auto}.wvs-theme-child-divi .et_pb_wc_add_to_cart form.variations_form.cart .variations td.value span:after,.wvs-theme-child-jevelin .sh-woo-layout table.variations td select.woo-variation-raw-select,.wvs-theme-divi .et_pb_wc_add_to_cart form.variations_form.cart .variations td.value span:after,.wvs-theme-jevelin .sh-woo-layout table.variations td select.woo-variation-raw-select{display:none!important}.wvs-theme-child-jevelin .sh-woo-layout table.variations,.wvs-theme-jevelin .sh-woo-layout table.variations{max-width:100%}.wvs-theme-child-jevelin .radio-variable-item label,.wvs-theme-jevelin .radio-variable-item label{line-height:1!important}.wvs-theme-child-stockie .woo-variation-raw-select+.select-styled,.wvs-theme-stockie .woo-variation-raw-select+.select-styled{display:none!important}
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
.wvs-theme-child-sober .product form.cart .variations .variable,.wvs-theme-sober .product form.cart .variations .variable{margin-bottom:15px!important}.wvs-theme-child-sober .product form.cart .variations .variable-options,.wvs-theme-sober .product form.cart .variations .variable-options{border:0!important}.wvs-theme-child-sober .product form.cart .variations .arrow,.wvs-theme-child-sober .product form.cart .variations .variable-options:after,.wvs-theme-sober .product form.cart .variations .arrow,.wvs-theme-sober .product form.cart .variations .variable-options:after{display:none}.wvs-theme-child-sober .product form.cart .variations .label,.wvs-theme-sober .product form.cart .variations .label{display:block;text-align:right;margin-right:10px}.wvs-theme-child-sober .product form.cart .variations .value,.wvs-theme-sober .product form.cart .variations .value{flex-grow:unset}.wvs-theme-child-sober .product form.cart .variations select,.wvs-theme-sober .product form.cart .variations select{border:1px solid #e4e6eb!important;padding:.5em 1em!important;text-align:left!important;-moz-text-align-last:left!important;text-align-last:left!important;-webkit-appearance:menulist-button!important}.wvs-theme-child-sober .product form.cart .radio-variable-item,.wvs-theme-sober .product form.cart .radio-variable-item{margin:5px;text-align:left}.wvs-theme-child-sober .product form.cart .radio-variable-item:last-child,.wvs-theme-sober .product form.cart .radio-variable-item:last-child{margin-right:0}.wvs-theme-child-sober .product form.cart .radio-variable-item label,.wvs-theme-sober .product form.cart .radio-variable-item label{padding-left:30px;margin:0}.wvs-theme-child-sober .product form.cart .radio-variable-item label:before,.wvs-theme-sober .product form.cart .radio-variable-item label:before{top:0;border-radius:100%}.wvs-theme-child-sober .product form.cart .radio-variable-item label:after,.wvs-theme-sober .product form.cart .radio-variable-item label:after{top:8px}.wvs-theme-shophistic-lite.woocommerce #main .entry-summary .variations{display:block!important}.wvs-theme-shophistic-lite .ql_custom_variations{display:none!important}.wvs-theme-shophistic-lite .radio-variable-item input[type=radio]{display:inline-block;margin:0}.wvs-theme-flatsome .variations .reset_variations{position:relative;bottom:0;left:0}.wvs-theme-child-storefront.single-product div.product,.wvs-theme-storefront.single-product div.product{overflow:visible!important}.wvs-theme-stockholm .variations .reset_variations{position:relative;bottom:0;left:0;-webkit-transform:none;transform:none}.wvs-theme-kalium-child .image-variable-item img,.wvs-theme-kalium .image-variable-item img{width:100%!important}.wvs-theme-kalium-child .radio-variable-item input,.wvs-theme-kalium .radio-variable-item input{width:16px!important;height:16px!important}.wvs-theme-kalium-child .woo-variation-items-wrapper .select-option-ui,.wvs-theme-kalium .woo-variation-items-wrapper .select-option-ui{display:none}.wvs-theme-aurum .variable-items-wrapper .image-variable-item>img,.wvs-theme-child-aurum .variable-items-wrapper .image-variable-item>img{width:100%}.wvs-theme-hestia .woo-variation-items-wrapper.value:before{display:none!important}.wvs-theme-child-thegem .woo-variation-items-wrapper .combobox-wrapper,.wvs-theme-thegem .woo-variation-items-wrapper .combobox-wrapper{display:none}.wvs-theme-child-thegem .wvs-archive-variation-wrapper .variations,.wvs-theme-thegem .wvs-archive-variation-wrapper .variations{padding:0}.wvs-theme-child-ushop .variations_form,.wvs-theme-ushop .variations_form{overflow:visible!important}.wvs-theme-child-ushop .single-product-summary .product_meta,.wvs-theme-ushop .single-product-summary .product_meta{display:inline-table}.wvs-theme-child-savoy .woo-variation-items-wrapper,.wvs-theme-savoy .woo-variation-items-wrapper{position:relative!important}.wvs-theme-child-savoy .woo-variation-items-wrapper .sod_select,.wvs-theme-savoy .woo-variation-items-wrapper .sod_select{display:none!important}.wvs-theme-child-savoy .nm-variation-row,.wvs-theme-savoy .nm-variation-row{display:flex}.wvs-theme-child-woodstock .woo-variation-items-wrapper .variation-select,.wvs-theme-woodstock .woo-variation-items-wrapper .variation-select{display:none!important}.wvs-theme-child-woodmart .woo-variation-items-wrapper>.swatches-select,.wvs-theme-woodmart .woo-variation-items-wrapper>.swatches-select{display:none}.wvs-theme-gecko-child .variations .value.woo-variation-items-wrapper,.wvs-theme-gecko .variations .value.woo-variation-items-wrapper{border:0!important}.wvs-theme-gecko-child .variations .value.woo-variation-items-wrapper:after,.wvs-theme-gecko .variations .value.woo-variation-items-wrapper:after{display:none!important}.woo-variation-gallery-theme-child-massive-dynamic .woo-variation-items-wrapper .clear-selection,.woo-variation-gallery-theme-massive-dynamic .woo-variation-items-wrapper .clear-selection{border:0;height:auto;width:auto}.woo-variation-gallery-theme-child-massive-dynamic .woo-variation-items-wrapper .clear-selection .reset_variations,.woo-variation-gallery-theme-massive-dynamic .woo-variation-items-wrapper .clear-selection .reset_variations{font-size:8px!important;width:20px;height:20px;padding:5px;box-sizing:border-box;border-radius:100%;border:1px solid #f04040;color:#f04040}.wvs-theme-child-claue .woo-variation-items-wrapper,.wvs-theme-claue .woo-variation-items-wrapper{border:none}.wvs-theme-child-claue .woo-variation-items-wrapper:after,.wvs-theme-claue .woo-variation-items-wrapper:after{display:none}.wvs-theme-child-jupiter table.variations,.wvs-theme-jupiter table.variations{overflow:initial}.wvs-theme-child-oxygen .woo-variation-items-wrapper .select-wrapper,.wvs-theme-oxygen .woo-variation-items-wrapper .select-wrapper{display:none}.wvs-theme-child-oxygen .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input,.wvs-theme-oxygen .variable-items-wrapper.radio-variable-wrapper .radio-variable-item input{width:18px}.wvs-theme-child-simple-elegant .woo-variation-items-wrapper .wi-nice-select,.wvs-theme-simple-elegant .woo-variation-items-wrapper .wi-nice-select{display:none}.wvs-theme-child-twentytwenty table.variations,.wvs-theme-twentytwenty table.variations{overflow:auto}.wvs-theme-child-divi .et_pb_wc_add_to_cart form.variations_form.cart .variations td.value span:after,.wvs-theme-child-jevelin .sh-woo-layout table.variations td select.woo-variation-raw-select,.wvs-theme-divi .et_pb_wc_add_to_cart form.variations_form.cart .variations td.value span:after,.wvs-theme-jevelin .sh-woo-layout table.variations td select.woo-variation-raw-select{display:none!important}.wvs-theme-child-jevelin .sh-woo-layout table.variations,.wvs-theme-jevelin .sh-woo-layout table.variations{max-width:100%}.wvs-theme-child-jevelin .radio-variable-item label,.wvs-theme-jevelin .radio-variable-item label{line-height:1!important}.wvs-theme-child-stockie .woo-variation-raw-select+.select-styled,.wvs-theme-stockie .woo-variation-raw-select+.select-styled{display:none!important}
|
assets/js/admin.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
assets/js/frontend.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
@@ -171,477 +171,477 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
171 |
|
172 |
var WooVariationSwatches = function ($) {
|
173 |
|
174 |
-
|
175 |
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
|
|
222 |
|
223 |
-
|
224 |
-
|
225 |
|
226 |
-
|
227 |
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
|
248 |
-
|
249 |
-
|
250 |
-
|
|
|
|
|
251 |
|
252 |
-
|
253 |
-
var selected = '';
|
254 |
|
255 |
-
|
256 |
-
|
257 |
-
var current = $(this).siblings('select.woo-variation-raw-select').find('option:selected');
|
258 |
-
var eq = $(this).siblings('select.woo-variation-raw-select').find('option').eq(1);
|
259 |
|
260 |
-
|
261 |
-
|
262 |
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
var attribute_values = _this.is_ajax_variation ? [] : _this._generated[attribute];
|
267 |
-
var out_of_stocks = _this.is_ajax_variation ? [] : _this._out_of_stock[attribute];
|
268 |
-
var selects = [];
|
269 |
-
var disabled_selects = [];
|
270 |
-
var $selected_variation_item = $(this).parent().prev().find('.woo-selected-variation-item-name');
|
271 |
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
options = $(this).parent().find('select.woo-variation-raw-select').find('option');
|
276 |
-
disabled = $(this).parent().find('select.woo-variation-raw-select').find('option:disabled');
|
277 |
-
current = $(this).parent().find('select.woo-variation-raw-select').find('option:selected');
|
278 |
-
eq = $(this).parent().find('select.woo-variation-raw-select').find('option').eq(1);
|
279 |
-
}
|
280 |
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
}
|
292 |
-
});
|
293 |
|
294 |
-
|
295 |
|
296 |
-
|
297 |
-
li.each(function (index, li) {
|
298 |
|
299 |
-
|
300 |
-
|
301 |
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
|
306 |
-
|
307 |
-
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
|
|
|
|
|
|
|
|
314 |
|
315 |
-
|
316 |
|
317 |
-
|
318 |
-
|
319 |
-
|
|
|
|
|
|
|
|
|
320 |
|
321 |
-
|
|
|
|
|
|
|
322 |
|
323 |
-
|
324 |
|
325 |
-
|
326 |
-
|
327 |
|
328 |
-
|
329 |
-
$selected_variation_item.text(woo_variation_swatches_options.variation_label_separator + ' ' + attribute_title);
|
330 |
-
}
|
331 |
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
}
|
336 |
-
}
|
337 |
-
});
|
338 |
|
339 |
-
|
340 |
|
341 |
-
|
|
|
342 |
|
343 |
-
|
344 |
-
$(this).on(mouse_event_name, 'li:not(.selected):not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)', function (e) {
|
345 |
-
e.preventDefault();
|
346 |
-
e.stopPropagation();
|
347 |
-
var value = $(this).data('value');
|
348 |
-
select.val(value).trigger('change');
|
349 |
-
select.trigger('click');
|
350 |
|
351 |
-
|
|
|
352 |
|
353 |
-
|
354 |
-
select.trigger('touchstart');
|
355 |
-
}
|
356 |
|
357 |
-
|
358 |
-
|
359 |
-
});
|
360 |
|
361 |
-
|
362 |
-
$(this).on(mouse_event_name, 'li.selected:not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)', function (e) {
|
363 |
-
e.preventDefault();
|
364 |
-
e.stopPropagation();
|
365 |
|
366 |
-
|
|
|
367 |
|
368 |
-
|
369 |
-
select.trigger('click');
|
370 |
|
371 |
-
|
|
|
372 |
|
373 |
-
|
374 |
-
|
375 |
-
|
|
|
|
|
|
|
|
|
376 |
|
377 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
|
379 |
-
|
380 |
-
});
|
381 |
|
382 |
-
|
|
|
383 |
|
384 |
-
|
385 |
-
|
|
|
|
|
|
|
|
|
|
|
386 |
|
387 |
-
|
388 |
|
389 |
-
|
390 |
-
|
391 |
|
392 |
-
|
|
|
|
|
|
|
393 |
|
394 |
-
|
395 |
-
e.stopPropagation();
|
396 |
|
397 |
-
|
|
|
|
|
398 |
|
399 |
-
|
400 |
-
|
|
|
401 |
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
|
419 |
-
|
|
|
|
|
|
|
|
|
420 |
|
421 |
-
|
422 |
-
event.stopPropagation();
|
423 |
|
424 |
-
|
425 |
-
select.val(value).trigger('change');
|
426 |
-
select.trigger('click');
|
427 |
-
select.trigger('focusin');
|
428 |
-
if (_this.is_mobile) {
|
429 |
-
select.trigger('touchstart');
|
430 |
-
}
|
431 |
|
432 |
-
|
433 |
|
434 |
-
|
435 |
-
|
436 |
|
437 |
-
|
438 |
-
|
439 |
-
event.preventDefault();
|
440 |
-
event.stopPropagation();
|
441 |
|
442 |
-
|
|
|
|
|
|
|
443 |
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
}
|
457 |
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
event.preventDefault();
|
462 |
-
$(this).trigger(mouse_event_name);
|
463 |
-
}
|
464 |
-
});
|
465 |
-
});
|
466 |
|
467 |
-
|
468 |
|
469 |
-
|
470 |
-
|
471 |
-
}, {
|
472 |
-
key: 'update',
|
473 |
-
value: function update() {
|
474 |
|
475 |
-
|
|
|
|
|
476 |
|
477 |
-
|
|
|
|
|
478 |
|
479 |
-
|
480 |
-
|
|
|
481 |
|
482 |
-
|
|
|
|
|
483 |
|
484 |
-
|
485 |
-
|
486 |
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
var eq = $(this).siblings('select.woo-variation-raw-select').find('option').eq(1);
|
491 |
-
var li = $(this).find('li:not(.woo-variation-swatches-variable-item-more)');
|
492 |
-
|
493 |
-
//let reselect_clear = $(this).hasClass('reselect-clear');
|
494 |
-
//let is_mobile = $('body').hasClass('woo-variation-swatches-on-mobile');
|
495 |
-
//let mouse_event_name = 'click.wvs'; // 'touchstart click';
|
496 |
|
497 |
-
|
498 |
-
var attribute_values = _this.is_ajax_variation ? [] : _this._generated[attribute];
|
499 |
-
var out_of_stocks = _this.is_ajax_variation ? [] : _this._out_of_stock[attribute];
|
500 |
-
var selects = [];
|
501 |
-
var disabled_selects = [];
|
502 |
-
var $selected_variation_item = $(this).parent().prev().find('.woo-selected-variation-item-name');
|
503 |
-
|
504 |
-
// For Avada FIX
|
505 |
-
if (options.length < 1) {
|
506 |
-
select = $(this).parent().find('select.woo-variation-raw-select');
|
507 |
-
options = $(this).parent().find('select.woo-variation-raw-select').find('option');
|
508 |
-
disabled = $(this).parent().find('select.woo-variation-raw-select').find('option:disabled');
|
509 |
-
current = $(this).parent().find('select.woo-variation-raw-select').find('option:selected');
|
510 |
-
eq = $(this).parent().find('select.woo-variation-raw-select').find('option').eq(1);
|
511 |
-
}
|
512 |
-
|
513 |
-
options.each(function () {
|
514 |
-
if ($(this).val() !== '') {
|
515 |
-
selects.push($(this).val());
|
516 |
-
selected = current ? current.val() : eq.val();
|
517 |
-
}
|
518 |
-
});
|
519 |
-
|
520 |
-
disabled.each(function () {
|
521 |
-
if ($(this).val() !== '') {
|
522 |
-
disabled_selects.push($(this).val());
|
523 |
-
}
|
524 |
-
});
|
525 |
-
|
526 |
-
var in_stocks = _.difference(selects, disabled_selects);
|
527 |
-
|
528 |
-
if (_this.is_ajax_variation) {
|
529 |
-
|
530 |
-
li.each(function (index, el) {
|
531 |
-
|
532 |
-
var attribute_value = $(this).attr('data-value');
|
533 |
-
var attribute_title = $(this).attr('data-title');
|
534 |
-
|
535 |
-
$(this).removeClass('selected disabled');
|
536 |
-
$(this).attr('aria-checked', 'false');
|
537 |
-
|
538 |
-
// To Prevent blink
|
539 |
-
if (selected.length < 1 && woo_variation_swatches_options.show_variation_label) {
|
540 |
-
$selected_variation_item.text('');
|
541 |
-
}
|
542 |
-
|
543 |
-
if (attribute_value === selected) {
|
544 |
-
$(this).addClass('selected');
|
545 |
-
$(this).attr('aria-checked', 'true');
|
546 |
-
|
547 |
-
if (woo_variation_swatches_options.show_variation_label) {
|
548 |
-
$selected_variation_item.text(woo_variation_swatches_options.variation_label_separator + ' ' + attribute_title);
|
549 |
-
}
|
550 |
-
|
551 |
-
if ($(this).hasClass('radio-variable-item')) {
|
552 |
-
$(this).find('input.wvs-radio-variable-item:radio').prop('disabled', false).prop('checked', true);
|
553 |
-
}
|
554 |
-
}
|
555 |
-
|
556 |
-
$(this).trigger('wvs-item-updated', [selected, attribute_value, _this]);
|
557 |
-
});
|
558 |
-
} else {
|
559 |
-
|
560 |
-
li.each(function (index, el) {
|
561 |
-
|
562 |
-
var attribute_value = $(this).attr('data-value');
|
563 |
-
var attribute_title = $(this).attr('data-title');
|
564 |
-
|
565 |
-
$(this).removeClass('selected disabled').addClass('disabled');
|
566 |
-
$(this).attr('aria-checked', 'false');
|
567 |
-
$(this).attr('tabindex', '-1');
|
568 |
-
|
569 |
-
if ($(this).hasClass('radio-variable-item')) {
|
570 |
-
$(this).find('input.wvs-radio-variable-item:radio').prop('disabled', true).prop('checked', false);
|
571 |
-
}
|
572 |
-
|
573 |
-
// if (_.contains(selects, value))
|
574 |
-
// if (_.indexOf(selects, value) !== -1)
|
575 |
-
// if (selects.includes(value))
|
576 |
-
|
577 |
-
// We can't use es6 includes for IE11
|
578 |
-
// in_stocks.includes(attribute_value)
|
579 |
-
// _.contains(in_stocks, attribute_value)
|
580 |
-
|
581 |
-
// Make Selected // selects.includes(attribute_value) // in_stocks
|
582 |
-
if (_.contains(in_stocks, attribute_value)) {
|
583 |
-
|
584 |
-
$(this).removeClass('selected disabled');
|
585 |
-
$(this).removeAttr('aria-hidden');
|
586 |
-
$(this).attr('tabindex', '0');
|
587 |
-
|
588 |
-
$(this).find('input.wvs-radio-variable-item:radio').prop('disabled', false);
|
589 |
-
|
590 |
-
// To Prevent blink
|
591 |
-
if (selected.length < 1 && woo_variation_swatches_options.show_variation_label) {
|
592 |
-
$selected_variation_item.text('');
|
593 |
-
}
|
594 |
-
|
595 |
-
if (attribute_value === selected) {
|
596 |
-
|
597 |
-
$(this).addClass('selected');
|
598 |
-
$(this).attr('aria-checked', 'true');
|
599 |
-
|
600 |
-
if (woo_variation_swatches_options.show_variation_label) {
|
601 |
-
$selected_variation_item.text(woo_variation_swatches_options.variation_label_separator + ' ' + attribute_title);
|
602 |
-
}
|
603 |
-
|
604 |
-
if ($(this).hasClass('radio-variable-item')) {
|
605 |
-
$(this).find('input.wvs-radio-variable-item:radio').prop('checked', true);
|
606 |
-
}
|
607 |
-
}
|
608 |
-
}
|
609 |
-
|
610 |
-
$(this).trigger('wvs-item-updated', [selected, attribute_value, _this]);
|
611 |
-
});
|
612 |
-
}
|
613 |
-
|
614 |
-
// Items Updated
|
615 |
-
$(this).trigger('wvs-items-updated');
|
616 |
-
});
|
617 |
-
});
|
618 |
-
}
|
619 |
-
}], [{
|
620 |
-
key: '_jQueryInterface',
|
621 |
-
value: function _jQueryInterface(config) {
|
622 |
-
return this.each(function () {
|
623 |
-
new WooVariationSwatches(this, config);
|
624 |
-
});
|
625 |
-
}
|
626 |
-
}]);
|
627 |
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
}(jQuery);
|
646 |
|
647 |
/* harmony default export */ __webpack_exports__["default"] = (WooVariationSwatches);
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
171 |
|
172 |
var WooVariationSwatches = function ($) {
|
173 |
|
174 |
+
var Default = {};
|
175 |
|
176 |
+
var WooVariationSwatches = function () {
|
177 |
+
function WooVariationSwatches(element, config) {
|
178 |
+
_classCallCheck(this, WooVariationSwatches);
|
179 |
+
|
180 |
+
// Assign
|
181 |
+
this._element = element;
|
182 |
+
this.$element = $(element);
|
183 |
+
this._config = $.extend({}, Default, config);
|
184 |
+
this._generated = {};
|
185 |
+
this._out_of_stock = {};
|
186 |
+
this._disabled = {};
|
187 |
+
this.product_variations = this.$element.data('product_variations') || [];
|
188 |
+
this.is_ajax_variation = this.product_variations.length < 1;
|
189 |
+
this.product_id = this.$element.data('product_id');
|
190 |
+
this.reset_variations = this.$element.find('.reset_variations');
|
191 |
+
/*this.hidden_behaviour = $('body').hasClass('woo-variation-swatches-attribute-behavior-hide');*/
|
192 |
+
this.is_mobile = $('body').hasClass('woo-variation-swatches-on-mobile');
|
193 |
+
this.selected_item_template = '<span class="woo-selected-variation-item-name" data-default=""></span>';
|
194 |
+
|
195 |
+
this.$element.addClass('wvs-loaded');
|
196 |
+
|
197 |
+
// Call
|
198 |
+
this.init();
|
199 |
+
this.update();
|
200 |
+
|
201 |
+
// Trigger
|
202 |
+
$(document).trigger('woo_variation_swatches', [this.$element]);
|
203 |
+
}
|
204 |
+
|
205 |
+
_createClass(WooVariationSwatches, [{
|
206 |
+
key: 'init',
|
207 |
+
value: function init() {
|
208 |
+
var _this2 = this;
|
209 |
+
|
210 |
+
var _this = this;
|
211 |
+
|
212 |
+
this._generated = this.product_variations.reduce(function (obj, variation) {
|
213 |
+
|
214 |
+
Object.keys(variation.attributes).map(function (attribute_name) {
|
215 |
+
if (!obj[attribute_name]) {
|
216 |
+
obj[attribute_name] = [];
|
217 |
+
}
|
218 |
+
|
219 |
+
if (variation.attributes[attribute_name]) {
|
220 |
+
obj[attribute_name].push(variation.attributes[attribute_name]);
|
221 |
+
}
|
222 |
+
});
|
223 |
|
224 |
+
return obj;
|
225 |
+
}, {});
|
226 |
|
227 |
+
this._out_of_stock = this.product_variations.reduce(function (obj, variation) {
|
228 |
|
229 |
+
Object.keys(variation.attributes).map(function (attribute_name) {
|
230 |
+
if (!obj[attribute_name]) {
|
231 |
+
obj[attribute_name] = [];
|
232 |
+
}
|
233 |
|
234 |
+
if (variation.attributes[attribute_name] && !variation.is_in_stock) {
|
235 |
+
obj[attribute_name].push(variation.attributes[attribute_name]);
|
236 |
+
}
|
237 |
+
});
|
238 |
+
|
239 |
+
return obj;
|
240 |
+
}, {});
|
241 |
|
242 |
+
// Append Selected Item Template
|
243 |
+
if (woo_variation_swatches_options.show_variation_label) {
|
244 |
+
this.$element.find('.variations .label').each(function (index, el) {
|
245 |
+
$(el).append(_this2.selected_item_template);
|
246 |
+
});
|
247 |
+
}
|
248 |
+
|
249 |
+
this.$element.find('ul.variable-items-wrapper').each(function (i, el) {
|
250 |
+
|
251 |
+
$(this).parent().addClass('woo-variation-items-wrapper');
|
252 |
+
|
253 |
+
var select = $(this).siblings('select.woo-variation-raw-select');
|
254 |
+
var selected = '';
|
255 |
+
|
256 |
+
var options = $(this).siblings('select.woo-variation-raw-select').find('option');
|
257 |
+
var disabled = $(this).siblings('select.woo-variation-raw-select').find('option:disabled');
|
258 |
+
var current = $(this).siblings('select.woo-variation-raw-select').find('option:selected');
|
259 |
+
var eq = $(this).siblings('select.woo-variation-raw-select').find('option').eq(1);
|
260 |
+
|
261 |
+
var li = $(this).find('li:not(.woo-variation-swatches-variable-item-more)');
|
262 |
+
var reselect_clear = $(this).hasClass('reselect-clear');
|
263 |
+
|
264 |
+
var mouse_event_name = 'click.wvs'; // 'touchstart click';
|
265 |
+
|
266 |
+
var attribute = $(this).data('attribute_name');
|
267 |
+
var attribute_values = _this.is_ajax_variation ? [] : _this._generated[attribute];
|
268 |
+
var out_of_stocks = _this.is_ajax_variation ? [] : _this._out_of_stock[attribute];
|
269 |
+
var selects = [];
|
270 |
+
var disabled_selects = [];
|
271 |
+
var $selected_variation_item = $(this).parent().prev().find('.woo-selected-variation-item-name');
|
272 |
+
|
273 |
+
// For Avada FIX
|
274 |
+
if (options.length < 1) {
|
275 |
+
select = $(this).parent().find('select.woo-variation-raw-select');
|
276 |
+
options = $(this).parent().find('select.woo-variation-raw-select').find('option');
|
277 |
+
disabled = $(this).parent().find('select.woo-variation-raw-select').find('option:disabled');
|
278 |
+
current = $(this).parent().find('select.woo-variation-raw-select').find('option:selected');
|
279 |
+
eq = $(this).parent().find('select.woo-variation-raw-select').find('option').eq(1);
|
280 |
+
}
|
281 |
+
|
282 |
+
options.each(function () {
|
283 |
+
if ($(this).val() !== '') {
|
284 |
+
selects.push($(this).val());
|
285 |
+
selected = current ? current.val() : eq.val();
|
286 |
+
}
|
287 |
+
});
|
288 |
|
289 |
+
disabled.each(function () {
|
290 |
+
if ($(this).val() !== '') {
|
291 |
+
disabled_selects.push($(this).val());
|
292 |
+
}
|
293 |
+
});
|
294 |
|
295 |
+
var in_stocks = _.difference(selects, disabled_selects);
|
|
|
296 |
|
297 |
+
// Mark Selected
|
298 |
+
li.each(function (index, li) {
|
|
|
|
|
299 |
|
300 |
+
var attribute_value = $(this).attr('data-value');
|
301 |
+
var attribute_title = $(this).attr('data-title');
|
302 |
|
303 |
+
$(this).removeClass('selected disabled').addClass('disabled');
|
304 |
+
$(this).attr('aria-checked', 'false');
|
305 |
+
$(this).attr('tabindex', '-1');
|
|
|
|
|
|
|
|
|
|
|
306 |
|
307 |
+
if ($(this).hasClass('radio-variable-item')) {
|
308 |
+
$(this).find('input.wvs-radio-variable-item:radio').prop('disabled', true).prop('checked', false);
|
309 |
+
}
|
|
|
|
|
|
|
|
|
|
|
310 |
|
311 |
+
// Default Selected
|
312 |
+
// We can't use es6 includes for IE11
|
313 |
+
// in_stocks.includes(attribute_value)
|
314 |
+
// _.contains(in_stocks, attribute_value)
|
315 |
+
|
316 |
+
if (_.contains(in_stocks, attribute_value)) {
|
317 |
|
318 |
+
$(this).removeClass('selected disabled');
|
319 |
+
$(this).removeAttr('aria-hidden');
|
320 |
+
$(this).attr('tabindex', '0');
|
|
|
|
|
321 |
|
322 |
+
$(this).find('input.wvs-radio-variable-item:radio').prop('disabled', false);
|
323 |
|
324 |
+
if (attribute_value === selected) {
|
|
|
325 |
|
326 |
+
$(this).addClass('selected');
|
327 |
+
$(this).attr('aria-checked', 'true');
|
328 |
|
329 |
+
if (woo_variation_swatches_options.show_variation_label) {
|
330 |
+
$selected_variation_item.text(woo_variation_swatches_options.variation_label_separator + ' ' + attribute_title);
|
331 |
+
}
|
332 |
|
333 |
+
if ($(this).hasClass('radio-variable-item')) {
|
334 |
+
$(this).find('input.wvs-radio-variable-item:radio').prop('checked', true);
|
335 |
+
}
|
336 |
+
}
|
337 |
+
}
|
338 |
+
});
|
339 |
+
|
340 |
+
// Trigger Select event based on list
|
341 |
|
342 |
+
if (reselect_clear) {
|
343 |
+
// Non Selected Item Should Select
|
344 |
+
$(this).on(mouse_event_name, 'li:not(.selected):not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)', function (e) {
|
345 |
+
e.preventDefault();
|
346 |
+
e.stopPropagation();
|
347 |
+
var value = $(this).data('value');
|
348 |
+
select.val(value).trigger('change');
|
349 |
+
select.trigger('click');
|
350 |
|
351 |
+
select.trigger('focusin');
|
352 |
|
353 |
+
if (_this.is_mobile) {
|
354 |
+
select.trigger('touchstart');
|
355 |
+
}
|
356 |
+
|
357 |
+
$(this).trigger('focus'); // Mobile tooltip
|
358 |
+
$(this).trigger('wvs-selected-item', [value, select, _this.$element]); // Custom Event for li
|
359 |
+
});
|
360 |
|
361 |
+
// Selected Item Should Non Select
|
362 |
+
$(this).on(mouse_event_name, 'li.selected:not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)', function (e) {
|
363 |
+
e.preventDefault();
|
364 |
+
e.stopPropagation();
|
365 |
|
366 |
+
var value = $(this).val();
|
367 |
|
368 |
+
select.val('').trigger('change');
|
369 |
+
select.trigger('click');
|
370 |
|
371 |
+
select.trigger('focusin');
|
|
|
|
|
372 |
|
373 |
+
if (_this.is_mobile) {
|
374 |
+
select.trigger('touchstart');
|
375 |
+
}
|
|
|
|
|
|
|
376 |
|
377 |
+
$(this).trigger('focus'); // Mobile tooltip
|
378 |
|
379 |
+
$(this).trigger('wvs-unselected-item', [value, select, _this.$element]); // Custom Event for li
|
380 |
+
});
|
381 |
|
382 |
+
// RADIO
|
|
|
|
|
|
|
|
|
|
|
|
|
383 |
|
384 |
+
// On Click trigger change event on Radio button
|
385 |
+
$(this).on(mouse_event_name, 'input.wvs-radio-variable-item:radio', function (e) {
|
386 |
|
387 |
+
e.stopPropagation();
|
|
|
|
|
388 |
|
389 |
+
$(this).trigger('change.wvs', { radioChange: true });
|
390 |
+
});
|
|
|
391 |
|
392 |
+
$(this).on('change.wvs', 'input.wvs-radio-variable-item:radio', function (e, params) {
|
|
|
|
|
|
|
393 |
|
394 |
+
e.preventDefault();
|
395 |
+
e.stopPropagation();
|
396 |
|
397 |
+
if (params && params.radioChange) {
|
|
|
398 |
|
399 |
+
var value = $(this).val();
|
400 |
+
var is_selected = $(this).parent('li.radio-variable-item').hasClass('selected');
|
401 |
|
402 |
+
if (is_selected) {
|
403 |
+
select.val('').trigger('change');
|
404 |
+
$(this).parent('li.radio-variable-item').trigger('wvs-unselected-item', [value, select, _this.$element]); // Custom Event for li
|
405 |
+
} else {
|
406 |
+
select.val(value).trigger('change');
|
407 |
+
$(this).parent('li.radio-variable-item').trigger('wvs-selected-item', [value, select, _this.$element]); // Custom Event for li
|
408 |
+
}
|
409 |
|
410 |
+
select.trigger('click');
|
411 |
+
select.trigger('focusin');
|
412 |
+
if (_this.is_mobile) {
|
413 |
+
select.trigger('touchstart');
|
414 |
+
}
|
415 |
+
}
|
416 |
+
});
|
417 |
+
} else {
|
418 |
|
419 |
+
$(this).on(mouse_event_name, 'li:not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)', function (event) {
|
|
|
420 |
|
421 |
+
event.preventDefault();
|
422 |
+
event.stopPropagation();
|
423 |
|
424 |
+
var value = $(this).data('value');
|
425 |
+
select.val(value).trigger('change');
|
426 |
+
select.trigger('click');
|
427 |
+
select.trigger('focusin');
|
428 |
+
if (_this.is_mobile) {
|
429 |
+
select.trigger('touchstart');
|
430 |
+
}
|
431 |
|
432 |
+
$(this).trigger('focus'); // Mobile tooltip
|
433 |
|
434 |
+
$(this).trigger('wvs-selected-item', [value, select, _this._element]); // Custom Event for li
|
435 |
+
});
|
436 |
|
437 |
+
// Radio
|
438 |
+
$(this).on('change.wvs', 'input.wvs-radio-variable-item:radio', function (event) {
|
439 |
+
event.preventDefault();
|
440 |
+
event.stopPropagation();
|
441 |
|
442 |
+
var value = $(this).val();
|
|
|
443 |
|
444 |
+
select.val(value).trigger('change');
|
445 |
+
select.trigger('click');
|
446 |
+
select.trigger('focusin');
|
447 |
|
448 |
+
if (_this.is_mobile) {
|
449 |
+
select.trigger('touchstart');
|
450 |
+
}
|
451 |
|
452 |
+
// Radio
|
453 |
+
$(this).parent('li.radio-variable-item').removeClass('selected disabled').addClass('selected');
|
454 |
+
$(this).parent('li.radio-variable-item').trigger('wvs-selected-item', [value, select, _this.$element]); // Custom Event for li
|
455 |
+
});
|
456 |
+
}
|
457 |
+
|
458 |
+
// Keyboard Access
|
459 |
+
$(this).on('keydown.wvs', 'li:not(.disabled):not(.woo-variation-swatches-variable-item-more)', function (event) {
|
460 |
+
if (event.keyCode && 32 === event.keyCode || event.key && ' ' === event.key || event.keyCode && 13 === event.keyCode || event.key && 'enter' === event.key.toLowerCase()) {
|
461 |
+
event.preventDefault();
|
462 |
+
$(this).trigger(mouse_event_name);
|
463 |
+
}
|
464 |
+
});
|
465 |
+
});
|
466 |
|
467 |
+
this.$element.trigger('woo_variation_swatches_init', [this, this.product_variations]);
|
468 |
+
|
469 |
+
$(document).trigger('woo_variation_swatches_loaded', [this.$element, this.product_variations]);
|
470 |
+
}
|
471 |
+
}, {
|
472 |
+
key: 'update',
|
473 |
+
value: function update() {
|
474 |
+
|
475 |
+
var _this = this;
|
476 |
+
|
477 |
+
this.$element.on('woocommerce_variation_has_changed.wvs', function (event) {
|
478 |
+
|
479 |
+
// Don't use any propagation. It will disable composit product functionality
|
480 |
+
// event.stopPropagation();
|
481 |
+
|
482 |
+
$(this).find('ul.variable-items-wrapper').each(function (index, el) {
|
483 |
+
|
484 |
+
var select = $(this).siblings('select.woo-variation-raw-select');
|
485 |
+
var selected = '';
|
486 |
+
|
487 |
+
var options = $(this).siblings('select.woo-variation-raw-select').find('option');
|
488 |
+
var disabled = $(this).siblings('select.woo-variation-raw-select').find('option:disabled');
|
489 |
+
var current = $(this).siblings('select.woo-variation-raw-select').find('option:selected');
|
490 |
+
var eq = $(this).siblings('select.woo-variation-raw-select').find('option').eq(1);
|
491 |
+
var li = $(this).find('li:not(.woo-variation-swatches-variable-item-more)');
|
492 |
+
|
493 |
+
//let reselect_clear = $(this).hasClass('reselect-clear');
|
494 |
+
//let is_mobile = $('body').hasClass('woo-variation-swatches-on-mobile');
|
495 |
+
//let mouse_event_name = 'click.wvs'; // 'touchstart click';
|
496 |
+
|
497 |
+
var attribute = $(this).data('attribute_name');
|
498 |
+
var attribute_values = _this.is_ajax_variation ? [] : _this._generated[attribute];
|
499 |
+
var out_of_stocks = _this.is_ajax_variation ? [] : _this._out_of_stock[attribute];
|
500 |
+
var selects = [];
|
501 |
+
var disabled_selects = [];
|
502 |
+
var $selected_variation_item = $(this).parent().prev().find('.woo-selected-variation-item-name');
|
503 |
+
|
504 |
+
// For Avada FIX
|
505 |
+
if (options.length < 1) {
|
506 |
+
select = $(this).parent().find('select.woo-variation-raw-select');
|
507 |
+
options = $(this).parent().find('select.woo-variation-raw-select').find('option');
|
508 |
+
disabled = $(this).parent().find('select.woo-variation-raw-select').find('option:disabled');
|
509 |
+
current = $(this).parent().find('select.woo-variation-raw-select').find('option:selected');
|
510 |
+
eq = $(this).parent().find('select.woo-variation-raw-select').find('option').eq(1);
|
511 |
+
}
|
512 |
+
|
513 |
+
options.each(function () {
|
514 |
+
if ($(this).val() !== '') {
|
515 |
+
selects.push($(this).val());
|
516 |
+
selected = current ? current.val() : eq.val();
|
517 |
+
}
|
518 |
+
});
|
519 |
|
520 |
+
disabled.each(function () {
|
521 |
+
if ($(this).val() !== '') {
|
522 |
+
disabled_selects.push($(this).val());
|
523 |
+
}
|
524 |
+
});
|
525 |
|
526 |
+
var in_stocks = _.difference(selects, disabled_selects);
|
|
|
527 |
|
528 |
+
if (_this.is_ajax_variation) {
|
|
|
|
|
|
|
|
|
|
|
|
|
529 |
|
530 |
+
li.each(function (index, el) {
|
531 |
|
532 |
+
var attribute_value = $(this).attr('data-value');
|
533 |
+
var attribute_title = $(this).attr('data-title');
|
534 |
|
535 |
+
$(this).removeClass('selected disabled');
|
536 |
+
$(this).attr('aria-checked', 'false');
|
|
|
|
|
537 |
|
538 |
+
// To Prevent blink
|
539 |
+
if (selected.length < 1 && woo_variation_swatches_options.show_variation_label) {
|
540 |
+
$selected_variation_item.text('');
|
541 |
+
}
|
542 |
|
543 |
+
if (attribute_value === selected) {
|
544 |
+
$(this).addClass('selected');
|
545 |
+
$(this).attr('aria-checked', 'true');
|
546 |
|
547 |
+
if (woo_variation_swatches_options.show_variation_label) {
|
548 |
+
$selected_variation_item.text(woo_variation_swatches_options.variation_label_separator + ' ' + attribute_title);
|
549 |
+
}
|
550 |
|
551 |
+
if ($(this).hasClass('radio-variable-item')) {
|
552 |
+
$(this).find('input.wvs-radio-variable-item:radio').prop('disabled', false).prop('checked', true);
|
553 |
+
}
|
554 |
+
}
|
|
|
555 |
|
556 |
+
$(this).trigger('wvs-item-updated', [selected, attribute_value, _this]);
|
557 |
+
});
|
558 |
+
} else {
|
|
|
|
|
|
|
|
|
|
|
559 |
|
560 |
+
li.each(function (index, el) {
|
561 |
|
562 |
+
var attribute_value = $(this).attr('data-value');
|
563 |
+
var attribute_title = $(this).attr('data-title');
|
|
|
|
|
|
|
564 |
|
565 |
+
$(this).removeClass('selected disabled').addClass('disabled');
|
566 |
+
$(this).attr('aria-checked', 'false');
|
567 |
+
$(this).attr('tabindex', '-1');
|
568 |
|
569 |
+
if ($(this).hasClass('radio-variable-item')) {
|
570 |
+
$(this).find('input.wvs-radio-variable-item:radio').prop('disabled', true).prop('checked', false);
|
571 |
+
}
|
572 |
|
573 |
+
// if (_.contains(selects, value))
|
574 |
+
// if (_.indexOf(selects, value) !== -1)
|
575 |
+
// if (selects.includes(value))
|
576 |
|
577 |
+
// We can't use es6 includes for IE11
|
578 |
+
// in_stocks.includes(attribute_value)
|
579 |
+
// _.contains(in_stocks, attribute_value)
|
580 |
|
581 |
+
// Make Selected // selects.includes(attribute_value) // in_stocks
|
582 |
+
if (_.contains(in_stocks, attribute_value)) {
|
583 |
|
584 |
+
$(this).removeClass('selected disabled');
|
585 |
+
$(this).removeAttr('aria-hidden');
|
586 |
+
$(this).attr('tabindex', '0');
|
|
|
|
|
|
|
|
|
|
|
|
|
587 |
|
588 |
+
$(this).find('input.wvs-radio-variable-item:radio').prop('disabled', false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
|
590 |
+
// To Prevent blink
|
591 |
+
if (selected.length < 1 && woo_variation_swatches_options.show_variation_label) {
|
592 |
+
$selected_variation_item.text('');
|
593 |
+
}
|
594 |
+
|
595 |
+
if (attribute_value === selected) {
|
596 |
+
|
597 |
+
$(this).addClass('selected');
|
598 |
+
$(this).attr('aria-checked', 'true');
|
599 |
+
|
600 |
+
if (woo_variation_swatches_options.show_variation_label) {
|
601 |
+
$selected_variation_item.text(woo_variation_swatches_options.variation_label_separator + ' ' + attribute_title);
|
602 |
+
}
|
603 |
+
|
604 |
+
if ($(this).hasClass('radio-variable-item')) {
|
605 |
+
$(this).find('input.wvs-radio-variable-item:radio').prop('checked', true);
|
606 |
+
}
|
607 |
+
}
|
608 |
+
}
|
609 |
+
|
610 |
+
$(this).trigger('wvs-item-updated', [selected, attribute_value, _this]);
|
611 |
+
});
|
612 |
+
}
|
613 |
+
|
614 |
+
// Items Updated
|
615 |
+
$(this).trigger('wvs-items-updated');
|
616 |
+
});
|
617 |
+
});
|
618 |
+
}
|
619 |
+
}], [{
|
620 |
+
key: '_jQueryInterface',
|
621 |
+
value: function _jQueryInterface(config) {
|
622 |
+
return this.each(function () {
|
623 |
+
new WooVariationSwatches(this, config);
|
624 |
+
});
|
625 |
+
}
|
626 |
+
}]);
|
627 |
+
|
628 |
+
return WooVariationSwatches;
|
629 |
+
}();
|
630 |
+
|
631 |
+
/**
|
632 |
+
* ------------------------------------------------------------------------
|
633 |
+
* jQuery
|
634 |
+
* ------------------------------------------------------------------------
|
635 |
+
*/
|
636 |
+
|
637 |
+
$.fn['WooVariationSwatches'] = WooVariationSwatches._jQueryInterface;
|
638 |
+
$.fn['WooVariationSwatches'].Constructor = WooVariationSwatches;
|
639 |
+
$.fn['WooVariationSwatches'].noConflict = function () {
|
640 |
+
$.fn['WooVariationSwatches'] = $.fn['WooVariationSwatches'];
|
641 |
+
return WooVariationSwatches._jQueryInterface;
|
642 |
+
};
|
643 |
+
|
644 |
+
return WooVariationSwatches;
|
645 |
}(jQuery);
|
646 |
|
647 |
/* harmony default export */ __webpack_exports__["default"] = (WooVariationSwatches);
|
assets/js/frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t){var i={};function e(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=i,e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=9)}({10:function(t,i,e){jQuery(function(t){Promise.resolve().then(function(){return e(11)}).then(function(){t(document).on("wc_variation_form.wvs",".variations_form:not(.wvs-loaded)",function(i){t(this).WooVariationSwatches()}),t(document.body).on("post-load.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("yith_infs_added_elem.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("yith-wcan-ajax-filtered.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("wood-images-loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("berocket_ajax_products_loaded.wvs berocket_ajax_products_infinite_loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(".shop-container .products").on("append.infiniteScroll",function(i,e,a){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("facetwp-loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("nm_infload_after.wvs nm_ajax_shop_update_content.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t("body").on("aln_reloaded.wvs",function(){_.delay(function(){t(".variations_form").each(function(){t(this).wc_variation_form()})},100)})})})},11:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function t(t,i){for(var e=0;e<i.length;e++){var a=i[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(i,e,a){return e&&t(i.prototype,e),a&&t(i,a),i}}();var o=function(t){var i={},e=function(){function e(a,o){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,e),this._element=t(a),this._config=t.extend({},i,o),this._generated={},this._out_of_stock={},this._disabled={},this.product_variations=this._element.data("product_variations")||[],this.is_ajax_variation=this.product_variations.length<1,this.product_id=this._element.data("product_id"),this.reset_variations=this._element.find(".reset_variations"),this.is_mobile=t("body").hasClass("woo-variation-swatches-on-mobile"),this.selected_item_template='<span class="woo-selected-variation-item-name" data-default=""></span>',this._element.addClass("wvs-loaded"),this.init(),this.update(),t(document).trigger("woo_variation_swatches",[this._element])}return a(e,[{key:"init",value:function(){var i=this,e=this;this._generated=this.product_variations.reduce(function(t,i){return Object.keys(i.attributes).map(function(e){t[e]||(t[e]=[]),i.attributes[e]&&t[e].push(i.attributes[e])}),t},{}),this._out_of_stock=this.product_variations.reduce(function(t,i){return Object.keys(i.attributes).map(function(e){t[e]||(t[e]=[]),i.attributes[e]&&!i.is_in_stock&&t[e].push(i.attributes[e])}),t},{}),woo_variation_swatches_options.show_variation_label&&this._element.find(".variations .label").each(function(e,a){t(a).append(i.selected_item_template)}),this._element.find("ul.variable-items-wrapper").each(function(i,a){t(this).parent().addClass("woo-variation-items-wrapper");var o=t(this).siblings("select.woo-variation-raw-select"),s="",n=t(this).siblings("select.woo-variation-raw-select").find("option"),r=t(this).siblings("select.woo-variation-raw-select").find("option:disabled"),c=t(this).siblings("select.woo-variation-raw-select").find("option:selected"),l=t(this).siblings("select.woo-variation-raw-select").find("option").eq(1),d=t(this).find("li:not(.woo-variation-swatches-variable-item-more)"),h=t(this).hasClass("reselect-clear"),v=t(this).data("attribute_name"),u=(e.is_ajax_variation||e._generated[v],e.is_ajax_variation||e._out_of_stock[v],[]),f=[],w=t(this).parent().prev().find(".woo-selected-variation-item-name");n.length<1&&(o=t(this).parent().find("select.woo-variation-raw-select"),n=t(this).parent().find("select.woo-variation-raw-select").find("option"),r=t(this).parent().find("select.woo-variation-raw-select").find("option:disabled"),c=t(this).parent().find("select.woo-variation-raw-select").find("option:selected"),l=t(this).parent().find("select.woo-variation-raw-select").find("option").eq(1)),n.each(function(){""!==t(this).val()&&(u.push(t(this).val()),s=c?c.val():l.val())}),r.each(function(){""!==t(this).val()&&f.push(t(this).val())});var p=_.difference(u,f);d.each(function(i,e){var a=t(this).attr("data-value"),o=t(this).attr("data-title");t(this).removeClass("selected disabled").addClass("disabled"),t(this).attr("aria-checked","false"),t(this).attr("tabindex","-1"),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!0).prop("checked",!1),_.contains(p,a)&&(t(this).removeClass("selected disabled"),t(this).removeAttr("aria-hidden"),t(this).attr("tabindex","0"),t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1),a===s&&(t(this).addClass("selected"),t(this).attr("aria-checked","true"),woo_variation_swatches_options.show_variation_label&&w.text(woo_variation_swatches_options.variation_label_separator+" "+o),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("checked",!0)))}),h?(t(this).on("click.wvs","li:not(.selected):not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)",function(i){i.preventDefault(),i.stopPropagation();var a=t(this).data("value");o.val(a).trigger("change"),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-selected-item",[a,o,e._element])}),t(this).on("click.wvs","li.selected:not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)",function(i){i.preventDefault(),i.stopPropagation();var a=t(this).val();o.val("").trigger("change"),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-unselected-item",[a,o,e._element])}),t(this).on("click.wvs","input.wvs-radio-variable-item:radio",function(i){i.stopPropagation(),t(this).trigger("change.wvs",{radioChange:!0})}),t(this).on("change.wvs","input.wvs-radio-variable-item:radio",function(i,a){if(i.preventDefault(),i.stopPropagation(),a&&a.radioChange){var s=t(this).val();t(this).parent("li.radio-variable-item").hasClass("selected")?(o.val("").trigger("change"),t(this).parent("li.radio-variable-item").trigger("wvs-unselected-item",[s,o,e._element])):(o.val(s).trigger("change"),t(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[s,o,e._element])),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart")}})):(t(this).on("click.wvs","li:not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)",function(i){i.preventDefault(),i.stopPropagation();var a=t(this).data("value");o.val(a).trigger("change"),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-selected-item",[a,o,e._element])}),t(this).on("change.wvs","input.wvs-radio-variable-item:radio",function(i){i.preventDefault(),i.stopPropagation();var a=t(this).val();o.val(a).trigger("change"),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart"),t(this).parent("li.radio-variable-item").removeClass("selected disabled").addClass("selected"),t(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[a,o,e._element])})),t(this).on("keydown.wvs","li:not(.disabled):not(.woo-variation-swatches-variable-item-more)",function(i){(i.keyCode&&32===i.keyCode||i.key&&" "===i.key||i.keyCode&&13===i.keyCode||i.key&&"enter"===i.key.toLowerCase())&&(i.preventDefault(),t(this).trigger("click.wvs"))})}),this._element.trigger("woo_variation_swatches_init",[this,this.product_variations]),t(document).trigger("woo_variation_swatches_loaded",[this._element,this.product_variations])}},{key:"update",value:function(){var i=this;this._element.on("woocommerce_variation_has_changed.wvs",function(e){t(this).find("ul.variable-items-wrapper").each(function(e,a){t(this).siblings("select.woo-variation-raw-select");var o="",s=t(this).siblings("select.woo-variation-raw-select").find("option"),n=t(this).siblings("select.woo-variation-raw-select").find("option:disabled"),r=t(this).siblings("select.woo-variation-raw-select").find("option:selected"),c=t(this).siblings("select.woo-variation-raw-select").find("option").eq(1),l=t(this).find("li:not(.woo-variation-swatches-variable-item-more)"),d=t(this).data("attribute_name"),h=(i.is_ajax_variation||i._generated[d],i.is_ajax_variation||i._out_of_stock[d],[]),v=[],u=t(this).parent().prev().find(".woo-selected-variation-item-name");s.length<1&&(t(this).parent().find("select.woo-variation-raw-select"),s=t(this).parent().find("select.woo-variation-raw-select").find("option"),n=t(this).parent().find("select.woo-variation-raw-select").find("option:disabled"),r=t(this).parent().find("select.woo-variation-raw-select").find("option:selected"),c=t(this).parent().find("select.woo-variation-raw-select").find("option").eq(1)),s.each(function(){""!==t(this).val()&&(h.push(t(this).val()),o=r?r.val():c.val())}),n.each(function(){""!==t(this).val()&&v.push(t(this).val())});var f=_.difference(h,v);i.is_ajax_variation?l.each(function(e,a){var s=t(this).attr("data-value"),n=t(this).attr("data-title");t(this).removeClass("selected disabled"),t(this).attr("aria-checked","false"),o.length<1&&woo_variation_swatches_options.show_variation_label&&u.text(""),s===o&&(t(this).addClass("selected"),t(this).attr("aria-checked","true"),woo_variation_swatches_options.show_variation_label&&u.text(woo_variation_swatches_options.variation_label_separator+" "+n),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1).prop("checked",!0)),t(this).trigger("wvs-item-updated",[o,s,i])}):l.each(function(e,a){var s=t(this).attr("data-value"),n=t(this).attr("data-title");t(this).removeClass("selected disabled").addClass("disabled"),t(this).attr("aria-checked","false"),t(this).attr("tabindex","-1"),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!0).prop("checked",!1),_.contains(f,s)&&(t(this).removeClass("selected disabled"),t(this).removeAttr("aria-hidden"),t(this).attr("tabindex","0"),t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1),o.length<1&&woo_variation_swatches_options.show_variation_label&&u.text(""),s===o&&(t(this).addClass("selected"),t(this).attr("aria-checked","true"),woo_variation_swatches_options.show_variation_label&&u.text(woo_variation_swatches_options.variation_label_separator+" "+n),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("checked",!0))),t(this).trigger("wvs-item-updated",[o,s,i])}),t(this).trigger("wvs-items-updated")})})}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){new e(this,t)})}}]),e}();return t.fn.WooVariationSwatches=e._jQueryInterface,t.fn.WooVariationSwatches.Constructor=e,t.fn.WooVariationSwatches.noConflict=function(){return t.fn.WooVariationSwatches=t.fn.WooVariationSwatches,e._jQueryInterface},e}(jQuery);i.default=o},9:function(t,i,e){t.exports=e(10)}});
|
1 |
+
!function(t){var i={};function e(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=i,e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=9)}({10:function(t,i,e){jQuery(function(t){Promise.resolve().then(function(){return e(11)}).then(function(){t(document).on("wc_variation_form.wvs",".variations_form:not(.wvs-loaded)",function(i){t(this).WooVariationSwatches()}),t(document.body).on("post-load.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("yith_infs_added_elem.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("yith-wcan-ajax-filtered.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("wood-images-loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("berocket_ajax_products_loaded.wvs berocket_ajax_products_infinite_loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(".shop-container .products").on("append.infiniteScroll",function(i,e,a){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("facetwp-loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("nm_infload_after.wvs nm_ajax_shop_update_content.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t("body").on("aln_reloaded.wvs",function(){_.delay(function(){t(".variations_form").each(function(){t(this).wc_variation_form()})},100)})})})},11:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function t(t,i){for(var e=0;e<i.length;e++){var a=i[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(i,e,a){return e&&t(i.prototype,e),a&&t(i,a),i}}();var o=function(t){var i={},e=function(){function e(a,o){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,e),this._element=a,this.$element=t(a),this._config=t.extend({},i,o),this._generated={},this._out_of_stock={},this._disabled={},this.product_variations=this.$element.data("product_variations")||[],this.is_ajax_variation=this.product_variations.length<1,this.product_id=this.$element.data("product_id"),this.reset_variations=this.$element.find(".reset_variations"),this.is_mobile=t("body").hasClass("woo-variation-swatches-on-mobile"),this.selected_item_template='<span class="woo-selected-variation-item-name" data-default=""></span>',this.$element.addClass("wvs-loaded"),this.init(),this.update(),t(document).trigger("woo_variation_swatches",[this.$element])}return a(e,[{key:"init",value:function(){var i=this,e=this;this._generated=this.product_variations.reduce(function(t,i){return Object.keys(i.attributes).map(function(e){t[e]||(t[e]=[]),i.attributes[e]&&t[e].push(i.attributes[e])}),t},{}),this._out_of_stock=this.product_variations.reduce(function(t,i){return Object.keys(i.attributes).map(function(e){t[e]||(t[e]=[]),i.attributes[e]&&!i.is_in_stock&&t[e].push(i.attributes[e])}),t},{}),woo_variation_swatches_options.show_variation_label&&this.$element.find(".variations .label").each(function(e,a){t(a).append(i.selected_item_template)}),this.$element.find("ul.variable-items-wrapper").each(function(i,a){t(this).parent().addClass("woo-variation-items-wrapper");var o=t(this).siblings("select.woo-variation-raw-select"),s="",n=t(this).siblings("select.woo-variation-raw-select").find("option"),r=t(this).siblings("select.woo-variation-raw-select").find("option:disabled"),c=t(this).siblings("select.woo-variation-raw-select").find("option:selected"),l=t(this).siblings("select.woo-variation-raw-select").find("option").eq(1),d=t(this).find("li:not(.woo-variation-swatches-variable-item-more)"),h=t(this).hasClass("reselect-clear"),v=t(this).data("attribute_name"),u=(e.is_ajax_variation||e._generated[v],e.is_ajax_variation||e._out_of_stock[v],[]),f=[],w=t(this).parent().prev().find(".woo-selected-variation-item-name");n.length<1&&(o=t(this).parent().find("select.woo-variation-raw-select"),n=t(this).parent().find("select.woo-variation-raw-select").find("option"),r=t(this).parent().find("select.woo-variation-raw-select").find("option:disabled"),c=t(this).parent().find("select.woo-variation-raw-select").find("option:selected"),l=t(this).parent().find("select.woo-variation-raw-select").find("option").eq(1)),n.each(function(){""!==t(this).val()&&(u.push(t(this).val()),s=c?c.val():l.val())}),r.each(function(){""!==t(this).val()&&f.push(t(this).val())});var p=_.difference(u,f);d.each(function(i,e){var a=t(this).attr("data-value"),o=t(this).attr("data-title");t(this).removeClass("selected disabled").addClass("disabled"),t(this).attr("aria-checked","false"),t(this).attr("tabindex","-1"),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!0).prop("checked",!1),_.contains(p,a)&&(t(this).removeClass("selected disabled"),t(this).removeAttr("aria-hidden"),t(this).attr("tabindex","0"),t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1),a===s&&(t(this).addClass("selected"),t(this).attr("aria-checked","true"),woo_variation_swatches_options.show_variation_label&&w.text(woo_variation_swatches_options.variation_label_separator+" "+o),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("checked",!0)))}),h?(t(this).on("click.wvs","li:not(.selected):not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)",function(i){i.preventDefault(),i.stopPropagation();var a=t(this).data("value");o.val(a).trigger("change"),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-selected-item",[a,o,e.$element])}),t(this).on("click.wvs","li.selected:not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)",function(i){i.preventDefault(),i.stopPropagation();var a=t(this).val();o.val("").trigger("change"),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-unselected-item",[a,o,e.$element])}),t(this).on("click.wvs","input.wvs-radio-variable-item:radio",function(i){i.stopPropagation(),t(this).trigger("change.wvs",{radioChange:!0})}),t(this).on("change.wvs","input.wvs-radio-variable-item:radio",function(i,a){if(i.preventDefault(),i.stopPropagation(),a&&a.radioChange){var s=t(this).val();t(this).parent("li.radio-variable-item").hasClass("selected")?(o.val("").trigger("change"),t(this).parent("li.radio-variable-item").trigger("wvs-unselected-item",[s,o,e.$element])):(o.val(s).trigger("change"),t(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[s,o,e.$element])),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart")}})):(t(this).on("click.wvs","li:not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)",function(i){i.preventDefault(),i.stopPropagation();var a=t(this).data("value");o.val(a).trigger("change"),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-selected-item",[a,o,e._element])}),t(this).on("change.wvs","input.wvs-radio-variable-item:radio",function(i){i.preventDefault(),i.stopPropagation();var a=t(this).val();o.val(a).trigger("change"),o.trigger("click"),o.trigger("focusin"),e.is_mobile&&o.trigger("touchstart"),t(this).parent("li.radio-variable-item").removeClass("selected disabled").addClass("selected"),t(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[a,o,e.$element])})),t(this).on("keydown.wvs","li:not(.disabled):not(.woo-variation-swatches-variable-item-more)",function(i){(i.keyCode&&32===i.keyCode||i.key&&" "===i.key||i.keyCode&&13===i.keyCode||i.key&&"enter"===i.key.toLowerCase())&&(i.preventDefault(),t(this).trigger("click.wvs"))})}),this.$element.trigger("woo_variation_swatches_init",[this,this.product_variations]),t(document).trigger("woo_variation_swatches_loaded",[this.$element,this.product_variations])}},{key:"update",value:function(){var i=this;this.$element.on("woocommerce_variation_has_changed.wvs",function(e){t(this).find("ul.variable-items-wrapper").each(function(e,a){t(this).siblings("select.woo-variation-raw-select");var o="",s=t(this).siblings("select.woo-variation-raw-select").find("option"),n=t(this).siblings("select.woo-variation-raw-select").find("option:disabled"),r=t(this).siblings("select.woo-variation-raw-select").find("option:selected"),c=t(this).siblings("select.woo-variation-raw-select").find("option").eq(1),l=t(this).find("li:not(.woo-variation-swatches-variable-item-more)"),d=t(this).data("attribute_name"),h=(i.is_ajax_variation||i._generated[d],i.is_ajax_variation||i._out_of_stock[d],[]),v=[],u=t(this).parent().prev().find(".woo-selected-variation-item-name");s.length<1&&(t(this).parent().find("select.woo-variation-raw-select"),s=t(this).parent().find("select.woo-variation-raw-select").find("option"),n=t(this).parent().find("select.woo-variation-raw-select").find("option:disabled"),r=t(this).parent().find("select.woo-variation-raw-select").find("option:selected"),c=t(this).parent().find("select.woo-variation-raw-select").find("option").eq(1)),s.each(function(){""!==t(this).val()&&(h.push(t(this).val()),o=r?r.val():c.val())}),n.each(function(){""!==t(this).val()&&v.push(t(this).val())});var f=_.difference(h,v);i.is_ajax_variation?l.each(function(e,a){var s=t(this).attr("data-value"),n=t(this).attr("data-title");t(this).removeClass("selected disabled"),t(this).attr("aria-checked","false"),o.length<1&&woo_variation_swatches_options.show_variation_label&&u.text(""),s===o&&(t(this).addClass("selected"),t(this).attr("aria-checked","true"),woo_variation_swatches_options.show_variation_label&&u.text(woo_variation_swatches_options.variation_label_separator+" "+n),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1).prop("checked",!0)),t(this).trigger("wvs-item-updated",[o,s,i])}):l.each(function(e,a){var s=t(this).attr("data-value"),n=t(this).attr("data-title");t(this).removeClass("selected disabled").addClass("disabled"),t(this).attr("aria-checked","false"),t(this).attr("tabindex","-1"),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!0).prop("checked",!1),_.contains(f,s)&&(t(this).removeClass("selected disabled"),t(this).removeAttr("aria-hidden"),t(this).attr("tabindex","0"),t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1),o.length<1&&woo_variation_swatches_options.show_variation_label&&u.text(""),s===o&&(t(this).addClass("selected"),t(this).attr("aria-checked","true"),woo_variation_swatches_options.show_variation_label&&u.text(woo_variation_swatches_options.variation_label_separator+" "+n),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("checked",!0))),t(this).trigger("wvs-item-updated",[o,s,i])}),t(this).trigger("wvs-items-updated")})})}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){new e(this,t)})}}]),e}();return t.fn.WooVariationSwatches=e._jQueryInterface,t.fn.WooVariationSwatches.Constructor=e,t.fn.WooVariationSwatches.noConflict=function(){return t.fn.WooVariationSwatches=t.fn.WooVariationSwatches,e._jQueryInterface},e}(jQuery);i.default=o},9:function(t,i,e){t.exports=e(10)}});
|
assets/js/gwp-admin.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
/*!
|
2 |
-
* Variation Swatches for WooCommerce v1.1.
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
-
* Date: 1/
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
1 |
/*!
|
2 |
+
* Variation Swatches for WooCommerce v1.1.6
|
3 |
*
|
4 |
* Author: Emran Ahmed ( emran.bd.08@gmail.com )
|
5 |
+
* Date: 1/27/2021
|
6 |
* Released under the GPLv3 license.
|
7 |
*/
|
8 |
/******/ (function(modules) { // webpackBootstrap
|
images/red-archive-preview.png
DELETED
Binary file
|
images/red-special-preview.png
DELETED
Binary file
|
images/red-style-preview.png
DELETED
Binary file
|
images/tutorial-1.png
DELETED
Binary file
|
images/tutorial-10.jpg
DELETED
Binary file
|
images/tutorial-11.jpg
DELETED
Binary file
|
images/tutorial-12.jpg
DELETED
Binary file
|
images/tutorial-13.jpg
DELETED
Binary file
|
images/tutorial-14.gif
DELETED
Binary file
|
images/tutorial-15.gif
DELETED
Binary file
|
images/tutorial-16.jpg
DELETED
Binary file
|
images/tutorial-17.jpg
DELETED
Binary file
|
images/tutorial-18.jpg
DELETED
Binary file
|
images/tutorial-19.jpg
DELETED
Binary file
|
images/tutorial-2.png
DELETED
Binary file
|
images/tutorial-20.jpg
DELETED
Binary file
|
images/tutorial-21.jpg
DELETED
Binary file
|
images/tutorial-3.png
DELETED
Binary file
|
images/tutorial-4.png
DELETED
Binary file
|
images/tutorial-5.png
DELETED
Binary file
|
images/tutorial-6.png
DELETED
Binary file
|
images/tutorial-7.jpg
DELETED
Binary file
|
images/tutorial-8.jpg
DELETED
Binary file
|
images/tutorial-9.jpg
DELETED
Binary file
|
includes/functions.php
CHANGED
@@ -418,14 +418,14 @@ if ( ! function_exists( 'wvs_settings' ) ):
|
|
418 |
'id' => 'defer_load_js',
|
419 |
'type' => 'checkbox',
|
420 |
'title' => esc_html__( 'Defer Load JS', 'woo-variation-swatches' ),
|
421 |
-
'desc' => esc_html__( 'Defer Load JS for PageSpeed Score', 'woo-variation-swatches' ),
|
422 |
'default' => false
|
423 |
),
|
424 |
array(
|
425 |
'id' => 'use_transient',
|
426 |
'type' => 'checkbox',
|
427 |
'title' => esc_html__( 'Use Transient Cache', 'woo-variation-swatches' ),
|
428 |
-
'desc' => esc_html__( 'Use Transient Cache for PageSpeed Score', 'woo-variation-swatches' ),
|
429 |
'default' => false
|
430 |
)
|
431 |
)
|
@@ -447,7 +447,7 @@ if ( ! function_exists( 'wvs_settings' ) ):
|
|
447 |
array(
|
448 |
'pro' => true,
|
449 |
'width' => 'auto',
|
450 |
-
'screen_shot' => woo_variation_swatches()->
|
451 |
'product_link' => woo_variation_swatches()->get_pro_link( 'style-tab' ),
|
452 |
),
|
453 |
)
|
@@ -469,7 +469,7 @@ if ( ! function_exists( 'wvs_settings' ) ):
|
|
469 |
array(
|
470 |
'pro' => true,
|
471 |
'width' => 'auto',
|
472 |
-
'screen_shot' => woo_variation_swatches()->
|
473 |
'product_link' => woo_variation_swatches()->get_pro_link( 'archive-tab' ),
|
474 |
),
|
475 |
)
|
@@ -491,7 +491,7 @@ if ( ! function_exists( 'wvs_settings' ) ):
|
|
491 |
array(
|
492 |
'pro' => true,
|
493 |
'width' => 'auto',
|
494 |
-
'screen_shot' => woo_variation_swatches()->
|
495 |
'product_link' => woo_variation_swatches()->get_pro_link( 'special-tab' ),
|
496 |
),
|
497 |
)
|
@@ -2087,3 +2087,58 @@ function wvs_upgrade_plugin( $plugin_slug ) {
|
|
2087 |
return $upgraded;
|
2088 |
}
|
2089 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
'id' => 'defer_load_js',
|
419 |
'type' => 'checkbox',
|
420 |
'title' => esc_html__( 'Defer Load JS', 'woo-variation-swatches' ),
|
421 |
+
'desc' => esc_html__( 'Defer Load JS for PageSpeed Score. If you use any caching plugin or your server have HTTP2 support you do not have to use it', 'woo-variation-swatches' ),
|
422 |
'default' => false
|
423 |
),
|
424 |
array(
|
425 |
'id' => 'use_transient',
|
426 |
'type' => 'checkbox',
|
427 |
'title' => esc_html__( 'Use Transient Cache', 'woo-variation-swatches' ),
|
428 |
+
'desc' => esc_html__( 'Use Transient Cache for PageSpeed Score. If you use any caching plugin you do not have to use it', 'woo-variation-swatches' ),
|
429 |
'default' => false
|
430 |
)
|
431 |
)
|
447 |
array(
|
448 |
'pro' => true,
|
449 |
'width' => 'auto',
|
450 |
+
'screen_shot' => woo_variation_swatches()->wp_images_uri( 'red-style-preview.png' ),
|
451 |
'product_link' => woo_variation_swatches()->get_pro_link( 'style-tab' ),
|
452 |
),
|
453 |
)
|
469 |
array(
|
470 |
'pro' => true,
|
471 |
'width' => 'auto',
|
472 |
+
'screen_shot' => woo_variation_swatches()->wp_images_uri( 'red-archive-preview.png' ),
|
473 |
'product_link' => woo_variation_swatches()->get_pro_link( 'archive-tab' ),
|
474 |
),
|
475 |
)
|
491 |
array(
|
492 |
'pro' => true,
|
493 |
'width' => 'auto',
|
494 |
+
'screen_shot' => woo_variation_swatches()->wp_images_uri( 'red-special-preview.png' ),
|
495 |
'product_link' => woo_variation_swatches()->get_pro_link( 'special-tab' ),
|
496 |
),
|
497 |
)
|
2087 |
return $upgraded;
|
2088 |
}
|
2089 |
|
2090 |
+
// It's useful for plugin or theme documentation and for developer who want to know
|
2091 |
+
// how many add_action attached with a specific do_action hook, which file with line number.
|
2092 |
+
if ( ! function_exists( 'storepress_hook_info' ) ):
|
2093 |
+
|
2094 |
+
function storepress_hook_info( $hook_name ) {
|
2095 |
+
global $wp_filter;
|
2096 |
+
|
2097 |
+
$docs = array();
|
2098 |
+
$template = "\t - %s Priority - %s.\n\tin file %s #%s\n\n";
|
2099 |
+
|
2100 |
+
echo '<pre>';
|
2101 |
+
echo "\t# Hook Name \"" . $hook_name . "\"";
|
2102 |
+
echo "\n\n";
|
2103 |
+
if ( isset( $wp_filter[ $hook_name ] ) ) {
|
2104 |
+
foreach ( $wp_filter[ $hook_name ] as $pri => $fn ) {
|
2105 |
+
|
2106 |
+
foreach ( $fn as $fnname => $fnargs ) {
|
2107 |
+
|
2108 |
+
if ( is_array( $fnargs['function'] ) ) {
|
2109 |
+
$reflClass = new ReflectionClass( $fnargs['function'][0] );
|
2110 |
+
$reflFunc = $reflClass->getMethod( $fnargs['function'][1] );
|
2111 |
+
$class = $reflClass->getName();
|
2112 |
+
$function = $reflFunc->name;
|
2113 |
+
} else {
|
2114 |
+
$reflFunc = new ReflectionFunction( $fnargs['function'] );
|
2115 |
+
$class = false;
|
2116 |
+
$function = $reflFunc->name;
|
2117 |
+
$isClosure = (bool) $reflFunc->isClosure();
|
2118 |
+
}
|
2119 |
+
|
2120 |
+
if ( $class ) {
|
2121 |
+
$functionName = sprintf( 'Class "%s::%s"', $class, $function );
|
2122 |
+
} else {
|
2123 |
+
$functionName = ( $isClosure ) ? "Anonymous Function $function" : "Function \"$function\"";
|
2124 |
+
}
|
2125 |
+
|
2126 |
+
printf( $template, $functionName, $pri, str_ireplace( ABSPATH, '', $reflFunc->getFileName() ), $reflFunc->getStartLine() );
|
2127 |
+
|
2128 |
+
$docs[] = array( $functionName, $pri );
|
2129 |
+
}
|
2130 |
+
}
|
2131 |
+
|
2132 |
+
echo "\tAction Hook Commenting\n\t----------------------\n\n";
|
2133 |
+
echo "\t/**\n\t* " . $hook_name . " hook\n\t*\n";
|
2134 |
+
foreach ( $docs as $doc ) {
|
2135 |
+
echo "\t* @hooked " . $doc[0] . " - " . $doc[1] . "\n";
|
2136 |
+
}
|
2137 |
+
echo "\t*/";
|
2138 |
+
echo "\n\n";
|
2139 |
+
echo "\tdo_action( '" . $hook_name . "' );";
|
2140 |
+
|
2141 |
+
}
|
2142 |
+
echo '</pre>';
|
2143 |
+
}
|
2144 |
+
endif;
|
includes/tutorials.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
|
7 |
<ul>
|
8 |
<li>
|
9 |
-
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->
|
10 |
<div class="tutorial-description-wrapper">
|
11 |
<h3>Color Swatches For Attribute Variation</h3>
|
12 |
<div class="tutorial-contents">
|
@@ -31,11 +31,11 @@
|
|
31 |
<a href="http://bit.ly/wvs-tuts-02" target="_blank" class="button button-docs">Documentation</a>
|
32 |
</div>
|
33 |
</div>
|
34 |
-
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->
|
35 |
</li>
|
36 |
|
37 |
<li>
|
38 |
-
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->
|
39 |
<div class="tutorial-description-wrapper">
|
40 |
<h3>Auto Convert All Variation Dropdown Into Button Swatches By Default</h3>
|
41 |
<div class="tutorial-contents">
|
@@ -58,12 +58,12 @@
|
|
58 |
<a href="http://j.mp/quickview-preview-inside-plugin" target="_blank" class="button button-live-demo">Live Video Preview</a>
|
59 |
</div>
|
60 |
</div>
|
61 |
-
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->
|
62 |
</li>
|
63 |
|
64 |
|
65 |
<li>
|
66 |
-
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->
|
67 |
<div class="tutorial-description-wrapper">
|
68 |
<h3>Text Tooltip</h3>
|
69 |
<div class="tutorial-contents">
|
@@ -89,14 +89,14 @@
|
|
89 |
<a href="http://bit.ly/wvs-tuts-06" target="_blank" class="button button-docs">Documentation</a>
|
90 |
</div>
|
91 |
</div>
|
92 |
-
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->
|
93 |
</li>
|
94 |
<li>
|
95 |
<div class="tutorial-image-wrapper">
|
96 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
97 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
98 |
<?php endif; ?>
|
99 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
100 |
</div>
|
101 |
<div class="tutorial-description-wrapper">
|
102 |
<h3>Auto Convert All Dropdowns Into Image Swatches If Variation Has Featured Image. (Most Popular & Time Saving Feature)</h3>
|
@@ -130,18 +130,18 @@
|
|
130 |
</div>
|
131 |
<div class="tutorial-image-wrapper">
|
132 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
133 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
134 |
<?php endif; ?>
|
135 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
136 |
</div>
|
137 |
</li>
|
138 |
|
139 |
<li>
|
140 |
<div class="tutorial-image-wrapper">
|
141 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
142 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
143 |
<?php endif; ?>
|
144 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
145 |
</div>
|
146 |
<div class="tutorial-description-wrapper">
|
147 |
<h3>Enable Dual Color Variation Swatches</h3>
|
@@ -176,18 +176,18 @@
|
|
176 |
</div>
|
177 |
<div class="tutorial-image-wrapper">
|
178 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
179 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
180 |
<?php endif; ?>
|
181 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
182 |
</div>
|
183 |
</li>
|
184 |
|
185 |
<li>
|
186 |
<div class="tutorial-image-wrapper">
|
187 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
188 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
189 |
<?php endif; ?>
|
190 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
191 |
</div>
|
192 |
<div class="tutorial-description-wrapper">
|
193 |
<h3>Individual Product Based Swatches Customization</h3>
|
@@ -222,18 +222,18 @@
|
|
222 |
</div>
|
223 |
<div class="tutorial-image-wrapper">
|
224 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
225 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
226 |
<?php endif; ?>
|
227 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
228 |
</div>
|
229 |
</li>
|
230 |
|
231 |
<li>
|
232 |
<div class="tutorial-image-wrapper">
|
233 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
234 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
235 |
<?php endif; ?>
|
236 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
237 |
</div>
|
238 |
<div class="tutorial-description-wrapper">
|
239 |
<h3>Generate Sharable Variation Link</h3>
|
@@ -268,18 +268,18 @@
|
|
268 |
</div>
|
269 |
<div class="tutorial-image-wrapper">
|
270 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
271 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
272 |
<?php endif; ?>
|
273 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
274 |
</div>
|
275 |
</li>
|
276 |
|
277 |
<li>
|
278 |
<div class="tutorial-image-wrapper">
|
279 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
280 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
281 |
<?php endif; ?>
|
282 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
283 |
</div>
|
284 |
<div class="tutorial-description-wrapper">
|
285 |
<h3>Display Swatch in Catalog / Archive Page</h3>
|
@@ -314,18 +314,18 @@
|
|
314 |
</div>
|
315 |
<div class="tutorial-image-wrapper">
|
316 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
317 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
318 |
<?php endif; ?>
|
319 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
320 |
</div>
|
321 |
</li>
|
322 |
|
323 |
<li>
|
324 |
<div class="tutorial-image-wrapper">
|
325 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
326 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
327 |
<?php endif; ?>
|
328 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
329 |
</div>
|
330 |
<div class="tutorial-description-wrapper">
|
331 |
<h3>Highlight Desired Product Attribute</h3>
|
@@ -361,10 +361,33 @@
|
|
361 |
</div>
|
362 |
<div class="tutorial-image-wrapper">
|
363 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
364 |
-
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-
|
365 |
<?php endif; ?>
|
366 |
-
<img alt="" src="<?php echo woo_variation_swatches()->
|
367 |
</div>
|
368 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
</ul>
|
370 |
</div>
|
6 |
|
7 |
<ul>
|
8 |
<li>
|
9 |
+
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-1.png' ) ?>"></div>
|
10 |
<div class="tutorial-description-wrapper">
|
11 |
<h3>Color Swatches For Attribute Variation</h3>
|
12 |
<div class="tutorial-contents">
|
31 |
<a href="http://bit.ly/wvs-tuts-02" target="_blank" class="button button-docs">Documentation</a>
|
32 |
</div>
|
33 |
</div>
|
34 |
+
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-2.png' ) ?>"></div>
|
35 |
</li>
|
36 |
|
37 |
<li>
|
38 |
+
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-3.png' ) ?>"></div>
|
39 |
<div class="tutorial-description-wrapper">
|
40 |
<h3>Auto Convert All Variation Dropdown Into Button Swatches By Default</h3>
|
41 |
<div class="tutorial-contents">
|
58 |
<a href="http://j.mp/quickview-preview-inside-plugin" target="_blank" class="button button-live-demo">Live Video Preview</a>
|
59 |
</div>
|
60 |
</div>
|
61 |
+
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-4.png' ) ?>"></div>
|
62 |
</li>
|
63 |
|
64 |
|
65 |
<li>
|
66 |
+
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-5.png' ) ?>"></div>
|
67 |
<div class="tutorial-description-wrapper">
|
68 |
<h3>Text Tooltip</h3>
|
69 |
<div class="tutorial-contents">
|
89 |
<a href="http://bit.ly/wvs-tuts-06" target="_blank" class="button button-docs">Documentation</a>
|
90 |
</div>
|
91 |
</div>
|
92 |
+
<div class="tutorial-image-wrapper"><img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-6.png' ) ?>"></div>
|
93 |
</li>
|
94 |
<li>
|
95 |
<div class="tutorial-image-wrapper">
|
96 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
97 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
98 |
<?php endif; ?>
|
99 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-14.gif' ) ?>">
|
100 |
</div>
|
101 |
<div class="tutorial-description-wrapper">
|
102 |
<h3>Auto Convert All Dropdowns Into Image Swatches If Variation Has Featured Image. (Most Popular & Time Saving Feature)</h3>
|
130 |
</div>
|
131 |
<div class="tutorial-image-wrapper">
|
132 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
133 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
134 |
<?php endif; ?>
|
135 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-7.jpg' ) ?>">
|
136 |
</div>
|
137 |
</li>
|
138 |
|
139 |
<li>
|
140 |
<div class="tutorial-image-wrapper">
|
141 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
142 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
143 |
<?php endif; ?>
|
144 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-13.jpg' ) ?>">
|
145 |
</div>
|
146 |
<div class="tutorial-description-wrapper">
|
147 |
<h3>Enable Dual Color Variation Swatches</h3>
|
176 |
</div>
|
177 |
<div class="tutorial-image-wrapper">
|
178 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
179 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
180 |
<?php endif; ?>
|
181 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-15.gif' ) ?>">
|
182 |
</div>
|
183 |
</li>
|
184 |
|
185 |
<li>
|
186 |
<div class="tutorial-image-wrapper">
|
187 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
188 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
189 |
<?php endif; ?>
|
190 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-16.jpg' ) ?>">
|
191 |
</div>
|
192 |
<div class="tutorial-description-wrapper">
|
193 |
<h3>Individual Product Based Swatches Customization</h3>
|
222 |
</div>
|
223 |
<div class="tutorial-image-wrapper">
|
224 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
225 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
226 |
<?php endif; ?>
|
227 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-17.jpg' ) ?>">
|
228 |
</div>
|
229 |
</li>
|
230 |
|
231 |
<li>
|
232 |
<div class="tutorial-image-wrapper">
|
233 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
234 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
235 |
<?php endif; ?>
|
236 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-18.jpg' ) ?>">
|
237 |
</div>
|
238 |
<div class="tutorial-description-wrapper">
|
239 |
<h3>Generate Sharable Variation Link</h3>
|
268 |
</div>
|
269 |
<div class="tutorial-image-wrapper">
|
270 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
271 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
272 |
<?php endif; ?>
|
273 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-11.jpg' ) ?>">
|
274 |
</div>
|
275 |
</li>
|
276 |
|
277 |
<li>
|
278 |
<div class="tutorial-image-wrapper">
|
279 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
280 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
281 |
<?php endif; ?>
|
282 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-10.jpg' ) ?>">
|
283 |
</div>
|
284 |
<div class="tutorial-description-wrapper">
|
285 |
<h3>Display Swatch in Catalog / Archive Page</h3>
|
314 |
</div>
|
315 |
<div class="tutorial-image-wrapper">
|
316 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
317 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
318 |
<?php endif; ?>
|
319 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-19.jpg' ) ?>">
|
320 |
</div>
|
321 |
</li>
|
322 |
|
323 |
<li>
|
324 |
<div class="tutorial-image-wrapper">
|
325 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
326 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
327 |
<?php endif; ?>
|
328 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-20.jpg' ) ?>">
|
329 |
</div>
|
330 |
<div class="tutorial-description-wrapper">
|
331 |
<h3>Highlight Desired Product Attribute</h3>
|
361 |
</div>
|
362 |
<div class="tutorial-image-wrapper">
|
363 |
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
364 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
365 |
<?php endif; ?>
|
366 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-21.jpg' ) ?>">
|
367 |
</div>
|
368 |
</li>
|
369 |
+
|
370 |
+
<li>
|
371 |
+
<div class="tutorial-image-wrapper">
|
372 |
+
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
373 |
+
<div class="ribbon"><span><?php esc_html_e( 'PRO', 'woo-variation-swatches' ) ?></span></div>
|
374 |
+
<?php endif; ?>
|
375 |
+
<img alt="" src="<?php echo woo_variation_swatches()->wp_images_uri( 'tutorial-22.jpg' ) ?>">
|
376 |
+
</div>
|
377 |
+
<div class="tutorial-description-wrapper">
|
378 |
+
<h3>WooCommerce Filter Widgets</h3>
|
379 |
+
<div class="tutorial-contents">
|
380 |
+
WooCommerce Variation Swatches Converts Filter Products by Attribute Widget into color swatches. So, you can use the widget to enable swatches for filter dropdown.
|
381 |
+
</div>
|
382 |
+
<div class="tutorial-buttons">
|
383 |
+
<a href="http://bit.ly/free-demo-tutorial-tab" target="_blank" class="button button-live-demo">Live Video Preview</a>
|
384 |
+
<a href="http://bit.ly/widget-tutorial-tab-doc" target="_blank" class="button button-docs">Documentation</a>
|
385 |
+
<?php if ( ! woo_variation_swatches()->is_pro_active() ): ?>
|
386 |
+
<a href="<?php echo woo_variation_swatches()->get_pro_link( 'settings-tutorial' ) ?>" target="_blank" class="button button-pro">Upgrade to pro</a>
|
387 |
+
<?php endif; ?>
|
388 |
+
</div>
|
389 |
+
</div>
|
390 |
+
|
391 |
+
</li>
|
392 |
</ul>
|
393 |
</div>
|
languages/woo-variation-swatches.pot
CHANGED
@@ -273,7 +273,7 @@ msgid "Defer Load JS"
|
|
273 |
msgstr ""
|
274 |
|
275 |
#: ../includes/functions.php:421
|
276 |
-
msgid "Defer Load JS for PageSpeed Score"
|
277 |
msgstr ""
|
278 |
|
279 |
#: ../includes/functions.php:427
|
@@ -281,7 +281,7 @@ msgid "Use Transient Cache"
|
|
281 |
msgstr ""
|
282 |
|
283 |
#: ../includes/functions.php:428
|
284 |
-
msgid "Use Transient Cache for PageSpeed Score"
|
285 |
msgstr ""
|
286 |
|
287 |
#: ../includes/functions.php:440
|
@@ -320,7 +320,7 @@ msgstr ""
|
|
320 |
msgid "Choose a color"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: ../includes/functions.php:529, ../woo-variation-swatches.php:
|
324 |
msgid "Choose an Image"
|
325 |
msgstr ""
|
326 |
|
@@ -364,138 +364,142 @@ msgstr ""
|
|
364 |
msgid "Additional Variation Images Gallery for WooCommerce"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: ../
|
|
|
|
|
|
|
|
|
368 |
msgid "It's a temporary deactivation."
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: ../woo-variation-swatches.php:
|
372 |
msgid "I couldn't understand how to make it work."
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: ../woo-variation-swatches.php:
|
376 |
msgid "It converts variation select box to beautiful swatches. <br> <a target=\"_blank\" href=\"https://bit.ly/deactivate-dialogue\">Please check live demo</a>."
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: ../woo-variation-swatches.php:
|
380 |
msgid "I no longer need the plugin"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: ../woo-variation-swatches.php:
|
384 |
msgid "I found a better plugin"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: ../woo-variation-swatches.php:
|
388 |
msgid "Please share which plugin"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: ../woo-variation-swatches.php:
|
392 |
msgid "The plugin <strong>broke my layout</strong> or some functionality."
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: ../woo-variation-swatches.php:
|
396 |
msgid "<a target=\"_blank\" href=\"https://getwooplugins.com/tickets/\">Please open a support ticket</a>, we will fix it immediately."
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: ../woo-variation-swatches.php:
|
400 |
msgid "I need someone to <strong>setup this plugin.</strong>"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: ../woo-variation-swatches.php:
|
404 |
msgid "Your email address."
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: ../woo-variation-swatches.php:
|
408 |
msgid "Please provide your email address to contact with you <br>and help you to setup and configure this plugin."
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: ../woo-variation-swatches.php:
|
412 |
msgid "The plugin is <strong>too complicated to configure.</strong>"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: ../woo-variation-swatches.php:
|
416 |
msgid "<a target=\"_blank\" href=\"https://getwooplugins.com/documentation/woocommerce-variation-swatches/\">Have you checked our documentation?</a>."
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: ../woo-variation-swatches.php:
|
420 |
msgid "I need <strong>specific feature</strong> that you don't support."
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: ../woo-variation-swatches.php:
|
424 |
msgid "Please share with us."
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: ../woo-variation-swatches.php:
|
428 |
msgid "Other"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: ../woo-variation-swatches.php:
|
432 |
msgid "Please share the reason"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: ../woo-variation-swatches.php:
|
436 |
msgid "Add Attribute"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: ../woo-variation-swatches.php:
|
440 |
msgid "Add"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: ../woo-variation-swatches.php:
|
444 |
msgid "Cancel"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: ../woo-variation-swatches.php:
|
448 |
msgid "Use Image"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: ../woo-variation-swatches.php:
|
452 |
msgid "Add Media"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: ../woo-variation-swatches.php:
|
456 |
msgid "Read Documentation"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: ../woo-variation-swatches.php:
|
460 |
msgid "Facing issue?"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: ../woo-variation-swatches.php:
|
464 |
msgid "Please open a ticket."
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: ../woo-variation-swatches.php:
|
468 |
msgid "Go Pro"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: ../woo-variation-swatches.php:
|
472 |
msgid "Please check PHP version requirement."
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: ../woo-variation-swatches.php:
|
476 |
msgid "It's required to use latest version of PHP to use <strong>Variation Swatches for WooCommerce</strong>."
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: ../woo-variation-swatches.php:
|
480 |
msgid "WooCommerce"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: ../woo-variation-swatches.php:
|
484 |
msgid "<strong>Variation Swatches for WooCommerce</strong> is an add-on of "
|
485 |
msgstr ""
|
486 |
|
487 |
-
#: ../woo-variation-swatches.php:
|
488 |
msgid "Currently, you are using older version of WooCommerce. It's recommended to use latest version of WooCommerce to work with %s."
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: ../woo-variation-swatches.php:
|
492 |
msgid "Variation Swatches for WooCommerce"
|
493 |
msgstr ""
|
494 |
|
495 |
-
#: ../woo-variation-swatches.php:
|
496 |
msgid "Variation Swatches for WooCommerce Plugin try to load \"%s\" but template \"%s\" was not found."
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: ../woo-variation-swatches.php:
|
500 |
msgid "Install Now"
|
501 |
msgstr ""
|
273 |
msgstr ""
|
274 |
|
275 |
#: ../includes/functions.php:421
|
276 |
+
msgid "Defer Load JS for PageSpeed Score. If you use any caching plugin or your server have HTTP2 support you do not have to use it"
|
277 |
msgstr ""
|
278 |
|
279 |
#: ../includes/functions.php:427
|
281 |
msgstr ""
|
282 |
|
283 |
#: ../includes/functions.php:428
|
284 |
+
msgid "Use Transient Cache for PageSpeed Score. If you use any caching plugin you do not have to use it"
|
285 |
msgstr ""
|
286 |
|
287 |
#: ../includes/functions.php:440
|
320 |
msgid "Choose a color"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: ../includes/functions.php:529, ../woo-variation-swatches.php:461
|
324 |
msgid "Choose an Image"
|
325 |
msgstr ""
|
326 |
|
364 |
msgid "Additional Variation Images Gallery for WooCommerce"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: ../includes/tutorials.php:97, ../includes/tutorials.php:133, ../includes/tutorials.php:142, ../includes/tutorials.php:179, ../includes/tutorials.php:188, ../includes/tutorials.php:225, ../includes/tutorials.php:234, ../includes/tutorials.php:271, ../includes/tutorials.php:280, ../includes/tutorials.php:317, ../includes/tutorials.php:326, ../includes/tutorials.php:364, ../includes/tutorials.php:373
|
368 |
+
msgid "PRO"
|
369 |
+
msgstr ""
|
370 |
+
|
371 |
+
#: ../woo-variation-swatches.php:142
|
372 |
msgid "It's a temporary deactivation."
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: ../woo-variation-swatches.php:147
|
376 |
msgid "I couldn't understand how to make it work."
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: ../woo-variation-swatches.php:149
|
380 |
msgid "It converts variation select box to beautiful swatches. <br> <a target=\"_blank\" href=\"https://bit.ly/deactivate-dialogue\">Please check live demo</a>."
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: ../woo-variation-swatches.php:153
|
384 |
msgid "I no longer need the plugin"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: ../woo-variation-swatches.php:158
|
388 |
msgid "I found a better plugin"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: ../woo-variation-swatches.php:159
|
392 |
msgid "Please share which plugin"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: ../woo-variation-swatches.php:163
|
396 |
msgid "The plugin <strong>broke my layout</strong> or some functionality."
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: ../woo-variation-swatches.php:165
|
400 |
msgid "<a target=\"_blank\" href=\"https://getwooplugins.com/tickets/\">Please open a support ticket</a>, we will fix it immediately."
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: ../woo-variation-swatches.php:169
|
404 |
msgid "I need someone to <strong>setup this plugin.</strong>"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: ../woo-variation-swatches.php:170
|
408 |
msgid "Your email address."
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: ../woo-variation-swatches.php:172
|
412 |
msgid "Please provide your email address to contact with you <br>and help you to setup and configure this plugin."
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: ../woo-variation-swatches.php:176
|
416 |
msgid "The plugin is <strong>too complicated to configure.</strong>"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: ../woo-variation-swatches.php:178
|
420 |
msgid "<a target=\"_blank\" href=\"https://getwooplugins.com/documentation/woocommerce-variation-swatches/\">Have you checked our documentation?</a>."
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: ../woo-variation-swatches.php:182
|
424 |
msgid "I need <strong>specific feature</strong> that you don't support."
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: ../woo-variation-swatches.php:183
|
428 |
msgid "Please share with us."
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: ../woo-variation-swatches.php:188
|
432 |
msgid "Other"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: ../woo-variation-swatches.php:189
|
436 |
msgid "Please share the reason"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: ../woo-variation-swatches.php:462
|
440 |
msgid "Add Attribute"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: ../woo-variation-swatches.php:463
|
444 |
msgid "Add"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: ../woo-variation-swatches.php:464
|
448 |
msgid "Cancel"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: ../woo-variation-swatches.php:465
|
452 |
msgid "Use Image"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: ../woo-variation-swatches.php:466
|
456 |
msgid "Add Media"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: ../woo-variation-swatches.php:583, ../woo-variation-swatches.php:583
|
460 |
msgid "Read Documentation"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: ../woo-variation-swatches.php:585
|
464 |
msgid "Facing issue?"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: ../woo-variation-swatches.php:585
|
468 |
msgid "Please open a ticket."
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: ../woo-variation-swatches.php:600
|
472 |
msgid "Go Pro"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: ../woo-variation-swatches.php:653
|
476 |
msgid "Please check PHP version requirement."
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: ../woo-variation-swatches.php:655
|
480 |
msgid "It's required to use latest version of PHP to use <strong>Variation Swatches for WooCommerce</strong>."
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: ../woo-variation-swatches.php:667
|
484 |
msgid "WooCommerce"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: ../woo-variation-swatches.php:679
|
488 |
msgid "<strong>Variation Swatches for WooCommerce</strong> is an add-on of "
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: ../woo-variation-swatches.php:692
|
492 |
msgid "Currently, you are using older version of WooCommerce. It's recommended to use latest version of WooCommerce to work with %s."
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: ../woo-variation-swatches.php:692
|
496 |
msgid "Variation Swatches for WooCommerce"
|
497 |
msgstr ""
|
498 |
|
499 |
+
#: ../woo-variation-swatches.php:795
|
500 |
msgid "Variation Swatches for WooCommerce Plugin try to load \"%s\" but template \"%s\" was not found."
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: ../woo-variation-swatches.php:1028
|
504 |
msgid "Install Now"
|
505 |
msgstr ""
|
package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"package": "Variation Swatches for WooCommerce",
|
3 |
"name": "woo-variation-swatches",
|
4 |
-
"version": "1.1.
|
5 |
"author": "Emran Ahmed <emran.bd.08@gmail.com>",
|
6 |
"contact": "emran.bd.08@gmail.com",
|
7 |
"license": "GNU General Public License v3",
|
1 |
{
|
2 |
"package": "Variation Swatches for WooCommerce",
|
3 |
"name": "woo-variation-swatches",
|
4 |
+
"version": "1.1.6",
|
5 |
"author": "Emran Ahmed <emran.bd.08@gmail.com>",
|
6 |
"contact": "emran.bd.08@gmail.com",
|
7 |
"license": "GNU General Public License v3",
|
webpack.mix.js
CHANGED
@@ -61,7 +61,7 @@ if (Mix.inProduction()) {
|
|
61 |
}
|
62 |
|
63 |
mix.banner({
|
64 |
-
banner : "Variation Swatches for WooCommerce v1.1.
|
65 |
});
|
66 |
|
67 |
mix.notification({
|
61 |
}
|
62 |
|
63 |
mix.banner({
|
64 |
+
banner : "Variation Swatches for WooCommerce v1.1.6 \n\nAuthor: Emran Ahmed ( emran.bd.08@gmail.com ) \nDate: " + new Date().toLocaleDateString('en-GB') + "\nReleased under the GPLv3 license."
|
65 |
});
|
66 |
|
67 |
mix.notification({
|
woo-variation-swatches.php
CHANGED
@@ -4,11 +4,12 @@
|
|
4 |
* Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
|
5 |
* Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 3.2+
|
6 |
* Author: Emran Ahmed
|
7 |
-
* Version: 1.1.
|
8 |
* Domain Path: /languages
|
|
|
9 |
* Requires at least: 4.8
|
10 |
-
* Tested up to: 5.6
|
11 |
* WC requires at least: 4.5
|
|
|
12 |
* WC tested up to: 4.9
|
13 |
* Text Domain: woo-variation-swatches
|
14 |
* Author URI: https://getwooplugins.com/
|
@@ -20,7 +21,7 @@ if ( ! class_exists( 'Woo_Variation_Swatches' ) ):
|
|
20 |
|
21 |
final class Woo_Variation_Swatches {
|
22 |
|
23 |
-
protected $_version = '1.1.
|
24 |
|
25 |
protected static $_instance = null;
|
26 |
private $_settings_api;
|
@@ -376,7 +377,7 @@ if ( ! class_exists( 'Woo_Variation_Swatches' ) ):
|
|
376 |
)
|
377 |
);
|
378 |
|
379 |
-
|
380 |
if ( ! $this->is_pro_active() ) {
|
381 |
wp_deregister_script( 'wc-add-to-cart-variation' );
|
382 |
wp_register_script( 'wc-add-to-cart-variation', $this->get_wc_asset_url( 'assets/js/frontend/add-to-cart-variation' . $suffix . '.js' ),
|
@@ -727,6 +728,12 @@ if ( ! class_exists( 'Woo_Variation_Swatches' ) ):
|
|
727 |
return WVS_IMAGES_URI . $file;
|
728 |
}
|
729 |
|
|
|
|
|
|
|
|
|
|
|
|
|
730 |
public function assets_uri( $file ) {
|
731 |
$file = ltrim( $file, '/' );
|
732 |
|
4 |
* Plugin URI: https://wordpress.org/plugins/woo-variation-swatches/
|
5 |
* Description: Beautiful colors, images and buttons variation swatches for woocommerce product attributes. Requires WooCommerce 3.2+
|
6 |
* Author: Emran Ahmed
|
7 |
+
* Version: 1.1.6
|
8 |
* Domain Path: /languages
|
9 |
+
* Requires PHP: 5.6
|
10 |
* Requires at least: 4.8
|
|
|
11 |
* WC requires at least: 4.5
|
12 |
+
* Tested up to: 5.6
|
13 |
* WC tested up to: 4.9
|
14 |
* Text Domain: woo-variation-swatches
|
15 |
* Author URI: https://getwooplugins.com/
|
21 |
|
22 |
final class Woo_Variation_Swatches {
|
23 |
|
24 |
+
protected $_version = '1.1.6';
|
25 |
|
26 |
protected static $_instance = null;
|
27 |
private $_settings_api;
|
377 |
)
|
378 |
);
|
379 |
|
380 |
+
// On Free Version
|
381 |
if ( ! $this->is_pro_active() ) {
|
382 |
wp_deregister_script( 'wc-add-to-cart-variation' );
|
383 |
wp_register_script( 'wc-add-to-cart-variation', $this->get_wc_asset_url( 'assets/js/frontend/add-to-cart-variation' . $suffix . '.js' ),
|
728 |
return WVS_IMAGES_URI . $file;
|
729 |
}
|
730 |
|
731 |
+
public function wp_images_uri( $file ) {
|
732 |
+
$file = ltrim( $file, '/' );
|
733 |
+
|
734 |
+
return esc_url( sprintf( 'https://ps.w.org/woo-variation-swatches/assets/%s', $file ) );
|
735 |
+
}
|
736 |
+
|
737 |
public function assets_uri( $file ) {
|
738 |
$file = ltrim( $file, '/' );
|
739 |
|