Hello
please help me i need support. I am using Version 3.0.2.0
See the attached image
I am using only one country - Pakistan
I want this country to be the default first option, this means without the default option -- please select --
this way Pakistan will always appear as a default country and user can not select drop down list, then all regions/ state from pakistan will appear as it is.
please help me i need support. I am using Version 3.0.2.0
See the attached image
I am using only one country - Pakistan
I want this country to be the default first option, this means without the default option -- please select --
this way Pakistan will always appear as a default country and user can not select drop down list, then all regions/ state from pakistan will appear as it is.
Attachments
2017-09-30_17-45-53.png (7.54 KiB) Viewed 1292 times
Well, if you only use Pakistan, then simply remove all other Countries from your
Database, and if you want to get rid of all the Zones, then also remove everything,
exept for the Pakistan Zones/Regions.
You will have removed a few thousand never used lines of code from your Database,
and this will even improve overall DB Size, Handling and Performance as well.
FIRST, remove the all surplus Country Regions, then all surplus Countries, but make
a Backup first. And set your Admin Display Values to 500 or more, to be more efficient !
Good Luck !
Ernie
Database, and if you want to get rid of all the Zones, then also remove everything,
exept for the Pakistan Zones/Regions.
You will have removed a few thousand never used lines of code from your Database,
and this will even improve overall DB Size, Handling and Performance as well.
FIRST, remove the all surplus Country Regions, then all surplus Countries, but make
a Backup first. And set your Admin Display Values to 500 or more, to be more efficient !

Good Luck !
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.
Not sure if i have clarified my point.
1. I have removed all extra countries
2. I have removed all zones expect related to Pakistan
3. my issue is On Cart Page on Estimation tab there is a field of country (I want to remove the option '-- please Select-- ') so that my only country will be read only and user should not drop down that, you may say that 'country field fixed to default country and user must not be able to dropdown'
1. I have removed all extra countries
2. I have removed all zones expect related to Pakistan
3. my issue is On Cart Page on Estimation tab there is a field of country (I want to remove the option '-- please Select-- ') so that my only country will be read only and user should not drop down that, you may say that 'country field fixed to default country and user must not be able to dropdown'
IP_CAM wrote: ↑Mon Oct 02, 2017 3:30 amWell, if you only use Pakistan, then simply remove all other Countries from your
Database, and if you want to get rid of all the Zones, then also remove everything,
exept for the Pakistan Zones/Regions.
You will have removed a few thousand never used lines of code from your Database,
and this will even improve overall DB Size, Handling and Performance as well.
FIRST, remove the all surplus Country Regions, then all surplus Countries, but make
a Backup first. And set your Admin Display Values to 500 or more, to be more efficient !![]()
Good Luck !
Ernie
Well, in OC v.3.x, with a few exeptions, most such FIELDS now seem to be declared as
custom_field.custom_field_id
and kind of 'central-controlled' like:
as I understand the Code, therefore, one cannot just hide the 'SELECT' country or whatever
planned Text-Listing anymore, on an individual bases, as it looks.
End of my Wisdom on this
Sorry!
Ernie
custom_field.custom_field_id
and kind of 'central-controlled' like:
Code: Select all
<select name="custom_field[{{ custom_field.location }}][{{ custom_field.custom_field_id }}]" id="input-custom-field{{ custom_field.custom_field_id }}" class="form-control">
planned Text-Listing anymore, on an individual bases, as it looks.

End of my Wisdom on this

Sorry!
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.
Who is online
Users browsing this forum: No registered users and 42 guests