VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: suraty on November 18, 2021, 07:57:38 AM

Title: Selected state does not fit to selected country
Post by: suraty on November 18, 2021, 07:57:38 AM
Hello,
I am a beginner.

Joomal version = 3
virtuemart version = 3

I am using VP onepage checkout plugin on the cart page.
In the address section, there are name, family, phone, address, country, state ,... fields.

Country field is a Combobox when it is selected, it is possible to select one of the defined states of that country into the state field.
But when the user changes its country, It shows a message "Selected state does not fit to the selected country" quickly and before to let choose any state field.

1- How can I set this message display when a user selects a state, not before it? OR when submit button is clicked?
2- My native language is not English. How do I override this error in my native language? (My native language is installed)

Thank you very much
Please help me step by step!
Title: Re: Selected state does not fit to selected country
Post by: jenkinhill on November 18, 2021, 11:09:42 AM
"I am using VP onepage checkout plugin"  suggest you ask on https://www.virtueplanet.com/forum/ to get support for the OPC display.
Title: Re: Selected state does not fit to selected country
Post by: suraty on November 19, 2021, 17:01:53 PM
Thank you.

My native language is not English. How do I override this error in my native language? (My native language is installed)

I can not find this value "Selected state does not fit to the selected country" in override constants.

Please help me!

Title: Re: Selected state does not fit to selected country
Post by: GJC Web Design on November 19, 2021, 18:52:12 PM
COM_VIRTUEMART_COUNTRY_STATE_NOTEXIST="Selected state does not fit to selected country"

use the standard Joomla lang over ride system

that constant is in  administrator\components\com_virtuemart\language\en-GB\en-GB.com_virtuemart_countries.ini
Title: Re: Selected state does not fit to selected country
Post by: suraty on November 19, 2021, 21:08:18 PM
Thank you very much.

That constant COM_VIRTUEMART_COUNTRY_STATE_NOTEXIST is working correctly.

How should I find constants when they are not found? Where do I search it?

Title: Re: Selected state does not fit to selected country
Post by: GJC Web Design on November 19, 2021, 22:30:00 PM
use the standard Joomla lang over ride system .. it has a search function .. remember to try both front end and admin