本文介绍了将运输与 Ruby on Rails 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

我网站的基本流程是

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?

谢谢
斯蒂芬

推荐答案

查看 active_shipping gem:

Check out the active_shipping gem:

http://github.com/Shopify/active_shipping

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

Its another extraction from Shopify (like ActiveMerchant)

这篇关于将运输与 Ruby on Rails 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 14:58