-2
我需要隱藏組合不可用。我在product.js if (!selectedCombination['unavailable'])
上創建了conditon,但我不知道它應該隱藏的女巫元素。隱藏不可用組合(屬性)
我需要隱藏組合不可用。我在product.js if (!selectedCombination['unavailable'])
上創建了conditon,但我不知道它應該隱藏的女巫元素。隱藏不可用組合(屬性)
假設你有一個PrestaShop 1.6版本,你可以從Backoffice中完成。
您可以在以下找到:Preferences
- Products
。 進入Product page
部分,選項是: Display unavailable product attributes on the product page
- NO
而在Products stock
部分:Allow ordering of out-of-stock products
- NO
確保產品可以選擇:When out of stock
- >Default
(在Quantities
節)獲得默認配置(在這種情況下,拒絕訂單)。
使用此配置,不可用的庫存組合不會出現在產品頁面中。