Jump to content

Calculating Shipping costs by IP/location


roroPrestashop

Recommended Posts

Hi,

I was wondering it's possible to caluclate the shipping rates by the users IP address. We don't have registered customers so there isn't really a way of knowing what their address is until checkout. 

Is this possible? Maybe by seeing the location and then checking the database?

Thanks!

  • Like 1
Link to comment
Share on other sites

I know, but this information is not 100% accurate. I have seen that geolocation sometimes fails for mobile connection. I meant the country was different. Everything depends on the provider and its internal network.

Link to comment
Share on other sites

Ah, ok thanks for the info, but as long as it can work most of the time is enough for me. The user can always change the selection. 

I'm interested to give him an estimate of the shipping without know his address. 

Do you know how this can be achieved?

Link to comment
Share on other sites

you can dump  the geolitecity.dat file in FrontController, there you will find info, note: geolitecity.dat is accurate 85% in the most known areas of world. sorry italy. :)

 

note: if you use native location for IP's that are not resolved via geolitecity.dat, they will not be allowed to shop.

 

here is bo to demo of one of my works in localzation

https://geotargetingpro.etiendas.co/admingeotargetingpro

login demo@demo.com pwd: demodemo.

 

click configuration on geo targeting pro module

 

There you will see returned results of resolved IP, actually my IP.

 

happy day, el

Link to comment
Share on other sites

Thanks for the info El Patron, but I didn't quite understand everything that you wrote... what info will I find in the .dat file and what do you mean by "dump"? 

About your module, which I ran into in the past - what is the difference between it and the "price per country" that is built into Prestashop? Will I also be able to use this with regard this post?

Link to comment
Share on other sites

  On 5/19/2016 at 10:31 PM, roroPrestashop said:

Thanks for the info El Patron, but I didn't quite understand everything that you wrote... what info will I find in the .dat file and what do you mean by "dump"? 

About your module, which I ran into in the past - what is the difference between it and the "price per country" that is built into Prestashop? Will I also be able to use this with regard this post?

 

please see product desc for all the features it adds to native geo location.  and with demo it has built in doc.  As for dump, shipping is not my strength but we hear your pain. I would look for module that does what you want, there are several good solutions to extend your shipping.  Personally shipping should not be calculated on visit until checkout unless you offer free shipping.  Just how I prefer my shopping experience,

Link to comment
Share on other sites

I'm confused... Are you looking to provide an estimate based on IP before checkout?  Once you provide this estimate, how will you create a Carrier in the back office that will match the estimate?

 

Does this estimate (which would be IP based) also need to consider the contents of the cart?

 

Lastly, where would the customer see the estimate?  Is it on the product page and specific to that product?  Or somewhere else?

Link to comment
Share on other sites

bellini13 - yes, I'm trying to do exactly what you describe. I think it is better for the user to see an estimate (even if it's only one type of carrier - the cheapest) while browsing. Basically, it's identical to the funcionality that is available right now (when you see a preview of the cart, or the confirmation after adding a product to the cart, you can see the shipping costs and any possible taxes), but I want this to work with "guests" as well and not only registered guests.

Link to comment
Share on other sites

i know there are "estimate" modules out there, but I don't know if they are IP based.  I think you may need to have something developed, based off some of the ideas and suggestions already provided.

 

A module can be created, using the GEO IP database as a starting point, where you would then assign a cost based on the IP or range of IPs. 

 

The module can then display the cost of shipping that you define on the product page, or perhaps on the cart summary page.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...