将不同的产品分配给不同的商店,并在后端按商店显示产品 [英] Assign different products to different stores and display products per store in backend

查看:65
本文介绍了将不同的产品分配给不同的商店,并在后端按商店显示产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个拥有5个商店的网站,每个商店都有一个商店视图(德语).我想将一些产品添加到第一家商店,将其他产品添加到第二家商店,依此类推.我该怎么做呢?另外,我在后端有一个完全定制的页面,用于显示产品,并且可以选择和导出产品.我希望能够根据产品分配到的商店来过滤产品.如何在我的代码中检测到产品分配到的存储位置?

I have a website with 5 stores, with one store view (German) for each. I want to add some products to the first store, some other products to the second store, and so on. How do I do this? Also, I have a completely custom-made page in the backend where products are displayed, and can be selected and exported. I want to be able to filter the products based on which store they are assigned to. How do I detect in my code which store a product is assigned to?

谢谢!

更新:好的,我想我找到了一种方法-通过为不同的商店分配不同的根类别.然后既可以在后端分配根类别,也可以在代码中检测根类别.您认为这种方法有效吗,还是我走错了路?谢谢!

UPDATE: Okay, I think I found a way to do it - by assigning different root categories to the different stores. The root category can then be both assigned in the backend and detected in code. Do you think this method works, or am I on the wrong track? Thanks!

推荐答案

我找到了一种方法-通过为不同的商店分配不同的根类别.然后既可以在后端分配根类别,也可以在代码中检测根类别.

I found a way to do it - by assigning different root categories to the different stores. The root category can then be both assigned in the backend and detected in code.

这篇关于将不同的产品分配给不同的商店,并在后端按商店显示产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆