开发者

Magento Onepage Checkout - Recalculate Shipping Quote

开发者 https://www.devze.com 2023-04-05 16:53 出处:网络
I\'ve got two independent extensions instal开发者_如何学编程led in Magento - one to calculate FedEx shipping costs via their API, and another to select the desired delivery date.These two currently do

I've got two independent extensions instal开发者_如何学编程led in Magento - one to calculate FedEx shipping costs via their API, and another to select the desired delivery date. These two currently don't talk to each other, which means the FedEx shipping quotes always assume the package will be shipped the night you place the order.

The quote is being generated immediately before the Shipping Method renders. When it does render, the delivery date block is also loaded in. This means the user is selecting a delivery date AFTER the quotes have been generated.

I essentially need some way to save the date and reload the Shipping Method tab, so that it regenerates the quotes using the provided date.

What is the best approach to making this work? I'm hoping I can do this without drastic changes to onepage - basically use as much of the existing JS and controller logic as possible.


you clearly have both steps tied together, your solution could be to try and ask the delivery date in address step (billing or shipping) and then making it available and understandable for your FedEx extension. Other possibility is to attach event listener to date field and on change will submit the data and reload the shipping method block

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号