将运输报价添加到我的购物车的最佳方法是什么?
我网站的基本流程是
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 http://github.com/Shopify/active_shipping
它是 Shopify 的另一个提取(如 ActiveMerchant)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)