Page 1 of 1

Orders 2.2.4 Howto remove required fields ??

Posted: Mon Mar 16, 2009 8:43 am
by bob_basli
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

Re: Orders 2.2.4 Howto remove required fields ??

Posted: Mon Jul 06, 2009 5:20 pm
by sonictrip
i have this problem too, there has to be some javascript validation somewhere but where?

Re: Orders 2.2.4 Howto remove required fields ??

Posted: Wed Jul 08, 2009 12:08 pm
by kurashiki_ben
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

Re: Orders 2.2.4 Howto remove required fields ??

Posted: Wed Jul 08, 2009 1:13 pm
by bob_basli
Thanks, this is working for me

Re: Orders 2.2.4 Howto remove required fields ??

Posted: Tue Aug 25, 2009 8:26 pm
by sonictrip
Thanks kurashiki_ben  ;D