Magento 延期交货可用性消息
在我的 Magento 商店中,我将其设置为允许某些产品延期交货。当这些商品缺货时,它们仍然在产品页面上显示为“有货”,但用户在访问购物车时会收到该商品缺货的通知。
我想更改产品页面,以便它还显示该商品处于缺货状态,而不是“有库存”文本。
In my Magento store I have it set up to allow backorders on some products. When these items are out of stock they still show as 'In Stock' on the product page but the user gets notified when they visit the cart that the item is on backorder.
I would like to change the product page so it also shows there that the item is on backorder in place of the 'In Stock' text.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在文件
template/catalog/product/view/type/simple.phtml
中(对于捆绑、可配置、分组和虚拟也是如此 - 您必须覆盖它们全部),有一些代码如下所示:我的猜测是您需要像这样更改它:
搜索所有模板文件的“可用性”以查看可能需要修复的各个地方。
In the file
template/catalog/product/view/type/simple.phtml
(and the same for bundled, configurable, grouped and virtual - you must override them all) there is some code that looks like this:My guess is you need to change it a bit like this:
Do a search of all template files for "availability" to see the various places that might need fixing.
我在下面的链接中找到了对我有用的以下解决方案:
在 magento 前端显示缺货状态
I have found the following solution which worked for me at link below:
Show backorder status on magento frontend