bob_basli wrote:
Hi,
I'm using Oeders 2.2.4 but the shop is not running for USA.
Therefor I would like to remove the required field Stat. I tried removing just the fields from the templates, but still get an error that the Stat is required.
The following field is invalid: --Add Me - module:Orders string:state--
Also would like to change the default country.
Can anyone assist me on this?
Regards,
Arjan de Wit,
The Netherlands
Hi Arjan
Try editing the Orders.module.php file (in modules/orders/ ).
find the following:
function validate_billing_info(&$billing,&$field)
and then comment out the billing state validation like this:
// if( !isset($billing['state']) || empty($billing['state']) )
// {
// $field = 'state';
// return false;
// }
(that way you can put it back later if you ever need it)
Quote
ps: also would like to set the default country to Netherlands instead of US.
How do I do That?
I am trying to do this now myself.
I'll let you know if I come up with a solution.
Regards
Ben