Hi,
Version: OC 2.2.0
The state/region dropdowns under the Payment and Shipping Address areas have been preselected with the state/region that has been defined under Settings > Local.
The problem with this is that some customers are forgetting to select their region/state and so an order will come through showing the wrong region/state.
Is there a way to change this so that the 'Please Select' option is default? This way, it will force the customer to select their state/region.
Thanks to anyone who can help with this
Brett
Version: OC 2.2.0
The state/region dropdowns under the Payment and Shipping Address areas have been preselected with the state/region that has been defined under Settings > Local.
The problem with this is that some customers are forgetting to select their region/state and so an order will come through showing the wrong region/state.
Is there a way to change this so that the 'Please Select' option is default? This way, it will force the customer to select their state/region.
Thanks to anyone who can help with this
Brett
I am not really sure about your wishes, but check the image, for a possible fix.
It's untested, I don't know, how your Customers are exactly able to check out...
Ernie
It's untested, I don't know, how your Customers are exactly able to check out...
Ernie
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.
This might help:
https://www.opencart.com/index.php?rout ... n_id=18848
https://www.opencart.com/index.php?rout ... n_id=18848
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
For Opencart 2.3 comment out lines 324-326 of shipping_address.tpl
Code: Select all
// if (json['zone'][i]['zone_id'] == '<?php echo $zone_id; ?>') {
// html += ' selected="selected"';
// }
Do we have an update on this for OC3?
catalog/view/theme/journal3/template/journal3/checkout/address.twig
the twig code for journal3 goes like this:
EDIT:
Solution: Just comment the last option, seems to be working fine (same on country too)
catalog/view/theme/journal3/template/journal3/checkout/address.twig
the twig code for journal3 goes like this:
Code: Select all
<div class="form-group required address-zone">
<label class="control-label" for="input-{{ type }}-zone">{{ entry_zone }}</label>
<select v-model="order_data.{{ type }}_zone_id" v-on:change="save()" name="zone_id" id="input-{{ type }}-zone" class="form-control">
<option v-if="{{ type }}_zones.length > 0" value="">{{ text_select }}</option>
<option v-if="{{ type }}_zones.length == 0" value="">{{ text_none }}</option>
<option v-for="zone in {{ type }}_zones" v-bind:value="zone.zone_id" v-html="zone.name"></option>
</select>
<span class="text-danger" v-if="error && error.{{ type }}_zone" v-html="error.{{ type }}_zone"></span>
</div>
Solution: Just comment the last option, seems to be working fine (same on country too)
Code: Select all
<!--option v-for="zone in {{ type }}_zones" v-bind:value="zone.zone_id" v-html="zone.name"></option-->
There is a much easier solution...
Go to Admin > System > Settings > Edit your Store > Local Tab...
and just leave Region / State on "---Please Select---".
No need to edit core files. This is tested on OC3. Not sure if it works for older versions but seeing as this thread features high on Google for searching this problem, I'll post it here.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 73 guests