4 replies [Last post]
sanne's picture
Offline
Joined: 08/13/2007
Juice: 121
Was this information Helpful?

Sanne,

How can I make the zones field in the shoppingcart mandatory?

Sanne

Miso's picture
Offline
Joined: 08/10/2007
Juice: 134
Re: Make zones mandatory

good question... I was wondering the same.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Make zones mandatory

In the function uc_zone_select() you need to modify it to look like the following:

<?php
  $select
= array(
   
'#type' => 'select',
   
'#title' => $title,
   
'#description' => $description,
   
'#options' => $options,
   
'#default_value' => $default,
   
'#required' => TRUE// <--- Add this line.
 
);
?>
2shortstories's picture
Offline
Joined: 08/29/2007
Juice: 73
Re: Re: Make zones mandatory

cool! my question was answered before I even asked. Now for question 2:

how to make selection of a shipping method mandatory?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Make zones mandatory

I think I've fixed that by doing it a different way. Slightly more detail in this thread.