商务服务器中的自定义折扣!

发布于 2024-09-15 02:15:04 字数 119 浏览 3 评论 0原文

我必须创建一些自定义促销折扣,这些折扣不属于 Commerce Server 开箱即用提供的 DiscountTypes 类别。有没有办法创建您自己的自定义折扣,例如自定义管道组件。任何想法都有帮助。

谢谢!

I have to create some custom promotion Discounts which does not fall in the category of DiscountTypes provided out of box from Commerce Server. Is there a way for creating your own Custom Discounts like custom Pipeline Components. Any ideas are helpful.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

转身泪倾城 2024-09-22 02:15:04

Enticify 是 Commerce Server 折扣引擎的商业替代品。它提供了许多 Commerce Server 不支持的折扣类型,这可能会满足您的需求。这包括捆绑折扣、价位折扣(例如 3 个折扣 20 美元)以及购买促销礼品。 Enticify 还具有可扩展性模型,因此可以支持额外的折扣和促销。

为什么选择 Enticify for Commerce Server 中突出显示了主要差异差异矩阵可以在 Commerce Server 中找到与 Enticify 特征矩阵

免责声明:我是 Enticify 的创始人兼首席技术官。 Enticify 是一个商业产品,但它与这个问题直接相关,并且是向 Commerce Server 添加“一流”自定义折扣的唯一方法。

Enticify is a commercial replacement for the Commerce Server discount engine. It offers a number of discount types that Commerce Server does not support, which may meet your needs. This includes bundle discounts, price point discounts (e.g. 3 for $20) and gift with purchase promotions. Enticify also has an extensibility model, so additional discounts and promotions can be supported.

The key differences are highlighted in Why Enticify for Commerce Server? and a matrix of the differences can be found in the Commerce Server vs. Enticify Feature Matrix.

Disclaimer: I am the Founder and CTO of Enticify. Enticify is a commercial product, but it is directly relevant to this question and is the only way to add "first-class" custom discounts to Commerce Server.

扎心 2024-09-22 02:15:04

是的,您可以创建自定义促销折扣,但有几件事需要记住。

Commerce Server 折扣引擎(大部分)是一个封闭的盒子,因此您无法扩展它。您可能想要创建一个新的自定义管道组件(如 Massimiliano Peluso 提到的)。这为您提供了两个广泛的选择。 a) 您完全替换 Commerce Server 的开箱即用功能,或者 b) 您将在 Commerce Server 执行之前或之后应用折扣引擎管道组件。后一个选项带来了折扣应用的排序问题,以及如何在 Commerce Server 折扣与您自己的折扣之间应用交互规则的问题。

请注意,扩展 Marketing Manager 的选项有限,因此添加新类型的折扣会很困难。您可能需要一个不同的数据存储库来存储新的折扣和一个新的工具来管理它们。

Yes, you can create custom promotion discounts, but there are several things to bear in mind.

The Commerce Server discount engine is (mostly) a closed box so you cannot extend it. You will likely want to create a new custom pipeline component (as Massimiliano Peluso mentions). This gives you two broad options. Either a) you replace the Commerce Server out of the box functionality entirely, or b) you will apply your discount engine pipeline component before or after the Commerce Server one has executed. This latter option brings up issues of the ordering of application of discounts, and how to apply interaction rules between Commerce Server discounts and your own.

Note that there are limited options for extending Marketing Manager, so adding new types of discounts there would be difficult. You will likely need to have a different data repository in which you store your new discounts and a new tool to manage them.

他夏了夏天 2024-09-22 02:15:04

实际上,为了创建自定义折扣模块并将其集成到商务服务器,您不需要更改购物篮中产品的价格。

请考虑如下:

折扣是一种代表客户完成的付款方式。因此,如果您创建付款方式(有关创建折扣的更多信息,请参阅 此处)称为“折扣”,您的折扣引擎可以将相关的“折扣”添加到订单总额中作为付款的减少。由于商务服务器支持多种支付,因此只需创建新支付并根据您的需求对其进行良好测试即可。

另请参阅 这篇文章

Actually in order to create a custom discount module and integrate it to the commerce server you don’t need to change the price of the product in the basket.

Think about as follows:

A discount is a way of payment, that was done on behalf of the customer. So if you create a payment method (for more info on creating a discount have a look at here) called “discount” and your discount engine can add the relevant “discount” to the order total as reduction of the payment. As commerce server supports multiple payments, this is only a matter of creating a new payment and testing it well for your needs.

Also have a look at Out Of the Box discount types and their explanations from this article.

私野 2024-09-22 02:15:04

是的....您可以创建自定义管道组件来覆盖默认定价和折扣业务逻辑,您只需注意在购物篮管道中的何处添加自定义组件...

Yes.... You can create a custom pipeline component to override default pricing and discount business logic, you have just to pay attention where to add the custom component in the basket pipeline...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文