The Business Logic is: If product is already purchased, upgrade the product
I have a customer input form to get information, along with some fields which should be auto populated based on what the customer chooses.
Screen Shot:
https://i.stack.imgur.c om/Fkyim.png
Note: Price and Shipping Weight are done with Ajax,
When we come to the shipping cost I am getting it from Magento, using a PHP function.
form :
https://paste.ofcode.or g/335FVUhpBGbazQt rcPLVQUs
PHP :
sp_cost.php
https://paste.ofcode.or g/hvG2sP9TW9CEPgM MuKXNuw
From the above code I am given the predefined value,
$results = getShippingEsti mate('14419','1 ',"IN","642001" );
How can i get country and zipcode from the user entry and return the shipping cost?
I have a customer input form to get information, along with some fields which should be auto populated based on what the customer chooses.
Screen Shot:
https://i.stack.imgur.c om/Fkyim.png
Note: Price and Shipping Weight are done with Ajax,
When we come to the shipping cost I am getting it from Magento, using a PHP function.
form :
https://paste.ofcode.or g/335FVUhpBGbazQt rcPLVQUs
PHP :
sp_cost.php
https://paste.ofcode.or g/hvG2sP9TW9CEPgM MuKXNuw
From the above code I am given the predefined value,
$results = getShippingEsti mate('14419','1 ',"IN","642001" );
How can i get country and zipcode from the user entry and return the shipping cost?
Comment