switch ($user->cb_country) {
case "Afghanistan":
case "Angola":
case "Bangladesh":
case "Benin":
case "Bhutan":
case "Burkina Faso":
case "Burundi":
case "Cambodia":
case "Central African Republic":
case "Chad":
case "Comoros":
case "Congo, Democratic Republic of the":
case "Djibouti":
case "Equatorial Guinea":
case "Eritrea":
case "Ethiopia":
case "Gambia, The":
case "Guinea":
case "Guinea-Bissau":
case "Haiti":
case "Kiribati":
case "Lao Peoples Democratic Republic":
case "Lesotho":
case "Liberia":
case "Madagascar":
case "Malawi":
case "Mali":
case "Mauritania":
case "Mozambique":
case "Myanmar":
case "Nepal":
case "Niger":
case "Rwanda":
case "Samoa":
case "Sao Tome and Principe":
case "Senegal":
case "Sierra Leone":
case "Solomon Islands":
case "Somalia":
case "Sudan":
case "Timor-Leste":
case "Togo":
case "Tuvalu":
case "Uganda":
case "Tanzania, United Republic of":
case "Vanuatu":
case "Yemen":
case "Zambia":
return 1;
break;
default:
return 0;
}
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Looks like it's due to reg_conds_value_1 database table column in _cbsubs_plans being varchar(255) instead of text. So you can only supply up to 255 characters.Unfortunately, I can not fit all the exempt countries in the 'Value'
It just takes up to the country called 'Kiribati'
Are you sure the values you're conditioning against are the actual values for the field and not the labels? Example as follows.I also tried it with few countries but it's not working.
The plan is hidden but choosing one of those countries does not show it!!
Please Log in to join the conversation.
Please Log in to join the conversation.
lol, never a headache. Am glad to help!I am done with the website, you won't hear from me for a long time now, and less headache for you. lol
Please Log in to join the conversation.