简体   繁体   English

产品和购物车是否有轨道宝石?

[英]Is there a rails gem for products and shopping cart?

I've found some gems like spree commerce but that's too complex for what I need. 我发现了一些像狂欢交易这样的瑰宝,但是对于我所需要的来说太复杂了。

I only need system of products and a shopping cart (without payments) to implement within current rails app. 我只需要产品系统和购物车(无需付款)即可在当前的Rails应用程序中实施。 Is there any gem that does this? 有没有这样做的宝石?

You can take a look here https://www.ruby-toolbox.com/categories/e_commerce to see a list of popular e_commerces. 您可以在这里https://www.ruby-toolbox.com/categories/e_commerce上查看流行的电子商务列表。

Personally I have experience with https://github.com/drhenner/ror_ecommerce and I recommend you to try. 我个人对https://github.com/drhenner/ror_ecommerce有经验,建议您尝试一下。

Cheers, Bojan 干杯,博扬

我使用AWESOME RUBY寻找有用的宝石。

I found this gem quite handy. 我发现这个宝石很方便。 The syntax is pretty expressive like 语法很富有表现力,例如

@cart.add(@product, @product.price) #for adding an item
@cart.clear  #clears cart

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM