Jump to content

Carrier and its delivery options


Recommended Posts

Hi, guys! I have one carrier and multiple delivery options related to that carrier which I fetch by rest, i.e. 

[{label: "Standard", price: "6.40"}, {label: "Expedite", price: "9.60"}, {label: "Priority", price: "18.50"}]. 

How properly to process all these options so that Prestashop provide the data correctly ?

 

PS. I've developed a Carrier Module where via hookExtraCarrier I display "manually" these options on step "4 Shipping". Method getOrderShippingCost returns the price depending on option selected. Finally on "5 Payment" step, getOrderShippingCost returns the value not for current selected option but for previous one. And just after reloading the "5 Payment" step page, the selected option's price is set. As if the  "5 Payment" step page is rendered before the "4 Shipping" step form is processed. 

Edited by tim8917 (see edit history)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More