Changeset 2821139
- Timestamp:
- 11/20/2022 01:07:37 PM (3 years ago)
- Location:
- wc-variation-swatches
- Files:
-
- 29 edited
- 1 copied
-
assets/banner-1544X500.png (modified) (1 prop) (previous)
-
assets/banner-772x250.png (modified) (1 prop) (previous)
-
assets/icon-128x128.png (modified) (1 prop) (previous)
-
assets/icon-266x256.png (modified) (1 prop) (previous)
-
assets/screenshot-1.png (modified) (1 prop) (previous)
-
assets/screenshot-11.png (modified) (1 prop) (previous)
-
assets/screenshot-12.png (modified) (1 prop) (previous)
-
assets/screenshot-2.png (modified) (1 prop) (previous)
-
assets/screenshot-3.png (modified) (1 prop) (previous)
-
assets/screenshot-4.png (modified) (1 prop) (previous)
-
assets/screenshot-5.png (modified) (1 prop) (previous)
-
assets/screenshot-6.png (modified) (1 prop) (previous)
-
assets/screenshot-7.png (modified) (1 prop) (previous)
-
assets/screenshot-8.png (modified) (1 prop) (previous)
-
assets/screenshot-9.png (modified) (1 prop) (previous)
-
tags/1.0.4 (copied) (copied from wc-variation-swatches/trunk)
-
tags/1.0.4/assets/css/admin.css (modified) (1 diff)
-
tags/1.0.4/assets/css/frontend.css (modified) (1 diff)
-
tags/1.0.4/assets/js/admin.min.js (modified) (1 diff)
-
tags/1.0.4/assets/js/frontend.min.js (modified) (1 diff)
-
tags/1.0.4/i18n/languages/wc-variation-swatches.pot (modified) (3 diffs)
-
tags/1.0.4/readme.txt (modified) (7 diffs)
-
tags/1.0.4/wc-variation-swatches.php (modified) (3 diffs)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/css/frontend.css (modified) (1 diff)
-
trunk/assets/js/admin.min.js (modified) (1 diff)
-
trunk/assets/js/frontend.min.js (modified) (1 diff)
-
trunk/i18n/languages/wc-variation-swatches.pot (modified) (3 diffs)
-
trunk/readme.txt (modified) (7 diffs)
-
trunk/wc-variation-swatches.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-variation-swatches/assets/banner-1544X500.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/banner-772x250.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/icon-128x128.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/icon-266x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-1.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-11.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-12.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-2.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-3.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-4.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-5.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-6.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-7.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-8.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/assets/screenshot-9.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
wc-variation-swatches/tags/1.0.4/assets/css/admin.css
r2791435 r2821139 1 .wc-variation-swatches-preview{width:60px;height:60px;text-align:center;font-weight:700;border:1px solid #ccc;display: flex;align-items:center;justify-content:center}.wc-variation-swatches-button-container{display:flex;align-items:center;height:60px}.ever-settings-content .iris-picker.iris-border{min-width:260px;min-height:240px}.border_heading,.shape_style_heading,.tooltip_heading{display:flex;flex-flow:column;margin-bottom:15px!important}.border_heading td,.border_heading th,.shape_style_heading td,.shape_style_heading th,.tooltip_heading td,.tooltip_heading th{padding:0!important}.border_heading label,.shape_style_heading label,.tooltip_heading label{font-size:18px}.border_heading h2,.shape_style_heading h2,.tooltip_heading h2{width:50%!important;position:absolute;padding:5px!important}1 .wc-variation-swatches-preview{width:60px;height:60px;text-align:center;font-weight:700;border:1px solid #ccc;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.wc-variation-swatches-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:60px}.ever-settings-content .iris-picker.iris-border{min-width:260px;min-height:240px}.border_heading,.shape_style_heading,.tooltip_heading{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;margin-bottom:15px!important}.border_heading td,.border_heading th,.shape_style_heading td,.shape_style_heading th,.tooltip_heading td,.tooltip_heading th{padding:0!important}.border_heading label,.shape_style_heading label,.tooltip_heading label{font-size:18px}.border_heading h2,.shape_style_heading h2,.tooltip_heading h2{width:50%!important;position:absolute;padding:5px!important} -
wc-variation-swatches/tags/1.0.4/assets/css/frontend.css
r2791435 r2821139 1 .hidden{display:none!important}.round-box,.square-box{text-align:center;display:inline-block;position:relative;margin-right:10px;padding:5px;z-index:1;cursor:pointer;opacity:.6}.round-box:hover .wcvs-color-tooltip,.square-box:hover .wcvs-color-tooltip{visibility:visible;opacity:1}.round-box .variation_check,.square-box .variation_check{background-size:contain!important;display: flex;justify-content:center;align-items:center}.round-box{border-radius:50%}.round-box .variation_check{border-radius:50%}.wcvs-color-tooltip{visibility:hidden;width:120px;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:125%;left:50%;margin-left:-60px;opacity:0;transition:opacity .3s}.wcvs-color-tooltip:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.selected{opacity:1}.wc-ever-swatches .swatch-hide{visibility:hidden!important}.wc-ever-swatches .variation_check.disabled.with_cross:before{content:"";transform:rotate(45deg)}.wc-ever-swatches .variation_check.disabled.with_cross:after{content:"";transform:rotate(-45deg)}.wc-ever-swatches .variation_check.disabled.with_cross:after,.wc-ever-swatches .variation_check.disabled.with_cross:before{position:absolute;content:"";width:100%;height:2px;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;transform-origin:center;z-index:0}.wc-ever-swatches .variation_check.disabled.without_cross{filter:blur(3px)}.wc-ever-swatches>.wcvs-swatch-label{padding:8px;float:left}.swatch_wrapper{display:inline-flex;flex-flow:column;align-items:center}1 .hidden{display:none!important}.round-box,.square-box{text-align:center;display:inline-block;position:relative;margin-right:10px;padding:5px;z-index:1;cursor:pointer;opacity:.6}.round-box:hover .wcvs-color-tooltip,.square-box:hover .wcvs-color-tooltip{visibility:visible;opacity:1}.round-box .variation_check,.square-box .variation_check{background-size:contain!important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.round-box{border-radius:50%}.round-box .variation_check{border-radius:50%}.wcvs-color-tooltip{visibility:hidden;width:120px;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:125%;left:50%;margin-left:-60px;opacity:0;transition:opacity .3s}.wcvs-color-tooltip:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.selected{opacity:1}.wc-ever-swatches .swatch-hide{visibility:hidden!important}.wc-ever-swatches .variation_check.disabled.with_cross:before{content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.wc-ever-swatches .variation_check.disabled.with_cross:after{content:"";-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.wc-ever-swatches .variation_check.disabled.with_cross:after,.wc-ever-swatches .variation_check.disabled.with_cross:before{position:absolute;content:"";width:100%;height:2px;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}.wc-ever-swatches .variation_check.disabled.without_cross{-webkit-filter:blur(3px);filter:blur(3px)}.wc-ever-swatches>.wcvs-swatch-label{padding:8px;float:left}.swatch_wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center} -
wc-variation-swatches/tags/1.0.4/assets/js/admin.min.js
r2179043 r2821139 1 !function(e, i,a,t){"use strict";var s={initialize:function(){a("#term-color").wpColorPicker(),a(i).on("click",".wc-variation-swatches-upload-image",s.handle_term_image_upload),a(i).on("click",".wc-variation-swatches-remove-image",s.remove_term_image),s.settings_display(),a(i).on("click",".enable_stylesheet_check input[type=checkbox]",s.settings_display)},settings_display:function(){var e=a(".enable_stylesheet_check");a(".enable_stylesheet_check input[type=checkbox]").is(":checked")?e.nextAll().show(300):e.nextAll().hide(300)},handle_term_image_upload:function(e){e.preventDefault();var i,t=a(this);i||(i=wp.media.frames.downloadable_file=wp.media({title:"Choose an image",button:{text:"Use image"},multiple:!1})).on("select",function(){var e=i.state().get("selection").first().toJSON();t.siblings(".wc-variation-swatches-term-image").val(e.id),t.siblings(".wc-variation-swatches-remove-image").show(),t.parent().prev(".wc-variation-swatches-preview").find("img").attr("src",e.sizes.full.url)}),i.open()},remove_term_image:function(e){e.preventDefault();var i=a(this);i.siblings(".wc-variation-swatches-term-image").attr("value",""),i.parent().prev(".wc-variation-swatches-preview").find("img").attr("src",wpwvs.placeholder_img),i.hide()}};a(i).ready(s.initialize)}(window,document,jQuery);1 !function(e,a){"use strict";var i={initialize:function(){a("#term-color").wpColorPicker(),a(e).on("click",".wc-variation-swatches-upload-image",i.handle_term_image_upload),a(e).on("click",".wc-variation-swatches-remove-image",i.remove_term_image),i.settings_display(),a(e).on("click",".enable_stylesheet_check input[type=checkbox]",i.settings_display)},settings_display:function(){var e=a(".enable_stylesheet_check");a(".enable_stylesheet_check input[type=checkbox]").is(":checked")?e.nextAll().show(300):e.nextAll().hide(300)},handle_term_image_upload:function(e){e.preventDefault();var i=a(this),t=wp.media.frames.downloadable_file=wp.media({title:"Choose an image",button:{text:"Use image"},multiple:!1});t.on("select",function(){var e=t.state().get("selection").first().toJSON();i.siblings(".wc-variation-swatches-term-image").val(e.id),i.siblings(".wc-variation-swatches-remove-image").show(),i.parent().prev(".wc-variation-swatches-preview").find("img").attr("src",e.sizes.full.url)}),t.open()},remove_term_image:function(e){e.preventDefault();e=a(this);e.siblings(".wc-variation-swatches-term-image").attr("value",""),e.parent().prev(".wc-variation-swatches-preview").find("img").attr("src",wpwvs.placeholder_img),e.hide()}};a(e).ready(i.initialize)}((window,document),jQuery); -
wc-variation-swatches/tags/1.0.4/assets/js/frontend.min.js
r2179043 r2821139 1 !function( c){"use strict";var o={initialize:function(){o.ever_variation_swatches_form(),o.variation_check(),c(document).on("click",".wcvs-swatch",o.handle_swatches),c(document).on("click",".reset_variations",o.reset_variations),c(document).on("ever_no_matching_variations",o.variation_nomatching)},ever_variation_swatches_form:function(){c(".variations_form").addClass("ever-swatches-role"),setTimeout(o.variation_check,1e3)},handle_swatches:function(e){var a=c(".variations_form"),t=[];e.preventDefault();var i=c(this),n=i.parent().parent().prev().find("select"),s=i.parent().parent().attr("data-attribute_name"),r=i.attr("data-value");if(n.trigger("focusin"),!n.find("option[value='"+r+"']").length)return i.siblings().removeClass("selected"),n.val("").change(),void a.trigger("ever_no_matching_variations",[i]);-1===t.indexOf(s)&&t.push(s),i.hasClass("selected")?(n.val(""),i.removeClass("selected"),delete t[t.indexOf(s)]):(i.addClass("selected").parent().siblings().children().removeClass("selected"),i.removeClass("swatch-hide").find(".variation_check").removeClass("disabled"),n.val(r)),n.change(),o.variation_check()},reset_variations:function(){c(this).closest(".variations_form").find(".wcvs-swatch.selected").removeClass("selected")},variation_nomatching:function(){window.alert(wc_add_to_cart_variation_params.i18n_no_matching_variations_text)},variation_check:function(){c(".wcvs-swatch").each(function(){var e=c(this),a=e.parent().parent().prev().find("select"),t=e.attr("data-value");a.find("option[value='"+t+"']").length?e.removeClass("swatch-hide").find(".variation_check").removeClass("disabled"):(e.find(".variation_check").addClass("disabled"),e.find(".variation_check").hasClass("hide")&&e.addClass("swatch-hide"))})}};c(document).ready(o.initialize)}(jQuery);1 !function(r){"use strict";var c={initialize:function(){c.ever_variation_swatches_form(),c.variation_check(),r(document).on("click",".wcvs-swatch",c.handle_swatches),r(document).on("click",".reset_variations",c.reset_variations),r(document).on("ever_no_matching_variations",c.variation_nomatching)},ever_variation_swatches_form:function(){r(".variations_form").addClass("ever-swatches-role"),setTimeout(c.variation_check,1e3)},handle_swatches:function(e){var a=r(".variations_form"),t=[],e=(e.preventDefault(),r(this)),i=e.parent().parent().prev().find("select"),n=e.parent().parent().attr("data-attribute_name"),s=e.attr("data-value");i.trigger("focusin"),i.find("option[value='"+s+"']").length?(-1===t.indexOf(n)&&t.push(n),e.hasClass("selected")?(i.val(""),e.removeClass("selected"),delete t[t.indexOf(n)]):(e.addClass("selected").parent().siblings().children().removeClass("selected"),e.removeClass("swatch-hide").find(".variation_check").removeClass("disabled"),i.val(s)),i.change(),c.variation_check()):(e.siblings().removeClass("selected"),i.val("").change(),a.trigger("ever_no_matching_variations",[e]))},reset_variations:function(){r(this).closest(".variations_form").find(".wcvs-swatch.selected").removeClass("selected")},variation_nomatching:function(){window.alert(wc_add_to_cart_variation_params.i18n_no_matching_variations_text)},variation_check:function(){r(".wcvs-swatch").each(function(){var e=r(this),a=e.parent().parent().prev().find("select"),t=e.attr("data-value");a.find("option[value='"+t+"']").length?e.removeClass("swatch-hide").find(".variation_check").removeClass("disabled"):(e.find(".variation_check").addClass("disabled"),e.find(".variation_check").hasClass("hide")&&e.addClass("swatch-hide"))})}};r(document).ready(c.initialize)}(jQuery); -
wc-variation-swatches/tags/1.0.4/i18n/languages/wc-variation-swatches.pot
r2791435 r2821139 1 # Copyright (C) 2022 pluginever1 # Copyright (C) 2022 PluginEver 2 2 # This file is distributed under the GPLv2+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Variation Swatches 1.0.3\n"5 "Project-Id-Version: Product Variation Swatches for WooCommerce 1.0.4\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/wc-variation-swatches\n" 8 "POT-Creation-Date: 2022- 01-27 06:25:03+00:00\n"8 "POT-Creation-Date: 2022-11-20 13:05:10+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 205 205 206 206 #. Plugin Name of the plugin/theme 207 msgid " WooCommerce Variation Swatches"207 msgid "Product Variation Swatches for WooCommerce" 208 208 msgstr "" 209 209 … … 217 217 218 218 #. Author of the plugin/theme 219 msgid " pluginever"219 msgid "PluginEver" 220 220 msgstr "" 221 221 -
wc-variation-swatches/tags/1.0.4/readme.txt
r2791435 r2821139 1 === WooCommerce Variation Swatches===2 Contributors: manikmist093 Tags: woocommerce variation swatches, woocommerce variation, woocommerce, variation swatches, product attributes, color variation swatch, image variation swatch,, product color, product size, variable product attribute1 === Product Variation Swatches for WooCommerce === 2 Contributors: pluginever, manikmist09 3 Tags: Product Variation Swatches for WooCommerce, woocommerce variation, woocommerce, variation swatches, product attributes, color variation swatch, image variation swatch,, product color, product size, variable product attribute 4 4 Requires at least: 4.4 5 Tested up to: 6. 0.25 Tested up to: 6.1 6 6 Requires PHP: 5.6 7 7 Stable tag: trunk … … 10 10 11 11 == Description == 12 WooCommerce Variation Swatchesis an exciting WooCommerce extension that allows you to display product variations with nice color, image and text/label swatches for your variable products.12 Product Variation Swatches for WooCommerce is an exciting WooCommerce extension that allows you to display product variations with nice color, image and text/label swatches for your variable products. 13 13 14 WooCommerce Variation Swatcheswill allow you to change the default dropdown fields for variable products offered by WooCommerce. You must acknowledge that your store visitors prefer a graphical or visual representation of various product attributes. Visual representation also helps to promote a professional and polished look of your store.14 Product Variation Swatches for WooCommerce will allow you to change the default dropdown fields for variable products offered by WooCommerce. You must acknowledge that your store visitors prefer a graphical or visual representation of various product attributes. Visual representation also helps to promote a professional and polished look of your store. 15 15 16 With WooCommerce Variation Swatchesyou can add exciting and descriptive visual looks for your variable products with just a few simple steps. The exciting swatches will give your store visitors an impressive experience and turn visitors into customers.16 With Product Variation Swatches for WooCommerce you can add exciting and descriptive visual looks for your variable products with just a few simple steps. The exciting swatches will give your store visitors an impressive experience and turn visitors into customers. 17 17 18 == WooCommerce Variation SwatchesFeatures: ==18 == Product Variation Swatches for WooCommerce Features: == 19 19 * Change the default WooCommerce dropdown to exciting clickable swatches. 20 20 * Add color swatches for color attributes. … … 30 30 * Ability to enable or disable border style for swatches with custom color. 31 31 32 == How will WooCommerce Variation Swatchesbenefit you: ==32 == How will Product Variation Swatches for WooCommerce benefit you: == 33 33 * Flexible customization options to illustrate your taste and best store appearance. 34 34 * Get an exciting look for the product page of variable products. … … 38 38 39 39 == Installation: == 40 Installing WooCommerce Variation Swatchesis conventional like most WordPress plugin installation. There should not be any problem for you.41 The only requirement for before you install WooCommerce Variation Swatchesis that you must have WooCommerce installed and activated in your store. As the plugin works on WooCommerce products you will get a warning if WooCommerce is missing. To be on the safe side please make sure you have WooCommerce (minimum version 3.00) installed and activated.40 Installing Product Variation Swatches for WooCommerce is conventional like most WordPress plugin installation. There should not be any problem for you. 41 The only requirement for before you install Product Variation Swatches for WooCommerce is that you must have WooCommerce installed and activated in your store. As the plugin works on WooCommerce products you will get a warning if WooCommerce is missing. To be on the safe side please make sure you have WooCommerce (minimum version 3.00) installed and activated. 42 42 43 == How does WooCommerce Variation SwatchesWork: ==44 You can get started with WooCommerce Variation Swatchesin just a few steps. First of all, go to the "Attributes" section under WooCommerce "Product" menu. You will find some default attributes that already exist there. Delete the existing attributes from there. Now add new attributes from the "Add new attribute" option. Select the type from the dropdown option and then finally add them. There are three different "types" {Color, Image & Label} that you can choose.43 == How does Product Variation Swatches for WooCommerce Work: == 44 You can get started with Product Variation Swatches for WooCommerce in just a few steps. First of all, go to the "Attributes" section under WooCommerce "Product" menu. You will find some default attributes that already exist there. Delete the existing attributes from there. Now add new attributes from the "Add new attribute" option. Select the type from the dropdown option and then finally add them. There are three different "types" {Color, Image & Label} that you can choose. 45 45 46 46 Now you have to configure terms for those attributes. Under the color attribute, you can add different color names and choose a color for them from the color picker. For the images, you have to upload images and give them proper term names. You can also use existing images here. Finally, for the label attribute choose a name and any number of characters for the swatch terms. You can add or modify the terms at any time you want. … … 54 54 55 55 == Compatibility: == 56 WooCommerce Variation Swatchesrequires WooCommerce and the minimum required version is 3.00. Apart from that, it is compatible with all WooCommerce themes. Though we did not experience any problem but there can be issues as WordPress and WooCommerce host a huge number of themes and plugins.56 Product Variation Swatches for WooCommerce requires WooCommerce and the minimum required version is 3.00. Apart from that, it is compatible with all WooCommerce themes. Though we did not experience any problem but there can be issues as WordPress and WooCommerce host a huge number of themes and plugins. 57 57 58 58 … … 64 64 65 65 == Frequently asked questions == 66 = How will WooCommerce Variation Swatchesadd value to my store? =66 = How will Product Variation Swatches for WooCommerce add value to my store? = 67 67 The decorative swatches will enhance your visual representation of variable products with easy to select options. 68 68 … … 84 84 85 85 == Changelog == 86 = 1.0.4 (20 Nov, 2022) = 87 * Fix - Compatibility with WP v6.1 88 * Fix - Compatibility with WC v7.1 89 86 90 = 1.0.3 (28 Sept, 2022) = 87 91 * Fix - Compatibility with WP v6.0.2 -
wc-variation-swatches/tags/1.0.4/wc-variation-swatches.php
r2791435 r2821139 1 1 <?php 2 2 /** 3 * Plugin Name: WooCommerce Variation Swatches3 * Plugin Name: Product Variation Swatches for WooCommerce 4 4 * Plugin URI: https://www.pluginever.com 5 5 * Description: Provides a much nicer way to display variations of variable products! 6 * Version: 1.0. 37 * Author: pluginever6 * Version: 1.0.4 7 * Author: PluginEver 8 8 * Author URI: https://manik.me 9 9 * Donate link: https://www.pluginever.com … … 11 11 * Text Domain: wc-variation-swatches 12 12 * Domain Path: /i18n/languages/ 13 * Tested up to: 6. 0.213 * Tested up to: 6.1 14 14 * WC requires at least: 3.0.0 15 * WC tested up to: 6.9.415 * WC tested up to: 7.1 16 16 */ 17 17 … … 55 55 * @var string 56 56 */ 57 public $version = '1.0. 3';57 public $version = '1.0.4'; 58 58 59 59 /** -
wc-variation-swatches/trunk/assets/css/admin.css
r2791435 r2821139 1 .wc-variation-swatches-preview{width:60px;height:60px;text-align:center;font-weight:700;border:1px solid #ccc;display: flex;align-items:center;justify-content:center}.wc-variation-swatches-button-container{display:flex;align-items:center;height:60px}.ever-settings-content .iris-picker.iris-border{min-width:260px;min-height:240px}.border_heading,.shape_style_heading,.tooltip_heading{display:flex;flex-flow:column;margin-bottom:15px!important}.border_heading td,.border_heading th,.shape_style_heading td,.shape_style_heading th,.tooltip_heading td,.tooltip_heading th{padding:0!important}.border_heading label,.shape_style_heading label,.tooltip_heading label{font-size:18px}.border_heading h2,.shape_style_heading h2,.tooltip_heading h2{width:50%!important;position:absolute;padding:5px!important}1 .wc-variation-swatches-preview{width:60px;height:60px;text-align:center;font-weight:700;border:1px solid #ccc;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.wc-variation-swatches-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:60px}.ever-settings-content .iris-picker.iris-border{min-width:260px;min-height:240px}.border_heading,.shape_style_heading,.tooltip_heading{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;margin-bottom:15px!important}.border_heading td,.border_heading th,.shape_style_heading td,.shape_style_heading th,.tooltip_heading td,.tooltip_heading th{padding:0!important}.border_heading label,.shape_style_heading label,.tooltip_heading label{font-size:18px}.border_heading h2,.shape_style_heading h2,.tooltip_heading h2{width:50%!important;position:absolute;padding:5px!important} -
wc-variation-swatches/trunk/assets/css/frontend.css
r2791435 r2821139 1 .hidden{display:none!important}.round-box,.square-box{text-align:center;display:inline-block;position:relative;margin-right:10px;padding:5px;z-index:1;cursor:pointer;opacity:.6}.round-box:hover .wcvs-color-tooltip,.square-box:hover .wcvs-color-tooltip{visibility:visible;opacity:1}.round-box .variation_check,.square-box .variation_check{background-size:contain!important;display: flex;justify-content:center;align-items:center}.round-box{border-radius:50%}.round-box .variation_check{border-radius:50%}.wcvs-color-tooltip{visibility:hidden;width:120px;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:125%;left:50%;margin-left:-60px;opacity:0;transition:opacity .3s}.wcvs-color-tooltip:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.selected{opacity:1}.wc-ever-swatches .swatch-hide{visibility:hidden!important}.wc-ever-swatches .variation_check.disabled.with_cross:before{content:"";transform:rotate(45deg)}.wc-ever-swatches .variation_check.disabled.with_cross:after{content:"";transform:rotate(-45deg)}.wc-ever-swatches .variation_check.disabled.with_cross:after,.wc-ever-swatches .variation_check.disabled.with_cross:before{position:absolute;content:"";width:100%;height:2px;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;transform-origin:center;z-index:0}.wc-ever-swatches .variation_check.disabled.without_cross{filter:blur(3px)}.wc-ever-swatches>.wcvs-swatch-label{padding:8px;float:left}.swatch_wrapper{display:inline-flex;flex-flow:column;align-items:center}1 .hidden{display:none!important}.round-box,.square-box{text-align:center;display:inline-block;position:relative;margin-right:10px;padding:5px;z-index:1;cursor:pointer;opacity:.6}.round-box:hover .wcvs-color-tooltip,.square-box:hover .wcvs-color-tooltip{visibility:visible;opacity:1}.round-box .variation_check,.square-box .variation_check{background-size:contain!important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.round-box{border-radius:50%}.round-box .variation_check{border-radius:50%}.wcvs-color-tooltip{visibility:hidden;width:120px;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:125%;left:50%;margin-left:-60px;opacity:0;transition:opacity .3s}.wcvs-color-tooltip:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.selected{opacity:1}.wc-ever-swatches .swatch-hide{visibility:hidden!important}.wc-ever-swatches .variation_check.disabled.with_cross:before{content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.wc-ever-swatches .variation_check.disabled.with_cross:after{content:"";-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.wc-ever-swatches .variation_check.disabled.with_cross:after,.wc-ever-swatches .variation_check.disabled.with_cross:before{position:absolute;content:"";width:100%;height:2px;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}.wc-ever-swatches .variation_check.disabled.without_cross{-webkit-filter:blur(3px);filter:blur(3px)}.wc-ever-swatches>.wcvs-swatch-label{padding:8px;float:left}.swatch_wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-align:center;align-items:center} -
wc-variation-swatches/trunk/assets/js/admin.min.js
r2179043 r2821139 1 !function(e, i,a,t){"use strict";var s={initialize:function(){a("#term-color").wpColorPicker(),a(i).on("click",".wc-variation-swatches-upload-image",s.handle_term_image_upload),a(i).on("click",".wc-variation-swatches-remove-image",s.remove_term_image),s.settings_display(),a(i).on("click",".enable_stylesheet_check input[type=checkbox]",s.settings_display)},settings_display:function(){var e=a(".enable_stylesheet_check");a(".enable_stylesheet_check input[type=checkbox]").is(":checked")?e.nextAll().show(300):e.nextAll().hide(300)},handle_term_image_upload:function(e){e.preventDefault();var i,t=a(this);i||(i=wp.media.frames.downloadable_file=wp.media({title:"Choose an image",button:{text:"Use image"},multiple:!1})).on("select",function(){var e=i.state().get("selection").first().toJSON();t.siblings(".wc-variation-swatches-term-image").val(e.id),t.siblings(".wc-variation-swatches-remove-image").show(),t.parent().prev(".wc-variation-swatches-preview").find("img").attr("src",e.sizes.full.url)}),i.open()},remove_term_image:function(e){e.preventDefault();var i=a(this);i.siblings(".wc-variation-swatches-term-image").attr("value",""),i.parent().prev(".wc-variation-swatches-preview").find("img").attr("src",wpwvs.placeholder_img),i.hide()}};a(i).ready(s.initialize)}(window,document,jQuery);1 !function(e,a){"use strict";var i={initialize:function(){a("#term-color").wpColorPicker(),a(e).on("click",".wc-variation-swatches-upload-image",i.handle_term_image_upload),a(e).on("click",".wc-variation-swatches-remove-image",i.remove_term_image),i.settings_display(),a(e).on("click",".enable_stylesheet_check input[type=checkbox]",i.settings_display)},settings_display:function(){var e=a(".enable_stylesheet_check");a(".enable_stylesheet_check input[type=checkbox]").is(":checked")?e.nextAll().show(300):e.nextAll().hide(300)},handle_term_image_upload:function(e){e.preventDefault();var i=a(this),t=wp.media.frames.downloadable_file=wp.media({title:"Choose an image",button:{text:"Use image"},multiple:!1});t.on("select",function(){var e=t.state().get("selection").first().toJSON();i.siblings(".wc-variation-swatches-term-image").val(e.id),i.siblings(".wc-variation-swatches-remove-image").show(),i.parent().prev(".wc-variation-swatches-preview").find("img").attr("src",e.sizes.full.url)}),t.open()},remove_term_image:function(e){e.preventDefault();e=a(this);e.siblings(".wc-variation-swatches-term-image").attr("value",""),e.parent().prev(".wc-variation-swatches-preview").find("img").attr("src",wpwvs.placeholder_img),e.hide()}};a(e).ready(i.initialize)}((window,document),jQuery); -
wc-variation-swatches/trunk/assets/js/frontend.min.js
r2179043 r2821139 1 !function( c){"use strict";var o={initialize:function(){o.ever_variation_swatches_form(),o.variation_check(),c(document).on("click",".wcvs-swatch",o.handle_swatches),c(document).on("click",".reset_variations",o.reset_variations),c(document).on("ever_no_matching_variations",o.variation_nomatching)},ever_variation_swatches_form:function(){c(".variations_form").addClass("ever-swatches-role"),setTimeout(o.variation_check,1e3)},handle_swatches:function(e){var a=c(".variations_form"),t=[];e.preventDefault();var i=c(this),n=i.parent().parent().prev().find("select"),s=i.parent().parent().attr("data-attribute_name"),r=i.attr("data-value");if(n.trigger("focusin"),!n.find("option[value='"+r+"']").length)return i.siblings().removeClass("selected"),n.val("").change(),void a.trigger("ever_no_matching_variations",[i]);-1===t.indexOf(s)&&t.push(s),i.hasClass("selected")?(n.val(""),i.removeClass("selected"),delete t[t.indexOf(s)]):(i.addClass("selected").parent().siblings().children().removeClass("selected"),i.removeClass("swatch-hide").find(".variation_check").removeClass("disabled"),n.val(r)),n.change(),o.variation_check()},reset_variations:function(){c(this).closest(".variations_form").find(".wcvs-swatch.selected").removeClass("selected")},variation_nomatching:function(){window.alert(wc_add_to_cart_variation_params.i18n_no_matching_variations_text)},variation_check:function(){c(".wcvs-swatch").each(function(){var e=c(this),a=e.parent().parent().prev().find("select"),t=e.attr("data-value");a.find("option[value='"+t+"']").length?e.removeClass("swatch-hide").find(".variation_check").removeClass("disabled"):(e.find(".variation_check").addClass("disabled"),e.find(".variation_check").hasClass("hide")&&e.addClass("swatch-hide"))})}};c(document).ready(o.initialize)}(jQuery);1 !function(r){"use strict";var c={initialize:function(){c.ever_variation_swatches_form(),c.variation_check(),r(document).on("click",".wcvs-swatch",c.handle_swatches),r(document).on("click",".reset_variations",c.reset_variations),r(document).on("ever_no_matching_variations",c.variation_nomatching)},ever_variation_swatches_form:function(){r(".variations_form").addClass("ever-swatches-role"),setTimeout(c.variation_check,1e3)},handle_swatches:function(e){var a=r(".variations_form"),t=[],e=(e.preventDefault(),r(this)),i=e.parent().parent().prev().find("select"),n=e.parent().parent().attr("data-attribute_name"),s=e.attr("data-value");i.trigger("focusin"),i.find("option[value='"+s+"']").length?(-1===t.indexOf(n)&&t.push(n),e.hasClass("selected")?(i.val(""),e.removeClass("selected"),delete t[t.indexOf(n)]):(e.addClass("selected").parent().siblings().children().removeClass("selected"),e.removeClass("swatch-hide").find(".variation_check").removeClass("disabled"),i.val(s)),i.change(),c.variation_check()):(e.siblings().removeClass("selected"),i.val("").change(),a.trigger("ever_no_matching_variations",[e]))},reset_variations:function(){r(this).closest(".variations_form").find(".wcvs-swatch.selected").removeClass("selected")},variation_nomatching:function(){window.alert(wc_add_to_cart_variation_params.i18n_no_matching_variations_text)},variation_check:function(){r(".wcvs-swatch").each(function(){var e=r(this),a=e.parent().parent().prev().find("select"),t=e.attr("data-value");a.find("option[value='"+t+"']").length?e.removeClass("swatch-hide").find(".variation_check").removeClass("disabled"):(e.find(".variation_check").addClass("disabled"),e.find(".variation_check").hasClass("hide")&&e.addClass("swatch-hide"))})}};r(document).ready(c.initialize)}(jQuery); -
wc-variation-swatches/trunk/i18n/languages/wc-variation-swatches.pot
r2791435 r2821139 1 # Copyright (C) 2022 pluginever1 # Copyright (C) 2022 PluginEver 2 2 # This file is distributed under the GPLv2+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce Variation Swatches 1.0.3\n"5 "Project-Id-Version: Product Variation Swatches for WooCommerce 1.0.4\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/wc-variation-swatches\n" 8 "POT-Creation-Date: 2022- 01-27 06:25:03+00:00\n"8 "POT-Creation-Date: 2022-11-20 13:05:10+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 205 205 206 206 #. Plugin Name of the plugin/theme 207 msgid " WooCommerce Variation Swatches"207 msgid "Product Variation Swatches for WooCommerce" 208 208 msgstr "" 209 209 … … 217 217 218 218 #. Author of the plugin/theme 219 msgid " pluginever"219 msgid "PluginEver" 220 220 msgstr "" 221 221 -
wc-variation-swatches/trunk/readme.txt
r2791435 r2821139 1 === WooCommerce Variation Swatches===2 Contributors: manikmist093 Tags: woocommerce variation swatches, woocommerce variation, woocommerce, variation swatches, product attributes, color variation swatch, image variation swatch,, product color, product size, variable product attribute1 === Product Variation Swatches for WooCommerce === 2 Contributors: pluginever, manikmist09 3 Tags: Product Variation Swatches for WooCommerce, woocommerce variation, woocommerce, variation swatches, product attributes, color variation swatch, image variation swatch,, product color, product size, variable product attribute 4 4 Requires at least: 4.4 5 Tested up to: 6. 0.25 Tested up to: 6.1 6 6 Requires PHP: 5.6 7 7 Stable tag: trunk … … 10 10 11 11 == Description == 12 WooCommerce Variation Swatchesis an exciting WooCommerce extension that allows you to display product variations with nice color, image and text/label swatches for your variable products.12 Product Variation Swatches for WooCommerce is an exciting WooCommerce extension that allows you to display product variations with nice color, image and text/label swatches for your variable products. 13 13 14 WooCommerce Variation Swatcheswill allow you to change the default dropdown fields for variable products offered by WooCommerce. You must acknowledge that your store visitors prefer a graphical or visual representation of various product attributes. Visual representation also helps to promote a professional and polished look of your store.14 Product Variation Swatches for WooCommerce will allow you to change the default dropdown fields for variable products offered by WooCommerce. You must acknowledge that your store visitors prefer a graphical or visual representation of various product attributes. Visual representation also helps to promote a professional and polished look of your store. 15 15 16 With WooCommerce Variation Swatchesyou can add exciting and descriptive visual looks for your variable products with just a few simple steps. The exciting swatches will give your store visitors an impressive experience and turn visitors into customers.16 With Product Variation Swatches for WooCommerce you can add exciting and descriptive visual looks for your variable products with just a few simple steps. The exciting swatches will give your store visitors an impressive experience and turn visitors into customers. 17 17 18 == WooCommerce Variation SwatchesFeatures: ==18 == Product Variation Swatches for WooCommerce Features: == 19 19 * Change the default WooCommerce dropdown to exciting clickable swatches. 20 20 * Add color swatches for color attributes. … … 30 30 * Ability to enable or disable border style for swatches with custom color. 31 31 32 == How will WooCommerce Variation Swatchesbenefit you: ==32 == How will Product Variation Swatches for WooCommerce benefit you: == 33 33 * Flexible customization options to illustrate your taste and best store appearance. 34 34 * Get an exciting look for the product page of variable products. … … 38 38 39 39 == Installation: == 40 Installing WooCommerce Variation Swatchesis conventional like most WordPress plugin installation. There should not be any problem for you.41 The only requirement for before you install WooCommerce Variation Swatchesis that you must have WooCommerce installed and activated in your store. As the plugin works on WooCommerce products you will get a warning if WooCommerce is missing. To be on the safe side please make sure you have WooCommerce (minimum version 3.00) installed and activated.40 Installing Product Variation Swatches for WooCommerce is conventional like most WordPress plugin installation. There should not be any problem for you. 41 The only requirement for before you install Product Variation Swatches for WooCommerce is that you must have WooCommerce installed and activated in your store. As the plugin works on WooCommerce products you will get a warning if WooCommerce is missing. To be on the safe side please make sure you have WooCommerce (minimum version 3.00) installed and activated. 42 42 43 == How does WooCommerce Variation SwatchesWork: ==44 You can get started with WooCommerce Variation Swatchesin just a few steps. First of all, go to the "Attributes" section under WooCommerce "Product" menu. You will find some default attributes that already exist there. Delete the existing attributes from there. Now add new attributes from the "Add new attribute" option. Select the type from the dropdown option and then finally add them. There are three different "types" {Color, Image & Label} that you can choose.43 == How does Product Variation Swatches for WooCommerce Work: == 44 You can get started with Product Variation Swatches for WooCommerce in just a few steps. First of all, go to the "Attributes" section under WooCommerce "Product" menu. You will find some default attributes that already exist there. Delete the existing attributes from there. Now add new attributes from the "Add new attribute" option. Select the type from the dropdown option and then finally add them. There are three different "types" {Color, Image & Label} that you can choose. 45 45 46 46 Now you have to configure terms for those attributes. Under the color attribute, you can add different color names and choose a color for them from the color picker. For the images, you have to upload images and give them proper term names. You can also use existing images here. Finally, for the label attribute choose a name and any number of characters for the swatch terms. You can add or modify the terms at any time you want. … … 54 54 55 55 == Compatibility: == 56 WooCommerce Variation Swatchesrequires WooCommerce and the minimum required version is 3.00. Apart from that, it is compatible with all WooCommerce themes. Though we did not experience any problem but there can be issues as WordPress and WooCommerce host a huge number of themes and plugins.56 Product Variation Swatches for WooCommerce requires WooCommerce and the minimum required version is 3.00. Apart from that, it is compatible with all WooCommerce themes. Though we did not experience any problem but there can be issues as WordPress and WooCommerce host a huge number of themes and plugins. 57 57 58 58 … … 64 64 65 65 == Frequently asked questions == 66 = How will WooCommerce Variation Swatchesadd value to my store? =66 = How will Product Variation Swatches for WooCommerce add value to my store? = 67 67 The decorative swatches will enhance your visual representation of variable products with easy to select options. 68 68 … … 84 84 85 85 == Changelog == 86 = 1.0.4 (20 Nov, 2022) = 87 * Fix - Compatibility with WP v6.1 88 * Fix - Compatibility with WC v7.1 89 86 90 = 1.0.3 (28 Sept, 2022) = 87 91 * Fix - Compatibility with WP v6.0.2 -
wc-variation-swatches/trunk/wc-variation-swatches.php
r2791435 r2821139 1 1 <?php 2 2 /** 3 * Plugin Name: WooCommerce Variation Swatches3 * Plugin Name: Product Variation Swatches for WooCommerce 4 4 * Plugin URI: https://www.pluginever.com 5 5 * Description: Provides a much nicer way to display variations of variable products! 6 * Version: 1.0. 37 * Author: pluginever6 * Version: 1.0.4 7 * Author: PluginEver 8 8 * Author URI: https://manik.me 9 9 * Donate link: https://www.pluginever.com … … 11 11 * Text Domain: wc-variation-swatches 12 12 * Domain Path: /i18n/languages/ 13 * Tested up to: 6. 0.213 * Tested up to: 6.1 14 14 * WC requires at least: 3.0.0 15 * WC tested up to: 6.9.415 * WC tested up to: 7.1 16 16 */ 17 17 … … 55 55 * @var string 56 56 */ 57 public $version = '1.0. 3';57 public $version = '1.0.4'; 58 58 59 59 /**
Note: See TracChangeset
for help on using the changeset viewer.