Page 1 of 1

How to set default state value in register?

Posted: Fri Aug 15, 2014 1:27 pm
by pwood
How to set a default value for state in the register page?

Thank You

Re: How to set default state value in register?

Posted: Sat Aug 16, 2014 11:13 am
by pwood
Any help with this?

Re: How to set default state value in register?

Posted: Tue Aug 19, 2014 12:26 am
by pwood
I have set the default state/zone in the settings to my desired one but in the registration it still displays "Please Select" value.

Re: How to set default state value in register?

Posted: Tue Aug 19, 2014 2:14 am
by IP_CAM
I use one Country and one Zone, called 'ALLE'
it should work, if I did not forget anything,

This enters a HIDDEN fixed (required) Value, instead of calling
that timeconsuming selection List, matching one of the 'used' ones...

Code: Select all

<input type="hidden" name="country_id" value="204">Schweiz</td>

Image is to large sized, so, get it here:

http://www.ipc.li/os/country_zone.jpg

good Luck, it's not entirely chequed trough ALL Sections...

Ernie

openshop.li

Re: How to set default state value in register?

Posted: Fri Oct 17, 2014 3:53 pm
by pwood
IP_CAM wrote:I use one Country and one Zone, called 'ALLE'
it should work, if I did not forget anything,

This enters a HIDDEN fixed (required) Value, instead of calling
that timeconsuming selection List, matching one of the 'used' ones...

Code: Select all

<input type="hidden" name="country_id" value="204">Schweiz</td>

Image is to large sized, so, get it here:

http://www.ipc.li/os/country_zone.jpg

good Luck, it's not entirely chequed trough ALL Sections...

Ernie

openshop.li
How to set the zone_id ?

The html for zone_id is like this :

Code: Select all

          <td><select class="form-control" name="zone_id">
            </select>
            <?php if ($error_zone) { ?>
            <span class="error"><?php echo $error_zone; ?></span>
            <?php } ?></td>
Thank you