[WordPress] 外掛分享: SySwatches Variation Swatches For WooCommerce

首頁外掛目錄 › SySwatches Variation Swatches For WooCommerce
WordPress 外掛 SySwatches Variation Swatches For WooCommerce 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
100+
安裝啟用
★★★★★
5/5 分(3 則評價)
1097 天前
最後更新
100%
問題解決
WordPress 3.3+ PHP 5.2+ v1.2.3 上架:2021-07-07

內容簡介

使用我們的「Color Image Variation Swatches For WooCommerce」外掛程式,可以將原本的變數屬性下拉選單轉換為外觀美觀的色彩圖像選擇器。您可以在所有常見尺寸中顯示圖像或顏色,並以圓形或正方形模式顯示。

如何使用「Color Image Variation Swatches For WooCommerce」

「Color Image Variation Swatches For WooCommerce」功能

支援顏色/圖像/文字選項以及下拉選擇方式。
完全相容於Elementor、Elementor Pro、Crocoblock及Jetwoobuilder。
尺寸可調:由小到大的各種選項大小。
支援正方形和圓形選項。
在單一產品頁面上顯示所選選項名稱。
在商店/類別/標籤檔案頁面上顯示「Color Image Variation Swatches For WooCommerce」原子。
內置直接變化連結功能。
使用「Color Image Variation Swatches For WooCommerce」可以將變化圖像用作樣式圖像。
屬性的全域顏色圖像值,使您不必一遍遍地重置顏色/圖像。
隱藏或灰化不可用選項。
劃掉缺貨選項。
設置顯示為預設的群組,這將使群組菜單在頁面加載時打開。

「Color Image Variation Swatches For WooCommerce」與自定產品屬性之色彩/圖像樣式如何使用管道符號(|)分隔的教學影片

如何在產品/屬性下創建預設全域屬性的「Color Image Variation Swatches For WooCommerce」設定教學影片。

「Color Image Variation Swatches For WooCommerce」商店頁面

您可以選擇在商店/類別/標籤檔案頁面上顯示任何一個屬性樣品,並且這些樣品可以使用我們內置的直接變化鏈接功能鏈接到直接變化鏈接中。

在 WooCommerce 商店頁面上,在標籤懸停時更改產品圖像

您可以選擇在後台為每個屬性設置懸停圖像,當使用者移動滑鼠到樣品上時,商品圖像將被懸停圖像替換。在移動設備上,您可以使用點擊替換懸停效果。

在這裡檢視實際演示

如果樣品數量較多,使用商店輪播

您可以選擇在樣品數量大於定義的數量時,啟用商店輪播。這樣就可以輕鬆查看所有顏色,而不會破壞網站的外觀。

在這裡檢視實際演示

如果樣品數量大於定義的數量,則顯示更多顏色鏈接

您可以選擇在產品頁複數超出定義數量時,在樣品頁面上啟用「顯示更多」連結,以輕鬆查看所有顏色,而不會破壞網站的外觀。

在這裡檢視實際演示

支援正方形和圓形樣品

外掛支援店鋪和產品頁面上的正方形和圓形樣品。使用圓形樣式時,彩色屬性看起來更具吸引力。

在這裡檢視實際演示

內置直接變化連結功能

內置的直接變量連結功能可幫助您創建使用者友好的/?color=green和?color=green&size=medium類型的 URL,使您可以將您的頁面鏈接到變量。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「SySwatches Variation Swatches For WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Variation Swatches For WooCommerce description
Using our Color Image Variation Swatches For WooCommerce Plugin you can Convert your normal variable attribute dropdown select to nicely looking Color image select. You can display images or color in all common size. Display them in round or square mode.
How to use Color Image Variation Swatches For WooCommerce

Variation Swatches For WooCommerce features

Color Image Variation Swatches For WooCommerce Plugin Supports color/image/text variation swatches and dropdown select.
Fully compatible with Elementor , Elementor Pro , Crocoblock and Jetwoobuilder.
Different sizes of swatch from small to large.
Square as well as round swatch support.
Show selected option name on single product page.
Variation Swatches For WooCommerce Plugin Shows Color image swatches on shop/category/tag archive pages.
Inbuilt direct variation link feature.
Using Variation Swatches For WooCommerce Plugin you can Use variation images as swatch images.
Global Color image values for attributes so that you don’t need to set color/image swatches again and again.Just set it once globally.
Hide or grey out unavailable options.
Cross out out of stock options.
Set groups as show by default which will make group menu open on page load.

video tutorial on how to use color/image swatches with custom product attributes which you separate via pipe (|).

Video tutorial on how to setup color/image swatches with pre-created global attributes which you create under product/attributes. 

Variation Swatches For WooCommerce Shop Page
You can opt to display any one attribute swatches on shop/category/tag and archive pages and that swatches can be linked to direct variant link using
our inbuilt direct variation link feature.
Variation Swatches For WooCommerce change product image on swatch hover on WooCommerce shop page
Optionally you can set hover image for each attribute on backend and whenever user moves mouse on the swatch , Product image will get replaced by hover image.
on Mobile devices you can replace hover with click
see the live demo here
Variation Swatches For WooCommerce Use a shop slider if number of swatches are higher
Optionally you can enable shop slider on shop swatches where number of swatches are higher than the defined number. This makes it easy for users to view all colors without
compromising the look of the site.
see the live demo here
show more colors link if number of swatches are higher than the defined
Optionally you can enable show more links on product page swatches where number of swatches are higher than the defined number. This makes it easy for users to view all colors without
compromising the look of the site.
see the live demo here
Square as well as round swatches support
Plugin support both square and round both in terms of shape for swatches on shop and product page both.Color attributes look more appeasing when used as round shape.
See the live demo here
Variation Swatches For WooCommerce Inbuilt direct variation link feature
Inbuilt direct variation link feature helps you to create user friendly /?color=green and ?color=green&size=medium kind of urls so that you can
link your viariatons directly. Also on category/archive pages you can enable these links so that uses can be redirected directly to variation upon click.
See the live demo here
Color or Image Variation Swatches Plugin Features

Our Color or Image Variation Swatches Plugin Plugin Supports color/image/text variation swatches and dropdown select.
Woocommerce improved variable product attributes and attribute swatches.
Global color or image values for attributes.
Inbuilt color/image product filter.
Works on mobile devices.
Different sizes of swatch from small to large.
Square as well as round swatch support.
Option to display option name below swatch.
Show selected option name on single product page.
Shows color or image swatches on shop/category/tag archive pages.
Inbuilt direct variation link feature. see this.
Change product image on swatch hover on category/archive pages.
Color , image swatches compatible with [product_page ] shortcode.
Show more link if swatches number are greater than defined. see this.
Slider for shop swatches if swatches number is higher than set value.

variation image does not change with dropdowns
what happens if you deactivate our plugin and test with default dropdowns ? does image change with default dropdowns ?
if image does not change with default dropdowns then there is something else which is causing this.First make sure you have setup images for each variation into variations tab. if still not working It could be due to your theme or third party plugins. Change your theme to default twenty-twelve theme and test weather problem persists or not . if it is working with default theme then its a conflict created by theme.
In case Issue still persists deactivate all plugins except woocommerce and and see if issue is resolved or not. if resolved activate other plugins each one by one to find the conflicting one .
Enable shop swatches globally
Use below given php code snippet to enable shop swatches globally. You may use https://wordpress.org/plugins/code-snippets/ plugin for inserting extra php code.

add_action( 'wcva_default_shop_swatches_enable', 'wcva_default_shop_swatches_enable_function');
add_action( 'wcva_default_shop_swatches_attribute', 'wcva_default_shop_swatches_attribute_function' );

function wcva_default_shop_swatches_enable_function() {

return 'yes';

}

function wcva_default_shop_swatches_attribute_function() {
return 'pa_color';
}

How To Display One Attribute Swatches On Shop/Category Pages ?
To display one attribute swatches on shop/category pages you need to check the “Enable one attribute swatches on shop/archive pages ” checkbox in variation select tab and then select the attribute in next option as shown in the below image.
You can also upload the hover image for each option of that selected attribute. Once hover image is set , plugin will replace the hover image with product image on swatch hover on shop/category pages.
If you are using global values as display type make sure you have set hover image for all options for chosen attribute under product/attributes menu.
Disable unselect on swatches
Use below given php code snippet

add_filter('wcva_disable_unselect_on_click',function () {
return 1;
} );

You may use Code Snippets plugin to inject any extra php code.
Unavailable due to ajax handling
It seems that issue is with ajax handling of variations. If you deactivate and test with default drop-downs , you will find it not working.
woocommerce loads variations via ajax in case where number of variations are more then 20. But you can increase that limit with below given php code snippet.

function woomatrix_wc_ajax_variation_threshold( $qty, $product ) {

//replace 50 with maximum number of variation your site might have
return 50;

}
add_filter( 'woocommerce_ajax_variation_threshold', 'woomatrix_wc_ajax_variation_threshold', 10, 2 );

replace 50 with maximum number of variation your site might have.
you may use this plugin for extra php code
Code Snippets

where pa_color is the global attribute which you want as shop swatches.
Version 1.0.0 – Initial Release

Initial release

延伸相關外掛

文章
Filter
Apply Filters
Mastodon