ruby-on-rails - 将运输与 Ruby on Rails 集成

标签 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.

是否有 gem 或插件可以帮助我,如果没有......我该如何完成?

谢谢
斯特凡

最佳答案

查看 active_shipping gem:

http://github.com/Shopify/active_shipping

它是从 Shopify 中提取的(如 ActiveMerchant)

关于ruby-on-rails - 将运输与 Ruby on Rails 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2515115/

相关文章:

ruby-on-rails - 未初始化的常量 Item::Types

html - Ruby on Rails redirect_to 方法

php - 在 Woocommerce 中以编程方式自定义运费

javascript - 运输计算器,此代码中我缺少什么才能使其正常工作?

ruby-on-rails - 子文件夹和关系中的 Rails 模型

ruby-on-rails - 从开发环境中的管道中排除某些 Assets ?

ruby-on-rails - rails : uninitialized constant just happen on production server

php - Aramex 汇率计算器 APT 返回错误代码 "ISE01"

Python 运费计算器

php - 在产品页面上显示运费 - WooCommerce