Magento 1.4 is not showing out of stock items in product list

我用过 Magento 1.3。在 Magento 1.3 里,某产品脱销了,仍在前台出现,只是提示 out of stock。 这其实很好,符合我的 business logic: 脱销总是暂时的,我不希望顾客在这段时间找不到这个产品而误以为该产品 discontinued。如果真遇到产品 discontinued,由 admin 在后台 disable product。Enable / disable 一个产品很方便,这样 admin 会感觉 everything is in control。 可是 Magento 1.4 起,自动把脱销的产品从前台产品列表里过滤了。这个逻辑搞得我莫名其妙,一开始还以为是我搞错了设置或被我改动过的代码写错了,最后才发现 Magento 1.4 把 getLoadedProductCollection() 的返回值修改了。 其实这个修改很糟糕,显然 Magento 1.4 在这点上考虑不成熟:如果顾客都找不到这个产品了,那 wishlist 还有用吗?再看 list.phtml 里 $_productCollection 都过滤了脱销的产品,后面的 $_product->isSaleable() 岂不是多此一举? 我还是得把 getLoadedProductCollection() 按 Magento 1.3 修改回去。… Continue reading Magento 1.4 is not showing out of stock items in product list

What happens when an order is cancelled in Magento?

Order Status When you click Cancel button in an order view, order status changes to Cancelled if payment is not received (i.e. invoice is not raised). If payment is received before you click Cancel button, order status changes to Complete. You must raise a credit note to offset the payment, then the status changes to… Continue reading What happens when an order is cancelled in Magento?