Changeset 3800050
- Timestamp:
- 11/13/2026 09:12:40 AM (42 hours ago)
- Location:
- c4d-woo-variation-swatches/trunk
- Files:
-
- 2 edited
-
c4d-woo-variation-swatches.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
c4d-woo-variation-swatches/trunk/c4d-woo-variation-swatches.php
r3799850 r3800050 1 1 <?php 2 2 /* 3 Plugin Name: C4D Woo Variation Images3 Plugin Name: C4D Variation Swatches & Gallery for WooCommerce 4 4 Plugin URI: https://coffee4dev.com/plugins/variation-images/?utm_source=wordpress.org&utm_medium=plugin-uri&utm_campaign=c4d-woo-variation-swatches 5 Description: C 4D WooCommerce Variation Swatches can show product variation items in images, colors, and label.5 Description: Colour, image and label swatches for WooCommerce variations, a photo gallery for each colour, and one-click ordering of several sizes. 6 6 Author: coffee4dev 7 7 Author URI: https://coffee4dev.com/ … … 10 10 Text Domain: c4d-woo-vs 11 11 Domain Path: /languages 12 Version: 2.0. 012 Version: 2.0.1 13 13 Requires at least: 6.0 14 14 Requires PHP: 7.4 … … 51 51 $uploadDir = wp_get_upload_dir(); 52 52 53 define('C4DWOOVS_VERSION', '2.0. 0');53 define('C4DWOOVS_VERSION', '2.0.1'); 54 54 define('C4DWOOVS_PLUGIN_URI', plugins_url('', __FILE__)); 55 55 define('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 === 2 2 Contributors: Coffee4dev 3 3 Donate 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, converstation4 Tags: variation swatches, color swatches, variation gallery, variation images, woocommerce swatches 5 5 Requires at least: 6.0 6 6 Tested up to: 7.1 7 7 Requires PHP: 7.4 8 Stable tag: 2.0. 08 Stable tag: 2.0.1 9 9 WC requires at least: 7.0 10 10 WC tested up to: 11.2 … … 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html 13 13 14 C 4D WooCommerce Variation Images can show product variation items in images, colors, and label.14 Colour, image and label swatches for WooCommerce variations, a photo gallery for each colour, and one-click ordering of several sizes. 15 15 16 16 == Description == 17 17 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 == 18 C4D 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 20 It is free, has no photo limit, and works with block themes and classic themes. 21 22 ### Variation swatches: colour, image and label 23 24 Set 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 34 Add 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 38 Show 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 42 Pick 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 46 Sizes, 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 63 The 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 67 1. Install and activate the plugin from Plugins → Add New (WooCommerce must be active). 68 2. Go to Products → Attributes and set the type of an attribute: colour, image or label. 69 3. Open a variable product and add photos to each option in the Swatch Images box. 70 4. Open WooCommerce → Variation Images to adjust the settings. The tabs are General, Shop page, Product page, Gallery & zoom, Colours, Compatibility and Custom CSS. 71 72 Multi 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 80 Ask 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 84 1. Upload `c4d-woo-variation-swatches` to the `/wp-content/plugins/` directory, or install it from Plugins → Add New. 85 2. Activate the plugin through the Plugins menu in WordPress. 86 3. Go to Products → Attributes and set the attribute type: colour, image or label. 87 4. Open a variable product and add photos to each option in the Swatch Images box. 88 5. 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 94 Go 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 98 Yes. 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 102 Swatches 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 106 Yes, 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 110 Yes. 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 114 Swatches 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 118 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. 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. 91 119 92 120 = Do I still need C4D Plugin Manager? = 93 121 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.122 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 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. 95 123 96 124 = Where did the colour, size and border settings go? = 97 125 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) listthe selectors you can use.126 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 documentation lists the selectors you can use. 99 127 100 128 = Plugin Manager was off when I updated = … … 102 130 Reactivate 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. 103 131 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 109 132 == Screenshots == 110 133 111 134 1. Swatches and size buttons in place of the drop-downs on a product page. Picking a colour changes the main picture and the gallery. 135 2. A photo gallery for each colour: picking a colour switches the whole gallery. 136 3. Image swatches, with out-of-stock options marked. 137 4. Colour swatches under each product on the shop page. 138 5. Multi Orders: several sizes, each with its own quantity, added in one click. 139 6. The settings page under WooCommerce → Variation Images. 140 7. The Colours tab: a colour for each attribute term. 112 141 113 142 == 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 114 148 = 2.0.0 = 115 149 * Added: own settings page under WooCommerce → Variation Images. C4D Plugin Manager and Redux Framework are no longer needed. … … 482 516 == Upgrade notice == 483 517 518 = 2.0.1 = 519 The plugin is renamed to C4D Variation Swatches & Gallery for WooCommerce. Your settings and data are unchanged. 520 484 521 = 2.0.0 = 485 522 2.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.