Magento:将产品设置为在搜索或目录中不可见,但网址仍然存在
当产品停产时,我有一个客户请求,以便产品在目录或搜索中不可见,但网址和产品仍然存在,您只是无法订购该产品。
唯一的可见性选项是目录、搜索、目录和搜索,单独不可见。如果我只是将该值设置为空白,它会在目录和搜索中不可见但仍然存在吗?
有更好的方法吗?
更新 正如下面 Clockwork 所说,只要您在配置中将其设置为不显示缺货产品,这就是保留 url 且不显示在类别和搜索中的默认功能。
I have a client request when a product is discontinued to make it so that product is not visible in catalog or search but the url and product still exists and you just can't order the product.
The only visibility options are catalog,search, catalog and search, not visible individually. If I just set the value to blank will it not be visible in catalog and search but still exist?
Is there a better way to do this?
UPDATE
As Clockwork says below as long as you have it set in the configuration to not show out of stock products this is default functionality to keep the url and not show up in categories and search.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将库存减少至 0 并确保其处于“缺货”状态。在系统>配置>库存>库存选项确保“显示缺货产品”为“否”。这将允许页面显示而无需购买。
如果您必须打开“显示缺货”,请将产品的可见性设置为“目录”并将其从所有类别中删除。然后,在不完全禁用的情况下,它将不再有指向它的链接。
Reduce it's stock to 0 and make sure it is 'Out Of Stock'. In System > Configuration > Inventory > Stock Options make sure 'Display Out of Stock Products' is 'No'. That will allow the page to display without being purchasable.
If you must have 'Display Out of Stock' on then set the product's visibility to 'Catalog' and remove it from all categories. It will then have no more links to it without being completely disabled.
您可以创建将可见性字段设置为目录的产品,并且不要将其分配给任何类别。
这样,在浏览目录时,任何人都无法找到它,并且在进行搜索时它也不会可见,但您仍然可以通过链接访问它。
You can create a product with the visibility field set to Catalog, and don't assign it to any categories.
This way no one will be able to find it while browsing the catalog and it won't be visible when a search is made, but you will still be able to access it via a link.
我知道这很长一段时间,但只是为了好玩,我为此目的发布了一个模块。
它将把“产品”添加到目录产品可见性中
https://github.com/gh-darvishani/product-可见度
i know it's a long time but just for fun i publish a module for this purpose.
it will add "product" to catalog product visibility
https://github.com/gh-darvishani/product-visibility