Post by motion2082 » Thu Apr 19, 2018 6:05 pm

Hey guys,

Does anyone know how to remove the default zone name in the checkout?
https://imgur.com/a/PmKOMrG

Just want it to say, please make a selection
Tried using JQuery and it won't work :(

Regards,
Motion O0

Active Member

Posts

Joined
Tue May 12, 2015 8:48 pm

Post by straightlight » Thu Apr 19, 2018 9:02 pm

No OC version posted. However, by removing the following code in your catalog/view/theme/<your_theme>/template/checkout/checkout.twig file:

Code: Select all

if (json['zone'][i]['zone_id'] == '{{ zone_id }}') {
						html += ' selected="selected"';
					}
should removed the default / selected zone.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by OurHooray » Wed Oct 10, 2018 6:02 pm

Hey, I am having the same issue. My Stores County/State is set as the default and has caused some issues with payments being accepted because customers forget to change it. I cannot find the zone string in my checkout.twig file. My file can be found here: https://pastebin.com/RGwCWBBu

Any help would be much appreciated. I just want to set to "Please select". Chris

Newbie

Posts

Joined
Mon Nov 13, 2017 8:41 pm
Who is online

Users browsing this forum: No registered users and 23 guests