使用Ruby on Rails集成Shipping

时间:2010-03-25 11:46:54

标签: ruby-on-rails shipping

在我的购物车中包含运费报价的最佳方法是什么?

我网站的基本流程是

1.) User selects products  
2.) User is shown cart  
3.) repeat 1 and 2 until User wants to pay  
4.) collect user details ( email, address where items will be shipped to )  
5.) make payment via active merchant  
6.) order is submitted to distributor.  

我想插入送货信息,以便用户可以通过有效商家支付购买+运费。

1.) User selects products  
2.) User is shown cart  
3.) repeat 1 and 2 until User wants to pay  
4.) collect user details ( email, address where items will be shipped to )  
5.) calculate the cost of shipment, add cost to cart, show to user;
6.) make payment via active merchant  
7.) order is submitted to distributor.

是否有宝石或插件来帮助我,如果没有......我怎么能完成这个?

谢谢你 斯蒂芬

1 个答案:

答案 0 :(得分:1)

查看active_shipping gem:

http://github.com/Shopify/active_shipping

它是Shopify的另一个提取(如ActiveMerchant)