Variation Swatches for WooCommerce - Version 2.1.6

Version Description

  • Update: WooCommerce and WordPress Compatibility
  • Minor bugs fix and improvements
  • Add action to support new pro features
Download this release

Release Info

Developer themealien
Plugin Icon 128x128 Variation Swatches for WooCommerce
Version 2.1.6
Comparing to
See all releases

Code changes from version 2.1.5 to 2.1.6

assets/css/admin.css CHANGED
@@ -1301,6 +1301,33 @@ p.vmch-text a:focus {
1301
  transform: rotate(360deg);
1302
  }
1303
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1304
  @media screen and (min-width: 600px) {
1305
  .pro-feature-popup {
1306
  width: 450px;
1301
  transform: rotate(360deg);
1302
  }
1303
  }
1304
+ #variation_swatches_options .wcvs-pro-feature:hover {
1305
+ cursor: pointer;
1306
+ }
1307
+ #variation_swatches_options .wcvs-pro-feature label {
1308
+ color: #BCB3B3;
1309
+ position: relative;
1310
+ padding-right: 50px;
1311
+ }
1312
+ #variation_swatches_options .wcvs-pro-feature label:after {
1313
+ content: "Pro";
1314
+ position: absolute;
1315
+ padding: 2px 7px;
1316
+ background-color: #239B6B;
1317
+ right: 10px;
1318
+ color: #fff;
1319
+ top: 0px;
1320
+ font-size: 14px;
1321
+ font-weight: 400;
1322
+ border: 1px solid #239B6B;
1323
+ }
1324
+ #variation_swatches_options .wcvs-pro-feature select:hover {
1325
+ cursor: pointer;
1326
+ }
1327
+ #variation_swatches_options .wcvs-pro-feature-popup {
1328
+ margin-left: calc(50vw - 600px);
1329
+ }
1330
+
1331
  @media screen and (min-width: 600px) {
1332
  .pro-feature-popup {
1333
  width: 450px;
assets/css/admin.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["admin.scss"],"names":[],"mappings":";AACE;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;AAEA;EACE;;AAIA;EACE;;AAGF;EACE;;;AAKN;AAEA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;EACA;;;AAIJ;EACE;EACA;EACA;AAEA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EASE;;AARA;EACE;EACA;EACA;EACA;EACA;;;AAQR;EACE;IACE;IACA;;;EAGF;IACE;IACA;IACA;;;EAGF;IACE;IACA;IACA;;;EAGF;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;AAAA;AAAA;AAIA;EACE;EACA;EACA;;;AAIA;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;;AAKF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAIA;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;;AAKN;EACE;IACE;IACA;IACA;IACA;;;AAIJ;EAEI;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAEA;IACE;;;AAMR;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAIA;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAIA;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAEA;AAAA;EAEE;;AAGF;AAAA;EAEE;;AAGF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKN;EACE;EACA;;AAEA;EACE;;AAGF;EACE;;;AAKN;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAIJ;EACE;;AAEA;EACE;;;AAKN;AAEA;AAEA;AAEA;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;AAEA;AAAA;EAEE;;AAIA;EACE;EACA;EACA;;AAEA;EAEE;EACA;;AAKN;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;;AAEA;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEA;EACE;;AAKN;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;EACE;;;AAIJ;EACE;;AAEA;EACE;EACA;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAOE;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAKF;EACE;;AAKF;EACE;;;AAMR;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAIA;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;;AAMN;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;IACE;;;AAKF;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAIA;EACE;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;IACE;;;AAIJ;EACE;IACE;IACA;;;EAGF;IACE;;;AAIJ;EACE;IACE;;EAEA;IACE;IACA;;;EAIJ;IACE;;;EAGF;IACE;;;EAGF;IACE;;;AAIJ;EACE;;;AAIA;EACE;EACA;;AAGF;EACE;;;AAIJ;EACE;IACE;IACA;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;AAGE;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;;AAEA;EACE;;AAKF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAIJ;EACE;EACA;EACA;;AAIA;EACE;EACA;EACA;;;AAKN;EAEI;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;;AAMJ;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAIA;EACE;;;AAQV;EACE;EACA;;AAGE;EACE;;AAEA;EACE;;AAIJ;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAMF;EACE;;AAMN;EAzCF;IA0CI;;;AAGF;EA7CF;IA8CI;IACA;;;AAGF;EAlDF;IAmDI;IACA;;;;AAQE;EACE;;AAIJ;EACE;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAIA;EACE;EACA;;AAGF;EACE;;AAON;EAnDF;IAoDI;IACA;IACA;;;AAEF;EAxDF;IAyDI;IACA;;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAKE;EACE;EACA;EACA;;;AAKN;EACE;;;AAGF;AAAA;AAAA;EAGE;;;AAGF;AAAA;EAEE;;AAGE;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAKN;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAIJ;EAEE;IACE;IACA;IACA;;;AAIJ;EACE;IACE;;;EAGF;IACE;IACA;;;EAIA;IACE;IACA;;EAGF;IACE;;;AAKN;AAEA;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE","file":"admin.css"}
1
+ {"version":3,"sourceRoot":"","sources":["admin.scss"],"names":[],"mappings":";AACE;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;AAEA;EACE;;AAIA;EACE;;AAGF;EACE;;;AAKN;AAEA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;EACA;;;AAIJ;EACE;EACA;EACA;AAEA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EASE;;AARA;EACE;EACA;EACA;EACA;EACA;;;AAQR;EACE;IACE;IACA;;;EAGF;IACE;IACA;IACA;;;EAGF;IACE;IACA;IACA;;;EAGF;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;IACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;AAAA;AAAA;AAIA;EACE;EACA;EACA;;;AAIA;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;;AAKF;EACE;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAIA;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;;AAKN;EACE;IACE;IACA;IACA;IACA;;;AAIJ;EAEI;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;EAEA;IACE;;;AAMR;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAIA;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAIA;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAEA;AAAA;EAEE;;AAGF;AAAA;EAEE;;AAGF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKN;EACE;EACA;;AAEA;EACE;;AAGF;EACE;;;AAKN;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;AAEA;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAIJ;EACE;;AAEA;EACE;;;AAKN;AAEA;AAEA;AAEA;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;AAEA;AAAA;EAEE;;AAIA;EACE;EACA;EACA;;AAEA;EAEE;EACA;;AAKN;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;;AAEA;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAEA;EACE;;AAKN;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;EACE;;;AAIJ;EACE;;AAEA;EACE;EACA;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAOE;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAKF;EACE;;AAKF;EACE;;;AAMR;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAIA;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;;AAMN;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;IACE;;;AAKF;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAIA;EACE;;AAEA;EACE;EACA;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;IACE;;;AAIJ;EACE;IACE;IACA;;;EAGF;IACE;;;AAIJ;EACE;IACE;;EAEA;IACE;IACA;;;EAIJ;IACE;;;EAGF;IACE;;;EAGF;IACE;;;AAIJ;EACE;;;AAIA;EACE;EACA;;AAGF;EACE;;;AAIJ;EACE;IACE;IACA;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;AAGE;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;EACA;EACA;;AAGF;EACE;;AAEA;EACE;;AAKF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAIJ;EACE;EACA;EACA;;AAIA;EACE;EACA;EACA;;;AAKN;EAEI;IACE;IACA;IACA;IACA;;EAGF;IACE;IACA;IACA;IACA;;;AAMJ;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAIJ;EACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;;AAEA;EACE;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAIA;EACE;;;AAQV;EACE;EACA;;AAGE;EACE;;AAEA;EACE;;AAIJ;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAMF;EACE;;AAMN;EAzCF;IA0CI;;;AAGF;EA7CF;IA8CI;IACA;;;AAGF;EAlDF;IAmDI;IACA;;;;AAQE;EACE;;AAIJ;EACE;;AAGF;EACE;EACA;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;;AAIA;EACE;EACA;;AAGF;EACE;;AAON;EAnDF;IAoDI;IACA;IACA;;;AAEF;EAxDF;IAyDI;IACA;;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAKE;EACE;EACA;EACA;;;AAKN;EACE;;;AAGF;AAAA;AAAA;EAGE;;;AAGF;AAAA;EAEE;;AAGE;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAKN;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE;;;AAMA;EACE;;AAGF;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKF;EACE;;AAKN;EACE;;;AAGJ;EAEE;IACE;IACA;IACA;;;AAIJ;EACE;IACE;;;EAGF;IACE;IACA;;;EAIA;IACE;IACA;;EAGF;IACE;;;AAKN;AAEA;EACE;IACE;;EAEF;IACE;;;AAIJ;EACE;IACE;;EAEF;IACE","file":"admin.css"}
assets/css/admin.scss CHANGED
@@ -1520,6 +1520,42 @@ p.vmch-text a {
1520
  }
1521
  }
1522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1523
  @media screen and (min-width: 600px) {
1524
 
1525
  .pro-feature-popup {
1520
  }
1521
  }
1522
 
1523
+ #variation_swatches_options {
1524
+ .wcvs-pro-feature {
1525
+ &:hover {
1526
+ cursor: pointer;
1527
+ }
1528
+
1529
+ label {
1530
+ color: #BCB3B3;
1531
+ position: relative;
1532
+ padding-right: 50px;
1533
+
1534
+ &:after {
1535
+ content: "Pro";
1536
+ position: absolute;
1537
+ padding: 2px 7px;
1538
+ background-color: #239B6B;
1539
+ right: 10px;
1540
+ color: #fff;
1541
+ top: 0px;
1542
+ font-size: 14px;
1543
+ font-weight: 400;
1544
+ border: 1px solid #239B6B;
1545
+ }
1546
+ }
1547
+
1548
+ select{
1549
+ &:hover {
1550
+ cursor: pointer;
1551
+ }
1552
+ }
1553
+ }
1554
+
1555
+ .wcvs-pro-feature-popup {
1556
+ margin-left: calc(50vw - 600px);
1557
+ }
1558
+ }
1559
  @media screen and (min-width: 600px) {
1560
 
1561
  .pro-feature-popup {
assets/css/frontend.css CHANGED
@@ -301,7 +301,7 @@
301
  z-index: 2;
302
  color: #fff;
303
  margin: -15px 0 0 0;
304
- padding: 10px;
305
  text-indent: initial;
306
  font-size: 14px;
307
  font-weight: 500;
@@ -313,10 +313,6 @@
313
  white-space: normal;
314
  min-width: max-content;
315
  }
316
- .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch-radio .swatch__tooltip {
317
- left:20%!important;
318
- top:10px;
319
- }
320
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch__tooltip:after,
321
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches .swatch__tooltip:after,
322
  .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch__tooltip:after {
@@ -332,6 +328,12 @@
332
  left: 50%;
333
  margin-left: -6px;
334
  }
 
 
 
 
 
 
335
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch-item-wrapper,
336
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches .swatch-item-wrapper,
337
  .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch-item-wrapper {
@@ -339,8 +341,7 @@
339
  }
340
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch:hover + .swatch__tooltip,
341
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches .swatch:hover + .swatch__tooltip,
342
- .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch:hover + .swatch__tooltip,
343
- .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch-label:hover + .swatch__tooltip {
344
  opacity: 1;
345
  visibility: visible;
346
  user-select: auto;
@@ -349,7 +350,7 @@
349
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled,
350
  .woocommerce.single-product form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled {
351
  position: relative;
352
- background: #33333357;
353
  }
354
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled img,
355
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled img,
@@ -369,7 +370,7 @@
369
  height: 100%;
370
  border: none;
371
  border-radius: 0;
372
- background: linear-gradient(to top left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 0.8px), black 50%, rgba(0, 0, 0, 0) calc(50% + 0.8px), rgba(0, 0, 0, 0) 100%), linear-gradient(to top right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 0.8px), black 50%, rgba(0, 0, 0, 0) calc(50% + 0.8px), rgba(0, 0, 0, 0) 100%);
373
  }
374
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled.swatch-shape-rounded:after,
375
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled.swatch-shape-rounded:after,
@@ -439,14 +440,19 @@
439
  }
440
 
441
  table.variations {
442
- overflow: visible!important;
 
 
 
443
  }
444
 
445
  .swatch-radio {
446
- width:100%;
447
  }
448
- .swatch-radio input[type="radio"] {
449
- width:auto!important;
450
- height:auto!important;
 
451
  }
 
452
  /*# sourceMappingURL=frontend.css.map */
301
  z-index: 2;
302
  color: #fff;
303
  margin: -15px 0 0 0;
304
+ padding: 5px 10px;
305
  text-indent: initial;
306
  font-size: 14px;
307
  font-weight: 500;
313
  white-space: normal;
314
  min-width: max-content;
315
  }
 
 
 
 
316
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch__tooltip:after,
317
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches .swatch__tooltip:after,
318
  .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch__tooltip:after {
328
  left: 50%;
329
  margin-left: -6px;
330
  }
331
+ .woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch-radio .swatch__tooltip,
332
+ .woocommerce.archive form.cart.variations_form .tawcvs-swatches .swatch-radio .swatch__tooltip,
333
+ .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch-radio .swatch__tooltip {
334
+ left: 10% !important;
335
+ top: 10px;
336
+ }
337
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch-item-wrapper,
338
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches .swatch-item-wrapper,
339
  .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch-item-wrapper {
341
  }
342
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches .swatch:hover + .swatch__tooltip,
343
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches .swatch:hover + .swatch__tooltip,
344
+ .woocommerce.single-product form.cart.variations_form .tawcvs-swatches .swatch:hover + .swatch__tooltip {
 
345
  opacity: 1;
346
  visibility: visible;
347
  user-select: auto;
350
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled,
351
  .woocommerce.single-product form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled {
352
  position: relative;
353
+ background: rgba(51, 51, 51, 0.3411764706);
354
  }
355
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled img,
356
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled img,
370
  height: 100%;
371
  border: none;
372
  border-radius: 0;
373
+ background: linear-gradient(to top left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 0.8px), rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) calc(50% + 0.8px), rgba(0, 0, 0, 0) 100%), linear-gradient(to top right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 0.8px), rgb(0, 0, 0) 50%, rgba(0, 0, 0, 0) calc(50% + 0.8px), rgba(0, 0, 0, 0) 100%);
374
  }
375
  .woocommerce div.product form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled.swatch-shape-rounded:after,
376
  .woocommerce.archive form.cart.variations_form .tawcvs-swatches.oss-blur-with-cross .swatch.disabled.swatch-shape-rounded:after,
440
  }
441
 
442
  table.variations {
443
+ overflow: visible !important;
444
+ }
445
+ table.variations .label {
446
+ margin-bottom: 10px;
447
  }
448
 
449
  .swatch-radio {
450
+ width: 100%;
451
  }
452
+
453
+ .swatch-radio input[type=radio] {
454
+ width: auto !important;
455
+ height: auto !important;
456
  }
457
+
458
  /*# sourceMappingURL=frontend.css.map */
assets/css/frontend.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["frontend.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAQI;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIE;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKN;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAKN;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAIA;AAAA;AAAA;EACE;EACA;;AAEA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAeA;AAAA;AAAA;EACE;;AAKF;AAAA;AAAA;EACE;;AAON;AAAA;AAAA;EACE;;;AAOV;EACE;;AAEA;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAKF;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;AAAA;AAAA;AAIE;EACE;;AAGF;EACE;IACE;;;AAIJ;EACE;;AAKA;EAME;;AALA;EACE;EACA","file":"frontend.css"}
1
+ {"version":3,"sourceRoot":"","sources":["frontend.scss"],"names":[],"mappings":"AAAA;EACE;EACA;;;AAQI;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIE;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKN;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;;AAKN;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;AAAA;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;EACA;EACA;;AAIA;AAAA;AAAA;EACE;EACA;;AAEA;AAAA;AAAA;EACE;;AAGF;AAAA;AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAeA;AAAA;AAAA;EACE;;AAKF;AAAA;AAAA;EACE;;AAON;AAAA;AAAA;EACE;;;AAOV;EACE;;AAEA;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAKF;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;AAAA;AAAA;AAIE;EACE;;AAGF;EACE;IACE;;;AAIJ;EACE;;AAKA;EAME;;AALA;EACE;EACA;;;AAQR;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAEF;EACE;EACA","file":"frontend.css"}
assets/css/frontend.scss CHANGED
@@ -363,6 +363,10 @@
363
 
364
  table.variations {
365
  overflow: visible!important;
 
 
 
 
366
  }
367
 
368
  .swatch-radio {
363
 
364
  table.variations {
365
  overflow: visible!important;
366
+
367
+ .label {
368
+ margin-bottom: 10px;
369
+ }
370
  }
371
 
372
  .swatch-radio {
assets/js/admin.js CHANGED
@@ -338,7 +338,11 @@ jQuery(document).ready(function ($) {
338
  //Show the Pro features popup
339
  $('#tawcvs-settings-wrap').on('click', '.wcvs-pro-item, .wcvs-pro-item *', function (e) {
340
  e.preventDefault();
341
- $('.wcvs-pro-feature-popup,.wcvs-popup-blur').show();
 
 
 
 
342
  })
343
 
344
  //Hide the Pro features popup when clicking on close button or outside the popup
@@ -469,6 +473,10 @@ jQuery(document).ready(function ($) {
469
  });
470
  }
471
 
 
 
 
 
472
  });
473
 
474
 
338
  //Show the Pro features popup
339
  $('#tawcvs-settings-wrap').on('click', '.wcvs-pro-item, .wcvs-pro-item *', function (e) {
340
  e.preventDefault();
341
+ showTheProPopUp();
342
+ })
343
+ $("#variation_swatches_options").on("click",".wcvs-pro-feature",function(e){
344
+ e.preventDefault();
345
+ showTheProPopUp();
346
  })
347
 
348
  //Hide the Pro features popup when clicking on close button or outside the popup
473
  });
474
  }
475
 
476
+ function showTheProPopUp(){
477
+ $('.wcvs-pro-feature-popup,.wcvs-popup-blur').show();
478
+ }
479
+
480
  });
481
 
482
 
assets/js/frontend.js CHANGED
@@ -17,10 +17,10 @@
17
  $form
18
  .addClass('swatches-support')
19
  .on("found_variation", function (event, variation) {
20
- change_variation_image_on_shop_page($form, variation);
21
  })
22
  .on("reset_image", function (event) {
23
- change_variation_image_on_shop_page($form, false);
24
  })
25
  .on('click', '.swatch', function (e) {
26
  e.preventDefault();
@@ -122,31 +122,14 @@
122
  });
123
  };
124
 
125
- //Tracking the reset_variations button on change visibility -> change the corresponding display state
126
- function toggle_hidden_variation_btn() {
127
- const resetVariationNodes = document.getElementsByClassName('reset_variations');
128
- if (resetVariationNodes.length) {
129
- Array.prototype.forEach.call(resetVariationNodes, function (resetVariationEle) {
130
- let observer = new MutationObserver(function () {
131
- if (resetVariationEle.style.visibility !== 'hidden') {
132
- resetVariationEle.style.display = 'block';
133
- } else {
134
- resetVariationEle.style.display = 'none';
135
- }
136
- });
137
- observer.observe(resetVariationEle, {attributes: true, childList: true});
138
- })
139
- }
140
- }
141
-
142
- function change_variation_image_on_shop_page($form, variation) {
143
- var $product = $form.closest('.product'),
144
  $product_img = $product.find('.woocommerce-LoopProduct-link img');
145
-
146
  if ($product_img.length !== 1) {
147
  return false;
148
  }
149
-
150
  if (variation && variation.image && variation.image.src && variation.image.src.length > 1) {
151
  $product_img.wc_set_variation_attr('src', variation.image.src);
152
  $product_img.wc_set_variation_attr('height', variation.image.src_h);
@@ -176,6 +159,23 @@
176
  }
177
  }
178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  $(function () {
180
  $('.variations_form').tawcvs_variation_swatches_form().trigger('woocommerce_update_variation_values');
181
  $(document.body).trigger('tawcvs_initialized');
17
  $form
18
  .addClass('swatches-support')
19
  .on("found_variation", function (event, variation) {
20
+ $form.change_variation_image_on_shop_page(variation);
21
  })
22
  .on("reset_image", function (event) {
23
+ $form.change_variation_image_on_shop_page(false);
24
  })
25
  .on('click', '.swatch', function (e) {
26
  e.preventDefault();
122
  });
123
  };
124
 
125
+ $.fn.change_variation_image_on_shop_page = function (variation) {
126
+ var $product = $(this).closest('.product'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  $product_img = $product.find('.woocommerce-LoopProduct-link img');
128
+
129
  if ($product_img.length !== 1) {
130
  return false;
131
  }
132
+
133
  if (variation && variation.image && variation.image.src && variation.image.src.length > 1) {
134
  $product_img.wc_set_variation_attr('src', variation.image.src);
135
  $product_img.wc_set_variation_attr('height', variation.image.src_h);
159
  }
160
  }
161
 
162
+ //Tracking the reset_variations button on change visibility -> change the corresponding display state
163
+ function toggle_hidden_variation_btn() {
164
+ const resetVariationNodes = document.getElementsByClassName('reset_variations');
165
+ if (resetVariationNodes.length) {
166
+ Array.prototype.forEach.call(resetVariationNodes, function (resetVariationEle) {
167
+ let observer = new MutationObserver(function () {
168
+ if (resetVariationEle.style.visibility !== 'hidden') {
169
+ resetVariationEle.style.display = 'block';
170
+ } else {
171
+ resetVariationEle.style.display = 'none';
172
+ }
173
+ });
174
+ observer.observe(resetVariationEle, {attributes: true, childList: true});
175
+ })
176
+ }
177
+ }
178
+
179
  $(function () {
180
  $('.variations_form').tawcvs_variation_swatches_form().trigger('woocommerce_update_variation_values');
181
  $(document.body).trigger('tawcvs_initialized');
includes/class-admin.php CHANGED
@@ -164,6 +164,40 @@ class TA_WC_Variation_Swatches_Admin {
164
  'desc_tip' => false,
165
  'description' => __( 'Show the default dropdown selection instead of swatches settings', 'wcvs' )
166
  ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  ?>
168
  </div>
169
  </div>
164
  'desc_tip' => false,
165
  'description' => __( 'Show the default dropdown selection instead of swatches settings', 'wcvs' )
166
  ) );
167
+
168
+ if ( ! TA_WC_Variation_Swatches::is_pro_addon_active() ) {
169
+ woocommerce_wp_select(
170
+ array(
171
+ 'wrapper_class' => 'wcvs-pro-feature',
172
+ 'id' => 'single_variation_preview',
173
+ 'label' => __( 'Single variation preview attributes', 'wcvs' ),
174
+ 'options' => array(
175
+ '' => __( ' - Choose Attribute - ', 'wcvs' )
176
+ ),
177
+ 'value' => '',
178
+ 'custom_attributes' => array(
179
+ 'disabled' => 'disabled'
180
+ )
181
+ )
182
+ );
183
+ woocommerce_wp_select(
184
+ array(
185
+ 'wrapper_class' => 'wcvs-pro-feature',
186
+ 'id' => 'override_single_attribute',
187
+ 'label' => __( 'Single attribute for using in catalog pages', 'wcvs' ),
188
+ 'options' => array(
189
+ '' => __( ' - Choose Attribute - ', 'wcvs' )
190
+ ),
191
+ 'value' => '',
192
+ 'custom_attributes' => array(
193
+ 'disabled' => 'disabled'
194
+ )
195
+ )
196
+ );
197
+ TA_WC_Variation_Swatches::get_template( 'admin/pro-feature-popup.php' );
198
+ }
199
+
200
+ do_action( 'variation_swatches_product_panel' );
201
  ?>
202
  </div>
203
  </div>
includes/class-frontend.php CHANGED
@@ -37,6 +37,7 @@ class TA_WC_Variation_Swatches_Frontend {
37
  $this,
38
  'get_swatch_html'
39
  ), 100, 2 );
 
40
  add_filter( 'tawcvs_swatch_html', array( $this, 'swatch_html' ), 5, 4 );
41
 
42
  $latest_option = get_option( 'woosuite_variation_swatches_option' );
@@ -113,7 +114,8 @@ class TA_WC_Variation_Swatches_Frontend {
113
  if ( ! empty( $variations_attr ) ) {
114
  ?>
115
  <div class="tawcvs-placeholder-element hidden tawcvs-available-product-variation"
116
- data-product_variations="<?php echo $variations_attr; ?>"></div>
 
117
  <?php }
118
  }
119
  }
@@ -214,7 +216,6 @@ class TA_WC_Variation_Swatches_Frontend {
214
  $swatches = '<div class="tawcvs-swatches oss-' . $out_of_stock_state . '" data-attribute_name="attribute_' . esc_attr( $attribute_tax_name ) . '">' . $swatches . '</div>';
215
  $html = '<div class="' . esc_attr( $class ) . '">' . $html . '</div>' . $swatches;
216
  }
217
-
218
  return $html;
219
  }
220
 
@@ -269,7 +270,7 @@ class TA_WC_Variation_Swatches_Frontend {
269
  public function swatch_html( $html, $term, $type, $args ) {
270
 
271
  $selected = sanitize_title( $args['selected'] ) == $term->slug ? 'selected' : '';
272
- $name = esc_html( apply_filters( 'woocommerce_variation_option_name', ! empty( $term->description ) ? $term->description : $term->name ) );
273
 
274
  $tooltip = $this->get_tooltip_html( '', $term, $name, $args );
275
  $tooltip = apply_filters( 'tawcvs_tooltip_html', $tooltip, $term, $name, $args );
37
  $this,
38
  'get_swatch_html'
39
  ), 100, 2 );
40
+
41
  add_filter( 'tawcvs_swatch_html', array( $this, 'swatch_html' ), 5, 4 );
42
 
43
  $latest_option = get_option( 'woosuite_variation_swatches_option' );
114
  if ( ! empty( $variations_attr ) ) {
115
  ?>
116
  <div class="tawcvs-placeholder-element hidden tawcvs-available-product-variation"
117
+ data-product_variations="<?php echo $variations_attr; ?>">
118
+ </div>
119
  <?php }
120
  }
121
  }
216
  $swatches = '<div class="tawcvs-swatches oss-' . $out_of_stock_state . '" data-attribute_name="attribute_' . esc_attr( $attribute_tax_name ) . '">' . $swatches . '</div>';
217
  $html = '<div class="' . esc_attr( $class ) . '">' . $html . '</div>' . $swatches;
218
  }
 
219
  return $html;
220
  }
221
 
270
  public function swatch_html( $html, $term, $type, $args ) {
271
 
272
  $selected = sanitize_title( $args['selected'] ) == $term->slug ? 'selected' : '';
273
+ $name = esc_html( apply_filters( 'woocommerce_variation_option_name', $term->name ) );
274
 
275
  $tooltip = $this->get_tooltip_html( '', $term, $name, $args );
276
  $tooltip = apply_filters( 'tawcvs_tooltip_html', $tooltip, $term, $name, $args );
includes/class-setting-fields-manager.php CHANGED
@@ -214,6 +214,25 @@ if ( ! class_exists( 'VSWC_Setting_Fields_Manager' ) ) {
214
  'desc' => __( 'All variations will be shown as available to select.', 'wcvs' ),
215
  'priority' => 4.1
216
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  array(
218
  'title' => __( 'Choose your swatch shape', 'wcvs' ),
219
  'fields' => array(
@@ -300,7 +319,7 @@ if ( ! class_exists( 'VSWC_Setting_Fields_Manager' ) ) {
300
  'priority' => 5.1
301
  ),
302
  array(
303
- 'title' => __( 'Image position', 'woosuite-variation-swatches-pro' ),
304
  'fields' => array(
305
  array(
306
  'id' => 'wcvs-image-position-pro',
@@ -308,14 +327,14 @@ if ( ! class_exists( 'VSWC_Setting_Fields_Manager' ) ) {
308
  'options_group' => array(
309
  array(
310
  'value' => 'default',
311
- 'label' => __( 'Default', 'woosuite-variation-swatches-pro' ),
312
  )
313
  ),
314
  'class' => 'br-type',
315
  'name' => 'image-position',
316
  )
317
  ),
318
- 'desc' => __( 'Select option', 'woosuite-variation-swatches-pro' ),
319
  'priority' => 5.2,
320
  'is_pro_feature' => true,
321
  ),
214
  'desc' => __( 'All variations will be shown as available to select.', 'wcvs' ),
215
  'priority' => 4.1
216
  ),
217
+ array(
218
+ 'title' => __( 'Single variation image preview', 'wcvs' ),
219
+ 'fields' => array(
220
+ array(
221
+ 'type' => 'select',
222
+ 'options_group' => array(
223
+ array(
224
+ 'value' => 0,
225
+ 'label' => __( '-- Select attribute --', 'wcvs' )
226
+ )
227
+ ),
228
+ 'class' => 'br-type',
229
+ 'name' => 'single-variation-preview',
230
+ )
231
+ ),
232
+ 'is_pro_feature' => true,
233
+ 'desc' => __( 'Automatically change product image based on this attribute', 'wcvs' ),
234
+ 'priority' => 4.2
235
+ ),
236
  array(
237
  'title' => __( 'Choose your swatch shape', 'wcvs' ),
238
  'fields' => array(
319
  'priority' => 5.1
320
  ),
321
  array(
322
+ 'title' => __( 'Image position', 'wcvs' ),
323
  'fields' => array(
324
  array(
325
  'id' => 'wcvs-image-position-pro',
327
  'options_group' => array(
328
  array(
329
  'value' => 'default',
330
+ 'label' => __( 'Default', 'wcvs' ),
331
  )
332
  ),
333
  'class' => 'br-type',
334
  'name' => 'image-position',
335
  )
336
  ),
337
+ 'desc' => __( 'Select option', 'wcvs' ),
338
  'priority' => 5.2,
339
  'is_pro_feature' => true,
340
  ),
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Variation Swatches for WooCommerce ===
2
  Contributors: variationswatches, themealien, zgani, mehbubrashid, minhnguyen25
3
- Tags: variation swatches, woocommerce, product attribute, product color, product size, variable products
4
  Requires at least: 4.5
5
- Tested up to: 5.9.2
6
- Stable tag: 2.1.5
7
  WC requires at least: 3.2.0
8
- WC tested up to: 6.3.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -103,6 +103,11 @@ Yes, it will work with any theme, but may require some styling to make it match
103
  7. Add new attribute color when edit a product
104
 
105
  == Changelog ==
 
 
 
 
 
106
  = 2.1.5 =
107
  * Minor bugs fix and improvements.
108
 
1
  === Variation Swatches for WooCommerce ===
2
  Contributors: variationswatches, themealien, zgani, mehbubrashid, minhnguyen25
3
+ Tags: variation swatches, woocommerce swatches, variation swatches for woocommerce, woocommerce attributes, woocommerce
4
  Requires at least: 4.5
5
+ Tested up to: 6.0
6
+ Stable tag: 2.1.6
7
  WC requires at least: 3.2.0
8
+ WC tested up to: 6.6.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
103
  7. Add new attribute color when edit a product
104
 
105
  == Changelog ==
106
+ = 2.1.6 =
107
+ * Update: WooCommerce and WordPress Compatibility
108
+ * Minor bugs fix and improvements
109
+ * Add action to support new pro features
110
+
111
  = 2.1.5 =
112
  * Minor bugs fix and improvements.
113
 
templates/admin/welcome-popup.php CHANGED
@@ -6,10 +6,10 @@
6
  </div>
7
  <div class="popup-content">
8
  <div class="popup-inner-content">
9
- <p><strong>Variation Swatches 2.1.5 is here! 🥳🥳</strong></p>
10
- <p>A few users reported having aax errors after updating so this version fixes that. We add back support for custom tooltips via description field.</p>
11
- <p>This was based on your feedback, we have added a bunch of new features and enhancements with a lot more to go.</p>
12
- <p><a href="https://woosuite.com/news/variation-swatches-v2-1-0-update/" target="_blank" rel="noopener noreferrer nofollow"> Click here to learn more. </a></p>
13
  <p>If you experience any issues, please get in touch with support so we can make it right: <a href="https://woosuite.com/support/" target="_blank" rel="noopener noreferrer nofollow">Support</a></p>
14
  </div>
15
  </div>
6
  </div>
7
  <div class="popup-content">
8
  <div class="popup-inner-content">
9
+ <p><strong>Variation Swatches 2.1.6 is here! 🥳🥳</strong></p>
10
+ <p>This version fixes small styling issues but more importantly extends the support of <a href="https://woosuite.com/lp/variations-swatches-upgrade/?ref=update-message">our Pro version</a>.</p>
11
+ <p>A lot of our best features come from your feedback, so let us know what you would like to see next.</p>
12
+ <p><a href="https://woosuite.com/news/variation-swatches-updates/" target="_blank" rel="noopener noreferrer nofollow"> Click here to learn more. </a></p>
13
  <p>If you experience any issues, please get in touch with support so we can make it right: <a href="https://woosuite.com/support/" target="_blank" rel="noopener noreferrer nofollow">Support</a></p>
14
  </div>
15
  </div>
variation-swatches-for-woocommerce.php CHANGED
@@ -3,15 +3,15 @@
3
  * Plugin Name: Variation Swatches for WooCommerce
4
  * Plugin URI: https://woosuite.com/plugins/woocommerce-variation-swatches/
5
  * Description: Creates variation swatches for WooCommerce, converts your variation dropdown into color, label, or photo swatches with ease, The original Variation Swatches for WooCommerce.
6
- * Version: 2.1.5
7
  * Author: Woosuite
8
  * Author URI: https://woosuite.com/
9
  * Requires at least: 4.5
10
- * Tested up to: 5.9.2
11
  * Text Domain: wcvs
12
  * Domain Path: /languages
13
  * WC requires at least: 3.0.0
14
- * WC tested up to: 6.3.1
15
  *
16
  * License: GPLv2 or later
17
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -27,7 +27,7 @@ if ( ! defined( 'TAWC_VS_PLUGIN_FILE' ) ) {
27
  }
28
 
29
  if ( ! defined( 'WCVS_PLUGIN_VERSION' ) ) {
30
- define( 'WCVS_PLUGIN_VERSION', '2.1.5' );
31
  }
32
 
33
  if ( ! defined( 'WCVS_PLUGIN_URL' ) ) {
3
  * Plugin Name: Variation Swatches for WooCommerce
4
  * Plugin URI: https://woosuite.com/plugins/woocommerce-variation-swatches/
5
  * Description: Creates variation swatches for WooCommerce, converts your variation dropdown into color, label, or photo swatches with ease, The original Variation Swatches for WooCommerce.
6
+ * Version: 2.1.6
7
  * Author: Woosuite
8
  * Author URI: https://woosuite.com/
9
  * Requires at least: 4.5
10
+ * Tested up to: 6.0
11
  * Text Domain: wcvs
12
  * Domain Path: /languages
13
  * WC requires at least: 3.0.0
14
+ * WC tested up to: 6.6.1
15
  *
16
  * License: GPLv2 or later
17
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
27
  }
28
 
29
  if ( ! defined( 'WCVS_PLUGIN_VERSION' ) ) {
30
+ define( 'WCVS_PLUGIN_VERSION', '2.1.6' );
31
  }
32
 
33
  if ( ! defined( 'WCVS_PLUGIN_URL' ) ) {