gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 18:25:10 24 4
gpt4 key购买 nike

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

我网站的基本流程是

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com