VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: woodhouse on November 02, 2016, 13:13:41 PM

Title: State/Province dropdown when no State configured
Post by: woodhouse on November 02, 2016, 13:13:41 PM
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.
Title: Re: State/Province dropdown when no State configured
Post by: GJC Web Design on November 02, 2016, 15:03:26 PM
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
Title: Re: State/Province dropdown when no State configured
Post by: woodhouse on November 03, 2016, 10:20:40 AM
Thank you for the hint.
I'll try and I'll post the results asap.

Daniele