News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

State/Province dropdown when no State configured

Started by woodhouse, November 02, 2016, 13:13:41 PM

Previous topic - Next topic

woodhouse

Hi there,
I'm using VirtueMart 3.0.18 and Joomla 3.6.4.

The State/Province drop-down in the cart is working fine, but I would like to change the behavior when there are no State/Province to select.
I would like to change the string "Please select" to something like "Default" or "No selection needed".
I made some search, but I was not able to find the file to modify.

Another (better) solution would be to have the drop-down shown only when a selection is required.

Can someone tell me where to find the code responsible for the drop-down and, maybe, tell me if the second solution is feasible?

Thank everybody for the help.

GJC Web Design

components\com_virtuemart\views\user\tmpl\edit_address_userfields.php

it is a loop

perhaps test for a state value (although complicated by the fact that it is fetched by ajax) and if none hide by css
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

woodhouse

Thank you for the hint.
I'll try and I'll post the results asap.

Daniele