从头开始开发购物车的最佳实践
我正在寻找为我的新商店网站开发一个好的购物车。我脑子里几乎没有开始开发它的想法...
- 它将是一个有状态会话 bean (ejb3)。
- 面向对象 {
ShoppingCart
、ShoppingCartItem
、ShoppingCartEvent
、OrderHandler
等}
我正在寻找这个问题,就是得到,关于你的经验,是开发购物车的最好方法(更容易处理)?
做一个有状态的ejb好不好? 购物车必须具备哪些常见对象及其功能(方法)?...
谢谢,任何帮助和建议将不胜感激。
I'm looking to develop a good shopping cart to my new store site. I have few ideas in my mind to start developing it...
- It will be a stateful session bean (ejb3).
- Object Oriented {
ShoppingCart
,ShoppingCartItem
,ShoppingCartEvent
,OrderHandler
, etc.}
What I'm looking with this question, is to get, about your experience, is the best way (easier to handle) to develope a shopping cart?
It is good to be a stateful ejb?
What are the common objects and its functionality (methods) that a shopping cart must have?...
Thanks, any help and suggestion will be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我确信这不是您想听到的,而且我可能会对此投反对票,这不是您正在寻找的答案,但需要说出来。
鉴于在线销售模式存在所有安全、PCI 和法律问题,我强烈建议您购买或至少获得一个开源购物车,您可以对其进行修改以构建自己的购物车。
即使您确实决定推出自己的产品,获得一个开源购物车进行拆卸和分析也比我们在这里可以回答的任何问题更好的开始。这个论坛不适合提出如此广泛的问题。
编辑 - 添加
我是根据经验这么说的。我们的团队花了相当长的时间来决定是构建还是购买,经过大约一个月的分析我们的选择后,我们购买了一个带有源代码的商业推车,并且开箱即用地获得了 PABP 认证,这是一个由于 PCI 合规性问题,必须具有。
这不是此特定购物车的插件,但如果您不熟悉要求,您至少应该查看此链接:http://www.aspdotnetstorefront.com/t-pabp.aspx
I'm sure this is not what you want to hear, and I'll likely be downvoted for it, and it's not the answer you're looking for, but it needs to be said.
With all of the security, PCI, and legal issues surrounding an online sales model, I would strongly recommend purchasing or at least getting an open source shopping cart you can modify to building your own.
Even if you do decide to roll your own, getting an open source cart to disassemble and analyze would be a better start than anything we can answer here. This forum just isn't the right place for such a broad question.
Edit - added
I say this from experience. Our team spent quite some time just deciding whether to build or buy, and after about a month of analyzing our options, we bought a commercial cart that comes with source code, and was PABP certified out-of-the-box, which was a must have due to PCI compliance concerns.
This is not a plug for this particular shopping cart but you should look at this link at least, if you're not familiar with the requirements: http://www.aspdotnetstorefront.com/t-pabp.aspx