php - Prestashop shipping cost when user has more address -


i have created prestashop shipping module in php, distance between 2 locations calculated based on google maps api.

when user has 1 address, ok, when has 2 or more addresses , select second 1 deliver package, shipping cost calculated first address ($customer_address[0]).

i want right result. when select second item combo box, shipping cost calculated based on second item address.

i've tried after obtain results database, isn't working.

here code!

you must address cart:

$customer_address = $params->id_address_delivery; 

when customer select address saved addresses prestashop use address calculate shipping cost.


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -