Option for setting default country and disabling country field was present in uc_addresses 6.x-1.x, but now I can't find it. I've upgraded to 6.x-2.dev, and country field is still disabled, but instead of default value set previously, I get 0 for 'county' field in 'uc_addresses' table.
I'm getting along with hook_uc_addresses_address_presave, but obviously that's not the solution.
Comments
Comment #1
megachrizThanks for reporting. I did not test the module yet with this field disabled. I will think for a solution. I will probably initialize the country field with a default value when a new address object is constructed, I only need to think about what's the best way to implement it.
Comment #2
megachrizEvery field does now provide a default value when an address object is constructed. For the country field the default value comes from the variable 'uc_store_country', which means that if the country field is disabled, the country value will be set to the store's country. This should fix the problem.
If you think this does not fix the problem, feel free to re-open this issue.