简体   繁体   中英

Show only the in stock product attribute in layered navigation - Magento

我想修改magento核心功能,当前端允许缺货时,该功能仅在分层导航中显示有货产品属性。

Is the situation

a) you have set allow out of stock products in front end to YES in the backend config under catalog. As a result 2 things happen: 1. out of stock products are still reachable (directly) by the old url & 2. the options of these out of stock products still seem to exist in the layered navigation as options to choose (but there are not products)

b) child products with a related atrtibute (often SIZE or COLOR or VARIANT) are shown in the layered navigation fitlers, nut when you click the filter it shows all the products with the child product attribute: both in and out of stock. A user would expect to see only the in stock products after clicking their size

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM