Quick question / request:

In (approx) lines 118 and 119 of the .module file there are a couple of lines of code that automatically determine the delivery address based on client browser IP (via ip2cc) or the provided region dropdown and disable the delivery country. This, I believe, prevents a shopper from shopping for someone who lives in another country whilst at the same time seeing shop prices for their country. (please correct me if I am wrong)

Could these pieces of functionality be made optional in the configuration form? At present I have all three lines remmed out under 'if($form_id=='uc_cart_checkout_form')...' conditional code block (which is not very compatible with upgrade implementations), i.e. I don't want the delivery country to be automatically determined and I don't want the drop down list to be disabled.

Thanks for the great module.

Regards

Adam

Comments

Docc’s picture

ip2cc is optional. If ip2cc is not enabled the country wil default to the netherlands. Country can be selected by the region drop down or the country selection function (api).

But i can imagine not everyone sells from the netherlands ;)
It should default to the default country selected in the store so marking this as a todo.

Like stated in the readme. The disabled country selection on checkout is a bit of a dirty fix and im open to suggestions for a better solution.

Docc’s picture

k created a issue for the default language here #457708: Base default language on store settings.
Lets keep this issue about the country selection on checkout.

stefan81’s picture

Hi

I think the IP recognition to determine the right country/price/currency is great!
But I still would like to leave the country selector active at checkout.

My situation:
I applied the latest multiprice_currencies patch. Standard prices are now in EURO. Switzerland has other prices in SFR.

Now, for example, lets take a swiss customer who's on a business trip in Germany. He Still would like to be billed in CHF. Also if he's a new customer, he would like to have the right country saved in his account. So he needs a chance to switch the country selector.

My suggestion:
Leave everything as it is, but keep the country selector active.
Optimally the page gets refreshed on change. If not, we hopefully see the right currency at the order review.

Docc’s picture

I for one think the country selector should always be visible and you should get your visitor to select the correct country before they goto checkout (before they shop even).

Anyhows back to the checkout form. Im indeed thinking of a page refresh on the country selection.
If anyone has a better idea now is the time :)

stefan81’s picture

Yes, an on-change page refresh on the country selection should definitely be core.

Docc’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Fixed

Commited to 2.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.