英文:
Shopware 6 dynamic prices per customer via API
问题
我想根据客户显示不同的价格。
阅读此处的文档,表示我需要使用商业插件来实现此功能。
是否有办法通过API实现动态定价,而无需使用Shopware计划?
英文:
I would like to display different prices based on customer.
Reading the documentation here, says that I need to use commercial plugin for this feature.
Is there any way to implement dynamic prices via API without the use of a shopware plan?
答案1
得分: 1
你可以使用产品的高级定价来创建一个仅在满足规则条件时才生效的价格。您可以在规则生成器中创建规则,该规则可以匹配一个或多个仅能匹配单一客户的条件。您可以通过匹配客户的电子邮件或地址来实现此目的。您在高级定价中设置的价格将只在该客户登录后对该客户可用。
这种方法的缺点是需要为许多不同的客户创建许多规则,然后将这些规则映射到特定的价格上。如果您计划大规模引入客户特定的价格,商业功能更加适用。
英文:
You could use the advanced pricing of products to create a price that only becomes active when the conditions of a rule are met. You create the rule in the Rule Builder with one or multiple conditions that can only match a single customer. You could do so by matching the email or address of the customer. The price you set in the advanced pricing would then only become available to that one customer, once they're logged in.
This method has the downside of having to create many rules for many different customers and then having to map those rules to specific prices. The commercial feature is far better suited, if you plan to introduce customer specific prices in a big way.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论