PHP购物车API
我想知道是否有购物车 API(PHP)。我看过像 opencart 等解决方案,但我有自己的设计,我只需要某种 API,我可以使用它并将购物功能直接添加到我的网站中。
我当时想 外部购物车->createNewProduct(...);或者 外部购物车->showProductInfo(...);或者 ExternalCart->addCategory(...)
因此后端由 API 处理,我可以只使用输出并以我想要的方式显示它,因此,不会被购物车的布局或功能所困扰。
有什么建议吗?
谢谢
i was wondering if there is an API for a shopping cart (PHP). I have looked at solutions like opencart etc, but i have my own design and i just need some kind of API which i can use and add the shopping functionality directly into my website.
I was thinking like
ExternalCart->createNewProduct(...); or
ExternalCart->showProductInfo(...); or
ExternalCart->addCategory(...)
So the backend is handled by the API and i could just use the output and show it whichever way i want to, hence, not being stuck with the shopping cart's layout or functionality.
Any suggestions?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
由于您有自己的设计 - 使用完全 JS 解决方案 - Simple Cart - 不需要后端。
Since you have your own design - go with a fully JS solution - Simple Cart - there is no need for a backend.
Railskits 有一个很酷的 Paypal API(但它是 Ruby)——并且没有真正的购物车或订单履行功能。
我听说 ZenMagick 有一个封装 ZenCart 的 API,但他们的演示网站似乎已损坏,因此这并不能激发信心。
Railskits has a cool Paypal API (but it's Ruby) -- and doesn't really have cart or order fulfillment.
I've heard ZenMagick has an API wrapping ZenCart, but their demo site seems broken, so that doens't inspire confidence.
我认为最好的选择是将您的网站“转换”为 OpenCart。您可以使用其主题系统来实现这一点。您可以在这里阅读http://www.opencart.com /index.php?route=documentation/documentation&path=43_44 由于其基于 MVC 架构构建并使用 CSS,因此应该不会很难适应。 :o)
I think the best option is to "convert" your site to OpenCart. You can use the its theme system to achieve that. You can read about it here http://www.opencart.com/index.php?route=documentation/documentation&path=43_44 as its build over MVC architecture and uses CSS, it shouldn't be very hard to adapt. :o)
Moltin 可能值得研究一下。除了其他电子商务组件之外,他们的 API 中还有一个购物车部分。您可以使用您需要的电子商务系统的任何部分。这是文档
Moltin might be worth looking into. There is a cart section in their API amongst other ecommerce components. You can use whichever pieces of the ecommerce system that you need. Here's the documentation