How to calculate the total amount (product amount + shipping charge) by calculating the distance?
Asked
Active
Viewed 897 times
1
-
calculate the distance? create your own shipment process, or if u r in USA, use USPS – devpro Nov 08 '16 at 09:20
-
It's depend on how you will process shipment. 1. If you use shipping method like USPS or UPS or others, at first check do they have API to calculate shipping fee 2. You create a record that stores shipping fee Feel free to ask me more details. – Muhammed Imran Hussain Nov 08 '16 at 09:22
-
i am in india the shipment by post – my work Nov 08 '16 at 09:26
-
@ Muhammed Imran Hussain :- (second method),how to create the record of shipping fee!! – my work Nov 08 '16 at 09:31
-
how to create the record of shipping fee! – my work Nov 08 '16 at 10:53
-
In one of my project I required to calculate flat shipping fee by weight and size. So I just created record for example 0-5kg $100, 6-10kg $200 and based on the weight the calculation done. For your case if you require to manually create record. # 1. At first get the fees from your shipping method for example Indian Post. Then #2. add fees in records by distance #3 calculate geo distance and shipping fee. If you store city in your order there are lot of apis to get the lat,lang – Muhammed Imran Hussain Nov 08 '16 at 11:00
-
This is very old post but might be helpful for you to get latitude and longitude: http://stackoverflow.com/questions/98449/how-to-convert-an-address-to-a-latitude-longitude – Muhammed Imran Hussain Nov 08 '16 at 11:02
-
I am Mr. not Mrs :) – Muhammed Imran Hussain Nov 08 '16 at 11:17
-
sry mr Muhammed Imran Hussain – my work Nov 09 '16 at 03:43
-
result() as $row ){ $k=0; ?>
- ">
– my work Nov 18 '16 at 06:04tips_desc;?> - ">
-
this is not working in codeignier – my work Nov 18 '16 at 06:04