Plugin Directory

Changeset 2821139


Ignore:
Timestamp:
11/20/2022 01:07:37 PM (3 years ago)
Author:
manikmist09
Message:

Release 1.0.4

Location:
wc-variation-swatches
Files:
29 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wc-variation-swatches/assets/banner-1544X500.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/icon-266x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-11.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-12.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-4.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-5.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-6.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-7.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-8.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • wc-variation-swatches/assets/screenshot-9.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • 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 pluginever
     1# Copyright (C) 2022 PluginEver
    22# This file is distributed under the GPLv2+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Variation Swatches 1.0.3\n"
     5"Project-Id-Version: Product Variation Swatches for WooCommerce 1.0.4\n"
    66"Report-Msgid-Bugs-To: "
    77"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"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    205205
    206206#. Plugin Name of the plugin/theme
    207 msgid "WooCommerce Variation Swatches"
     207msgid "Product Variation Swatches for WooCommerce"
    208208msgstr ""
    209209
     
    217217
    218218#. Author of the plugin/theme
    219 msgid "pluginever"
     219msgid "PluginEver"
    220220msgstr ""
    221221
  • wc-variation-swatches/tags/1.0.4/readme.txt

    r2791435 r2821139  
    1 === WooCommerce Variation Swatches ===
    2 Contributors: manikmist09
    3 Tags: woocommerce variation swatches, woocommerce variation, woocommerce, variation swatches, product attributes, color variation swatch, image variation swatch,, product color, product size, variable product attribute
     1=== Product Variation Swatches for WooCommerce ===
     2Contributors: pluginever, manikmist09
     3Tags: 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
    44Requires at least: 4.4
    5 Tested up to: 6.0.2
     5Tested up to: 6.1
    66Requires PHP: 5.6
    77Stable tag: trunk
     
    1010
    1111== Description ==
    12 WooCommerce Variation Swatches is an exciting WooCommerce extension that allows you to display product variations with nice color, image and text/label swatches for your variable products.
     12Product 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.
    1313
    14 WooCommerce Variation Swatches 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.
     14Product 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.
    1515
    16 With WooCommerce Variation Swatches 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.
     16With 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.
    1717
    18 == WooCommerce Variation Swatches Features: ==
     18== Product Variation Swatches for WooCommerce Features: ==
    1919* Change the default WooCommerce dropdown to exciting clickable swatches.
    2020* Add color swatches for color attributes.
     
    3030* Ability to enable or disable border style for swatches with custom color.
    3131
    32 == How will WooCommerce Variation Swatches benefit you: ==
     32== How will Product Variation Swatches for WooCommerce benefit you: ==
    3333* Flexible customization options to illustrate your taste and best store appearance.
    3434* Get an exciting look for the product page of variable products.
     
    3838
    3939== Installation: ==
    40 Installing WooCommerce Variation Swatches is conventional like most WordPress plugin installation. There should not be any problem for you.
    41 The only requirement for before you install WooCommerce Variation Swatches 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.
     40Installing Product Variation Swatches for WooCommerce is conventional like most WordPress plugin installation. There should not be any problem for you.
     41The 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.
    4242
    43 == How does WooCommerce Variation Swatches Work: ==
    44 You can get started with WooCommerce Variation Swatches 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.
     43== How does Product Variation Swatches for WooCommerce Work: ==
     44You 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.
    4545
    4646Now 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.
     
    5454
    5555== Compatibility: ==
    56 WooCommerce Variation Swatches 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.
     56Product 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.
    5757
    5858
     
    6464
    6565== Frequently asked questions ==
    66 = How will WooCommerce Variation Swatches add value to my store? =
     66= How will Product Variation Swatches for WooCommerce add value to my store? =
    6767The decorative swatches will enhance your visual representation of variable products with easy to select options.
    6868
     
    8484
    8585== Changelog ==
     86= 1.0.4 (20 Nov, 2022) =
     87* Fix - Compatibility with WP v6.1
     88* Fix - Compatibility with WC v7.1
     89
    8690= 1.0.3 (28 Sept, 2022) =
    8791* Fix - Compatibility with WP v6.0.2
  • wc-variation-swatches/tags/1.0.4/wc-variation-swatches.php

    r2791435 r2821139  
    11<?php
    22/**
    3  * Plugin Name: WooCommerce Variation Swatches
     3 * Plugin Name: Product Variation Swatches for WooCommerce
    44 * Plugin URI:  https://www.pluginever.com
    55 * Description: Provides a much nicer way to display variations of variable products!
    6  * Version:     1.0.3
    7  * Author:      pluginever
     6 * Version:     1.0.4
     7 * Author:      PluginEver
    88 * Author URI:  https://manik.me
    99 * Donate link: https://www.pluginever.com
     
    1111 * Text Domain: wc-variation-swatches
    1212 * Domain Path: /i18n/languages/
    13  * Tested up to: 6.0.2
     13 * Tested up to: 6.1
    1414 * WC requires at least: 3.0.0
    15  * WC tested up to: 6.9.4
     15 * WC tested up to: 7.1
    1616 */
    1717
     
    5555     * @var string
    5656     */
    57     public $version = '1.0.3';
     57    public $version = '1.0.4';
    5858
    5959    /**
  • 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 pluginever
     1# Copyright (C) 2022 PluginEver
    22# This file is distributed under the GPLv2+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Variation Swatches 1.0.3\n"
     5"Project-Id-Version: Product Variation Swatches for WooCommerce 1.0.4\n"
    66"Report-Msgid-Bugs-To: "
    77"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"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    205205
    206206#. Plugin Name of the plugin/theme
    207 msgid "WooCommerce Variation Swatches"
     207msgid "Product Variation Swatches for WooCommerce"
    208208msgstr ""
    209209
     
    217217
    218218#. Author of the plugin/theme
    219 msgid "pluginever"
     219msgid "PluginEver"
    220220msgstr ""
    221221
  • wc-variation-swatches/trunk/readme.txt

    r2791435 r2821139  
    1 === WooCommerce Variation Swatches ===
    2 Contributors: manikmist09
    3 Tags: woocommerce variation swatches, woocommerce variation, woocommerce, variation swatches, product attributes, color variation swatch, image variation swatch,, product color, product size, variable product attribute
     1=== Product Variation Swatches for WooCommerce ===
     2Contributors: pluginever, manikmist09
     3Tags: 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
    44Requires at least: 4.4
    5 Tested up to: 6.0.2
     5Tested up to: 6.1
    66Requires PHP: 5.6
    77Stable tag: trunk
     
    1010
    1111== Description ==
    12 WooCommerce Variation Swatches is an exciting WooCommerce extension that allows you to display product variations with nice color, image and text/label swatches for your variable products.
     12Product 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.
    1313
    14 WooCommerce Variation Swatches 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.
     14Product 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.
    1515
    16 With WooCommerce Variation Swatches 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.
     16With 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.
    1717
    18 == WooCommerce Variation Swatches Features: ==
     18== Product Variation Swatches for WooCommerce Features: ==
    1919* Change the default WooCommerce dropdown to exciting clickable swatches.
    2020* Add color swatches for color attributes.
     
    3030* Ability to enable or disable border style for swatches with custom color.
    3131
    32 == How will WooCommerce Variation Swatches benefit you: ==
     32== How will Product Variation Swatches for WooCommerce benefit you: ==
    3333* Flexible customization options to illustrate your taste and best store appearance.
    3434* Get an exciting look for the product page of variable products.
     
    3838
    3939== Installation: ==
    40 Installing WooCommerce Variation Swatches is conventional like most WordPress plugin installation. There should not be any problem for you.
    41 The only requirement for before you install WooCommerce Variation Swatches 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.
     40Installing Product Variation Swatches for WooCommerce is conventional like most WordPress plugin installation. There should not be any problem for you.
     41The 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.
    4242
    43 == How does WooCommerce Variation Swatches Work: ==
    44 You can get started with WooCommerce Variation Swatches 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.
     43== How does Product Variation Swatches for WooCommerce Work: ==
     44You 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.
    4545
    4646Now 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.
     
    5454
    5555== Compatibility: ==
    56 WooCommerce Variation Swatches 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.
     56Product 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.
    5757
    5858
     
    6464
    6565== Frequently asked questions ==
    66 = How will WooCommerce Variation Swatches add value to my store? =
     66= How will Product Variation Swatches for WooCommerce add value to my store? =
    6767The decorative swatches will enhance your visual representation of variable products with easy to select options.
    6868
     
    8484
    8585== Changelog ==
     86= 1.0.4 (20 Nov, 2022) =
     87* Fix - Compatibility with WP v6.1
     88* Fix - Compatibility with WC v7.1
     89
    8690= 1.0.3 (28 Sept, 2022) =
    8791* Fix - Compatibility with WP v6.0.2
  • wc-variation-swatches/trunk/wc-variation-swatches.php

    r2791435 r2821139  
    11<?php
    22/**
    3  * Plugin Name: WooCommerce Variation Swatches
     3 * Plugin Name: Product Variation Swatches for WooCommerce
    44 * Plugin URI:  https://www.pluginever.com
    55 * Description: Provides a much nicer way to display variations of variable products!
    6  * Version:     1.0.3
    7  * Author:      pluginever
     6 * Version:     1.0.4
     7 * Author:      PluginEver
    88 * Author URI:  https://manik.me
    99 * Donate link: https://www.pluginever.com
     
    1111 * Text Domain: wc-variation-swatches
    1212 * Domain Path: /i18n/languages/
    13  * Tested up to: 6.0.2
     13 * Tested up to: 6.1
    1414 * WC requires at least: 3.0.0
    15  * WC tested up to: 6.9.4
     15 * WC tested up to: 7.1
    1616 */
    1717
     
    5555     * @var string
    5656     */
    57     public $version = '1.0.3';
     57    public $version = '1.0.4';
    5858
    5959    /**
Note: See TracChangeset for help on using the changeset viewer.