Orders 2.2.4 Howto remove required fields ??

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
bob_basli
Forum Members
Forum Members
Posts: 189
Joined: Mon Sep 24, 2007 6:18 pm

Orders 2.2.4 Howto remove required fields ??

Post 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
Last edited by bob_basli on Tue Mar 17, 2009 7:29 am, edited 1 time in total.
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Re: Orders 2.2.4 Howto remove required fields ??

Post by sonictrip »

i have this problem too, there has to be some javascript validation somewhere but where?
kurashiki_ben
Forum Members
Forum Members
Posts: 86
Joined: Sun Jul 05, 2009 2:37 am

Re: Orders 2.2.4 Howto remove required fields ??

Post 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
bob_basli
Forum Members
Forum Members
Posts: 189
Joined: Mon Sep 24, 2007 6:18 pm

Re: Orders 2.2.4 Howto remove required fields ??

Post by bob_basli »

Thanks, this is working for me
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Re: Orders 2.2.4 Howto remove required fields ??

Post by sonictrip »

Thanks kurashiki_ben  ;D
Post Reply

Return to “Modules/Add-Ons”