How to set a default value for state in the register page?
Thank You
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...
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
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
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
How to set the zone_id ?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
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>
Who is online
Users browsing this forum: Majestic-12 [Bot] and 22 guests