Plugin Directory

Changeset 3800050


Ignore:
Timestamp:
11/13/2026 09:12:40 AM (42 hours ago)
Author:
coffee4dev
Message:

Release 2.0.1

Location:
c4d-woo-variation-swatches/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c4d-woo-variation-swatches/trunk/c4d-woo-variation-swatches.php

    r3799850 r3800050  
    11<?php
    22/*
    3 Plugin Name: C4D Woo Variation Images
     3Plugin Name: C4D Variation Swatches & Gallery for WooCommerce
    44Plugin URI: https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=plugin-uri&utm_campaign=c4d-woo-variation-swatches
    5 Description: C4D WooCommerce Variation Swatches can show product variation items in images, colors, and label.
     5Description: Colour, image and label swatches for WooCommerce variations, a photo gallery for each colour, and one-click ordering of several sizes.
    66Author: coffee4dev
    77Author URI: https://coffee4dev.com/
    … …  
    1010Text Domain: c4d-woo-vs
    1111Domain Path: /languages
    12 Version: 2.0.0
     12Version: 2.0.1
    1313Requires at least: 6.0
    1414Requires PHP: 7.4
    … …  
    5151$uploadDir = wp_get_upload_dir();
    5252
    53 define('C4DWOOVS_VERSION', '2.0.0');
     53define('C4DWOOVS_VERSION', '2.0.1');
    5454define('C4DWOOVS_PLUGIN_URI', plugins_url('', __FILE__));
    5555define('C4DWOOVS_UPLOAD_DIR', trailingslashit($uploadDir['basedir'].'/c4d-woo-variation-swatches/'));
  • c4d-woo-variation-swatches/trunk/readme.txt

    r3799850 r3800050  
    1 === C4D Woo Variation Images ===
     1=== C4D Variation Swatches & Gallery for WooCommerce ===
    22Contributors: Coffee4dev
    33Donate link: https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches
    4 Tags: product attributes, Variation Images, woocommerce, woocommerce attributes, woocommerce variation, boost sales, cross-sell, up-sells, woocommerce, marketing, sales, products, promotions, checkout, email, related products, discount, converstation
     4Tags: variation swatches, color swatches, variation gallery, variation images, woocommerce swatches
    55Requires at least: 6.0
    66Tested up to: 7.1
    77Requires PHP: 7.4
    8 Stable tag: 2.0.0
     8Stable tag: 2.0.1
    99WC requires at least: 7.0
    1010WC tested up to: 11.2
    … …  
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1313
    14 C4D WooCommerce Variation Images can show product variation items in images, colors, and label.
     14Colour, image and label swatches for WooCommerce variations, a photo gallery for each colour, and one-click ordering of several sizes.
    1515
    1616== Description ==
    1717
    18 C4D WooCommerce Variation Images is easy to use WooCommerce product Variation Images plugin. It means with the help of this powerful WooCommerce color or image Variation Images plugin, you can show product variation items in images, colors, and label.
    19 
    20 With C4D WooCommerce Variation Images, you can create gallery for each attribute values. Your customers can select the product easier.
    21 
    22 With Gallery in Variation Images, you can set Nav thumbnail direction like vertical or hozrizontal, and can change the thumbnail size with and margin.
    23 
    24 Zoom Effect & Photoswipe are applied for gallery in Variation Images.
    25 
    26 In listing page, you can show on/off the Variation Images by a global option in WooCommerce → Variation Images.
    27 
    28 Flip Thumbnail is an option in Variation Images plugin, when hover on a product on listing page, the second product's image will be shown.
    29 
    30 ### [Docs and setup guide](https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches)
    31 
    32 
    33 #### FEATURES IN C4D WooCommerce Variation Images
    34 - Completely integrate with WooCommerce plugin
    35 - Create attribute color swatches
    36 - Create attribute image swatches
    37 - Create attribute label/text swatches
    38 - Create custom attribute swatch in product editing page
    39 - Work on variable product
    40 - Work on variable product quick view
    41 - Control attribute setting globally.
    42 - Compatible with popular themes and plugins
    43 - Flip Thumbnail on listing page
    44 - Flexible tooltip insert and display settings
    45 - Enable Attributes Swatch In Archive / Store Pages
    46 - Control Swatches Width and Height on Archive Page with CSS
    47 - Swatches alignment
    48 - Tooltip display setting on archive/shop page
    49 - Customize font size, swatches height and width with CSS
    50 - Customize swatches colors, background and border sizes with CSS
    51 - Automatic updates and exclusive technical support
    52 
    53 ### INSTALLATION & CONFIG
    54 
    55 1. Upload `c4d-woo-variation-swatches` to the `/wp-content/plugins/` directory
    56 2. Activate the plugin through the 'Plugins' menu in WordPress
    57 3. Create attribute and set the attribute type: text/image/color. (Products -> Attributes -> Add New Attribute)
    58 4. Create Variable Product and insert image in Swatch Images
    59 5. Open WooCommerce → Variation Images to adjust the global settings
    60 
    61 ### OPTION PAGE
    62 
    63 The settings are at WooCommerce → Variation Images. They are grouped in tabs: General, Shop page, Product page, Gallery & zoom, Colours, Compatibility and Custom CSS.
    64 
    65 Multi Orders (buying several attributes at once) is chosen per product, in the Variation Swatches tab of the product editor.
    66 
    67 Colours, sizes and borders are styled with CSS. Read the [docs and setup guide](https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches) for the selectors, then add your rules in the Custom CSS tab.
    68 
    69 ### MAY BE YOU NEED
    70 
    71 [C4D Woo Variation Images](https://wordpress.org/plugins/c4d-woo-variation-swatches/) Display variation by image, color, text. Support add multi images for variations.
    72 [C4D Woocommerce Bundle](https://wordpress.org/plugins/c4d-woo-bundle/) Create frequently bought together product, sell bundle products with discount, promotion
    73 [C4D Woocommerce Boost Sales](https://wordpress.org/plugins/c4d-woo-boost-sales/) Auto create upsell, cross-sell product in mini cart, cart page, popup cart, thankyou, email.
    74 [C4D Woocommerce Filter](https://wordpress.org/plugins/c4d-woo-filter/) Turn your shop into ajax filter without refresh page. Support all default widget of Woocommerce.
    75 [C4D Woocommerce Cart](https://wordpress.org/plugins/c4d-woo-cart-icon/) Create popup, side cart, support display cross-sell, upsell, related product in cart.
    76 
    77 ###  NEED SUPPORT OR CUSTOM
    78 
    79 Ask in the [support forum](https://wordpress.org/support/plugin/c4d-woo-variation-swatches/) or read the [setup guide](https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches).
    80 
    81 If the plugin works well on your shop, a [review](https://wordpress.org/support/plugin/c4d-woo-variation-swatches/reviews/#new-post) helps other store owners find it.
    82 
    83 == installation ==
    84 
    85 1. Upload `c4d-woo-variation-swatches` to the `/wp-content/plugins/` directory
    86 2. Activate the plugin through the 'Plugins' menu in WordPress
    87 3. Create attribute and set the attribute type: text/image/color.
    88 4. Create Variable Product and insert image in Swatch Images
    89 
    90 == Frequently asked questions ==
     18C4D Variation Swatches & Gallery turns the drop-down menus of your variable products into swatches customers can see and click: colour dots, small images or text buttons. Pick a colour and the main gallery changes to the photos of that colour. For shops that sell in sizes, customers can add several sizes to the cart in one click.
     19
     20It is free, has no photo limit, and works with block themes and classic themes.
     21
     22### Variation swatches: colour, image and label
     23
     24Set a type on each attribute under Products → Attributes and the drop-down becomes buttons.
     25
     26* **Colour** swatches: round or square dots. Give each colour term its own colour under WooCommerce → Variation Images → Colours, so names like "Sage" or "Midnight" show the right shade.
     27* **Image** swatches: small photos taken from each option's gallery.
     28* **Label** swatches: text buttons, good for sizes.
     29* Out-of-stock options can be shown as unavailable or hidden.
     30* Tooltips on hover, a circle or rectangle shape, and the "clear" link can be hidden.
     31
     32### A photo gallery for each colour
     33
     34Add as many photos as you like to each option in the Swatch Images box of the product editor. When a customer picks a colour, the main gallery switches to the photos of that colour. Choose a slider or grid for the thumbnails, horizontal or vertical, with zoom, a lightbox and a full-screen pan and zoom.
     35
     36### Swatches on shop and category pages
     37
     38Show the colours under each product in the shop grid, flip the thumbnail when a customer hovers over a swatch, collapse long lists behind a "View more" link, and align the swatches left, centre or right.
     39
     40### Order several sizes in one click (Multi Orders)
     41
     42Pick an attribute, for example Size, in the Variation Swatches tab of a product. Each value then gets a quantity box. A customer chooses a colour, ticks sizes S, M and L with quantities 2, 1 and 3, and adds them all with one button. Each size becomes its own cart line. It works together with C4D Buy More Save More: the quantities of all variations of one product add up toward the discount tiers.
     43
     44### Style the swatches with CSS
     45
     46Sizes, borders, shapes and colours are styled with CSS. Add your rules in WooCommerce → Variation Images → Custom CSS. They are printed late in the page head, after the theme styles, so they win. The documentation lists the selectors and has copy-and-paste examples.
     47
     48### Features
     49
     50* Colour, image and label swatches for any attribute, and custom attributes of a single product
     51* A photo gallery for each option, with no limit on photos
     52* Swatches on shop, category and related-product lists, with flip thumbnail
     53* Multi Orders: several sizes (or any one attribute) in one click, each with its own quantity
     54* A colour for each attribute term in its own settings tab
     55* Out-of-stock options hidden or marked
     56* Zoom, lightbox and full-screen pan and zoom
     57* Works with variable products, quick view and Ajax product loading (filters, infinite scroll)
     58* Block themes and classic themes
     59* Settings page under WooCommerce, plus a Custom CSS tab
     60
     61### [Documentation and live demo](https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches)
     62
     63The documentation covers every setting, with setup guides and CSS examples. The [demo store](https://demo.coffee4dev.com/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches#variation-images) has the plugin working on sample products.
     64
     65### Installation and setup
     66
     671. Install and activate the plugin from Plugins → Add New (WooCommerce must be active).
     682. Go to Products → Attributes and set the type of an attribute: colour, image or label.
     693. Open a variable product and add photos to each option in the Swatch Images box.
     704. Open WooCommerce → Variation Images to adjust the settings. The tabs are General, Shop page, Product page, Gallery & zoom, Colours, Compatibility and Custom CSS.
     71
     72Multi Orders is chosen per product, in the Variation Swatches tab of the product editor.
     73
     74### More from coffee4dev
     75
     76[C4D Product Bundles for WooCommerce](https://wordpress.org/plugins/c4d-woo-bundle/): sell products together at a discount. Customers tick the items, pick sizes and colours and add the whole bundle in one click. See all plugins at [coffee4dev.com](https://coffee4dev.com/plugins/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches).
     77
     78### Support
     79
     80Ask in the [support forum](https://wordpress.org/support/plugin/c4d-woo-variation-swatches/) or read the [documentation](https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches). If the plugin works well on your shop, a [review](https://wordpress.org/support/plugin/c4d-woo-variation-swatches/reviews/#new-post) helps other store owners find it.
     81
     82== Installation ==
     83
     841. Upload `c4d-woo-variation-swatches` to the `/wp-content/plugins/` directory, or install it from Plugins → Add New.
     852. Activate the plugin through the Plugins menu in WordPress.
     863. Go to Products → Attributes and set the attribute type: colour, image or label.
     874. Open a variable product and add photos to each option in the Swatch Images box.
     885. Open WooCommerce → Variation Images to adjust the settings.
     89
     90== Frequently Asked Questions ==
     91
     92= How do I show colour swatches instead of drop-downs? =
     93
     94Go to Products → Attributes, edit your attribute (for example Color) and set its type to Color, Image or Text. Every variable product that uses the attribute then shows swatches instead of the drop-down. To give a colour term an exact shade, open WooCommerce → Variation Images → Colours.
     95
     96= Can I use a different gallery for each colour? =
     97
     98Yes. Open a variable product, find the Swatch Images box, and add photos under each option. When a customer picks a colour, the main gallery switches to those photos. There is no limit on photos per option.
     99
     100= How do I show swatches on the shop page? =
     101
     102Swatches on shop pages are on by default. Under WooCommerce → Variation Images → Shop page you can turn them off, show images instead of colours, set the alignment, flip the thumbnail on hover and collapse long lists behind "View more".
     103
     104= Can customers buy several sizes at once? =
     105
     106Yes, with Multi Orders. In the product editor open the Variation Swatches tab and choose the attribute (for example Size). Each value then gets a quantity box, and one click adds every chosen value to the cart, each as its own line.
     107
     108= Does it work with Buy More Save More? =
     109
     110Yes. C4D Buy More Save More counts the quantities of all variations of one product together, so 2 small and 3 medium count as 5 toward its discount tiers.
     111
     112= Does it work with block themes? =
     113
     114Swatches work on product pages and shop pages with block themes (tested with Twenty Twenty-Five) and classic themes (tested with Storefront). If your theme uses its own gallery markup, set the gallery selector under WooCommerce → Variation Images → Product page.
     115
     116= How do I style the swatches? =
     117
     118Open WooCommerce → Variation Images → Custom CSS and add your CSS. It is printed late in the page head, after the theme styles, so it wins over them. The [documentation](https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches) lists the selectors with examples. Saving CSS needs the unfiltered_html capability.
    91119
    92120= Do I still need C4D Plugin Manager? =
    93121
    94 No. Since 2.0.0 the plugin has its own settings page and does not need C4D Plugin Manager or Redux Framework. Keep C4D Plugin Manager ACTIVE while you update: your settings, term colours and styling are converted on the first page load after the update (only when Plugin Manager was active). You can deactivate it afterwards if no other plugin uses it.
     122No. Since 2.0.0 the plugin has its own settings page and does not need C4D Plugin Manager or Redux Framework. Keep C4D Plugin Manager ACTIVE while you update from 1.x: your settings, term colours and styling are converted on the first page load after the update (only when Plugin Manager was active). You can deactivate it afterwards if no other plugin uses it.
    95123
    96124= Where did the colour, size and border settings go? =
    97125
    98 They were replaced by CSS. Your previous styling was converted into the Custom CSS tab (when C4D Plugin Manager was active), so your shop looks the same. It is under WooCommerce → Variation Images. The [docs](https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches) list the selectors you can use.
     126They were replaced by CSS. Your previous styling was converted into the Custom CSS tab (when C4D Plugin Manager was active), so your shop looks the same. It is under WooCommerce → Variation Images. The documentation lists the selectors you can use.
    99127
    100128= Plugin Manager was off when I updated =
    … …  
    102130Reactivate C4D Plugin Manager, then delete the option `c4d_woo_vs_db_version` (for example with a database tool or `wp option delete c4d_woo_vs_db_version`). On the next page load the plugin fills in the missing settings from Plugin Manager. If you need help, ask in the support forum.
    103131
    104 = How do I style the swatches? =
    105 
    106 Open WooCommerce → Variation Images → Custom CSS and add your CSS. It is printed late in the page head, after the theme styles, so it wins over them. See the [docs](https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=c4d-woo-variation-swatches) for examples of selectors.
    107 
    108 
    109132== Screenshots ==
    110133
    111 
     1341. Swatches and size buttons in place of the drop-downs on a product page. Picking a colour changes the main picture and the gallery.
     1352. A photo gallery for each colour: picking a colour switches the whole gallery.
     1363. Image swatches, with out-of-stock options marked.
     1374. Colour swatches under each product on the shop page.
     1385. Multi Orders: several sizes, each with its own quantity, added in one click.
     1396. The settings page under WooCommerce → Variation Images.
     1407. The Colours tab: a colour for each attribute term.
    112141
    113142== Changelog ==
     143= 2.0.1 =
     144* Updated: new name, "C4D Variation Swatches & Gallery for WooCommerce". The plugin folder, your settings and your data are unchanged.
     145* Updated: new plugin page: description, tags, FAQ, banner, icon and screenshots.
     146* Updated: the plugin links to the new documentation and the live demo store.
     147
    114148= 2.0.0 =
    115149* Added: own settings page under WooCommerce → Variation Images. C4D Plugin Manager and Redux Framework are no longer needed.
    … …  
    482516== Upgrade notice ==
    483517
     518= 2.0.1 =
     519The plugin is renamed to C4D Variation Swatches & Gallery for WooCommerce. Your settings and data are unchanged.
     520
    484521= 2.0.0 =
    4855222.0.0 moves the settings to WooCommerce → Variation Images and no longer needs C4D Plugin Manager. Keep C4D Plugin Manager active while you update: your existing settings, term colours and styling are converted on the first page load after the update. You can deactivate it afterwards. Please keep a backup before updating.
Note: See TracChangeset for help on using the changeset viewer.