隐藏不可用的组合(属性)



我不需要隐藏组合。我在product.js if (!selectedCombination['unavailable'])中创建了conditon,但我不知道女巫元素应该被隐藏。

假设您有一个prestashop 1.6版本,可以从退缩中进行。

您可以在: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部分中)以获取默认配置(在这种情况下为拒绝订单)。

使用此配置,不可用的库存组合不会出现在产品页面中。

最新更新