Integrating Shipping with Ruby on Rails

最后都变了- 提交于 2019-12-21 05:41:27

问题


What is the best method to include shipping quotes in my cart?

The basic flow of my site is that

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.  

I would like to insert a shipping information, so that the user can pay for his purchase + shipping costs via active merchant.

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.

Is there a gem or plugin to help me here, if not... how can I get this done?

Thank you
Stefan


回答1:


Check out the active_shipping gem:

http://github.com/Shopify/active_shipping

Its another extraction from Shopify (like ActiveMerchant)



来源:https://stackoverflow.com/questions/2515115/integrating-shipping-with-ruby-on-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!