News:

Support the VirtueMart project and become a member

Main Menu

Selected state does not fit to selected country

Started by suraty, November 18, 2021, 07:57:38 AM

Previous topic - Next topic

suraty

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!

jenkinhill

"I am using VP onepage checkout plugin"  suggest you ask on https://www.virtueplanet.com/forum/ to get support for the OPC display.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

suraty

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!


GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

suraty

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?


GJC Web Design

use the standard Joomla lang over ride system .. it has a search function .. remember to try both front end and admin
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation