有关管道的设计问题 [英] Design Question concerning Pipelines

查看:79
本文介绍了有关管道的设计问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的每个人都有一个设计问题。

我正在为一个做一些非标准事情的客户开发一个CS2K7网站。他们想要购物车的外观和感觉,以及CS2K7提供的客户,订单,库存和营销管理功能。但是,他们的商业模式不同,因为他们不会为他们提供的产品收取任何费用,包括运费。一切都是免费的。

这是问题所在。为了实现这一点,我必须基本上删除Starter网站中处理付款处理,发货和总计算的部分(他们不希望在任何地方向客户显示价格)。虽然这似乎应该是一个相当直接的想法,但我不太确定如何更改管道以便这样做。我应该从头开始重新创建Total和CheckOut管道吗?如果是这样,我是否需要从这些管道的旧版本中继承任何管道组件以使它们工作?

虽然我得到了管道的概念,整个COM的事情因为我没有进入Windows编程直到.NET出现,这让我很害怕。我看过的一些管道组件的示例看起来很简单,但我仍然不能完全确定它们是如何插入管道的。

您可能会有任何建议,我将不胜感激。


I have a design question for everyone out there.

I'm developing a CS2K7 website for a client that is doing some non-standard things.  They want the shopping cart look and feel, as well as the customer, order, inventory, and marketing management capabilities that CS2K7 offers.  However, their business model is different in that they don't charge anything for the products that they offer, including shipping.  Everything is free.

Here's the problem.  In order to get this to work, I have to basically strip out the parts of the Starter site that handle payment processing, shipping, and total calculation (they don't want a price to be shown to the customer anywhere).  While that seems like it should be a fairly straight-forward idea, I'm not quite sure how to change the pipelines in order to do that.  Should I recreate the Total and CheckOut pipelines from scratch?  If so, will I need to carry over any of the pipeline components from the old versions of those pipelines to make them work?

While I get the concepts of what is going on with the pipelines, the whole COM thing kind-of scares me as I didn't get into Windows programming until .NET came about.  The examples of some pipeline components I've looked at seem straight-forward enough, but I'm still not totally sure how they get plugged into the pipelines.

Any suggestions that you may have will be greatly appreciated.


推荐答案

我可能会在这里部分回答我自己的问题,但我可以处理"删除"问题。只需通过自动应用免费送货到每个订单的运费。这将留下一个障碍 - 从订单流程中删除付款处理。他们不会为任何事情收钱,如果它不适用,甚至经过付款处理步骤也没有意义。

这听起来像是一个更好的方法来处理这个而不是必须搞乱总管道?

另外,我假设我必须修改Checkout管道。我不想处理任何付款,我认为我真的不太关心促销代码,但更新库存对于此过程非常重要。我可以简单地删除"PaymentMethodRouter"吗?组件退出管道以删除付款处理?移除此组件会影响管道中的任何其他组件吗?此外,还会留下"RedeemPromoCodes"。对我来说是一个问题?

提前感谢您的任何反馈!

I may be partially answering my own question here, but I may be able to handle the "removal" of shipping charges simply by automatically applying free shipping to every order.  That would leave one remaining obstacle - removing the payment processing from the order process.  They don't collect money for anything, and it really doesn't make sense to even go through a payment processing step if it's not applicable.

Does this sound like a better way to handle this rather than having to mess with the total pipeline?

Also, I'm assuming I would have to modify the Checkout pipeline.  I don't want to process any payments and I don't think I really care too much about the promo codes, but updating the inventory is VERY important to the process here.  Can I simply remove the "PaymentMethodRouter" component out of the pipeline to remove the processing of payments?  Would any of the other components in the pipeline be affected by removing this component?  Also, would leaving "RedeemPromoCodes" be an issue for me?

Thanks in advance for any feedback!


这篇关于有关管道的设计问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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