Hi,

I was thinking of using core profile.module to extend the user registration form and have users select their (invoice) country upon registration. Reason being that for my project the product prices need to be shown based on the country where the invoice is being send. And not where the actual order was made from. So ip2cc isn't a good option (besides the fact that it's not fail safe).

The country selection block isn't very fail safe either cause users can change the country and see what prices are used for different countries. Haven't checked if it's possible to change to shop using a country with cheapest prices and then checkout and have the items delivered to a 'more expensive' country. (Hope you know what I mean) But even if prices were corrected during checkout to match the country you select in the checkout form it's not very user friendly in my opinion eventhough it's a user's own mistake to shop in a 'less expensive' country setting.

Prices in my project will only be shown to authenticated users. Giving me the option to use details one has entered during registration to determine the price to show.. So I was wondering if I could hook into your module somehow? Can I do something like custom_module_country_id() ? That would give me the option to make a db call and load the user's country he has given during registration. Then during checkout I will prefill and disable the address/country fields and things will be sweet :)

Hope you can help!

Cheers,
Bartezz

Comments

Docc’s picture

It prevents checkout if the delivery country does not match the the selected multiprice country.

You can call uc_multiprice_country_id($country_id = FALSE) to set the current country for the multiprice.
So just call that from wherever you want. (custom block/select list)

bartezz’s picture

Status: Active » Closed (fixed)

Thanx for your prompt response mate. Good to know it prevents checkout, hadn't gotten around to test that bit yet. Though it's nice to have a security like that I think IMHO that it's not very user friendly.... again even it's a user's own error to select a wrong country. Maybe it should update prices during checkout to the prices of the country one selects during checkout and warn the user... but that's a whole other feature I guess :)

I'll try it down the profile path like mentioned above and use uc_multiprice_country_id() to set the country.
Thanx again!

Cheers