Admin : Customer -> Form - Zone/Region : --None --
Posted: Tue Sep 16, 2014 10:16 am
Hi,
REF: http://forum.opencart.com/viewtopic.php?f=20&t=129913
As my registration form in the front end (Social Login or Normal) -- all defaults to None for the Zone as Singapore has no states.
admin/view/template/sale/customer_form.tpl
It just seems that when Customer registered with -- None -- as the zone by default, what the Customer form in the back end will show :
Zone : -- Please select --
rather than -- None --
Any way to change that?
I'm based in Singapore so I need this function to work properly.
The code in question is this :
I tried replacing
With what is in the Store Settings :
Didn't solve the issue -- instead shows a empty dropdown box.
Please help ...
Thank you.
Regards
The Geekz
Edit :
Have tried the earlier thread @ General Support --- YUNO's reply, but it somehow didn't work: (do I have to register another customer and try -- maybe it doesn't apply to the already existing customer?)
try
open opencart1564\admin\view\template\sale\customer_form.tpl
line 420
replace to
REF: http://forum.opencart.com/viewtopic.php?f=20&t=129913
As my registration form in the front end (Social Login or Normal) -- all defaults to None for the Zone as Singapore has no states.
admin/view/template/sale/customer_form.tpl
It just seems that when Customer registered with -- None -- as the zone by default, what the Customer form in the back end will show :
Zone : -- Please select --
rather than -- None --
Any way to change that?
I'm based in Singapore so I need this function to work properly.
The code in question is this :
Code: Select all
<td><span class="required">*</span> <?php echo $entry_zone; ?></td>
<td><select name="address[<?php echo $address_row; ?>][zone_id]">
</select>
<?php if (isset($error_address_zone[$address_row])) { ?>
<span class="error"><?php echo $error_address_zone[$address_row]; ?></span>
<?php } ?></td>
Code: Select all
<td><select name="address[<?php echo $address_row; ?>][zone_id]">
</select>
Code: Select all
<td><select name="config_zone_id">
</select></td>
Please help ...
Thank you.
Regards
The Geekz
Edit :
Have tried the earlier thread @ General Support --- YUNO's reply, but it somehow didn't work: (do I have to register another customer and try -- maybe it doesn't apply to the already existing customer?)
try
open opencart1564\admin\view\template\sale\customer_form.tpl
line 420
Code: Select all
html += ' <td><select name="address[' + address_row + '][zone_id]"><option value="false"><?php echo $this->language->get('text_none'); ?></option></select></td>';
Code: Select all
html += ' <td><select name="address[' + address_row + '][zone_id]"><option value="false"><?php echo $this->language->get('text_select'); ?></option></select></td>';