VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: skhn123 on July 17, 2014, 08:22:14 AM

Title: Can i change State / Province / Region dropdown to simple textbox field?
Post by: skhn123 on July 17, 2014, 08:22:14 AM
Hello Everyone  :)
Can anyone tell me if it is possible to change State / Province / Region dropdown in checkout to simple textbox field.

thanks
Sadique
Title: Re: Can i change State / Province / Region dropdown to simple textbox field?
Post by: GJC Web Design on July 17, 2014, 10:27:24 AM
Probably - but not simple as the elements are formed elsewhere and looped thru

basically you want to insert text fields with the names as below and hide the selects

shipto_virtuemart_state_id
billto_virtuemart_state_id

have u tried replacing the virtuemart_state_id shopper field with a text field though? might break everything

Title: Re: Can i change State / Province / Region dropdown to simple textbox field?
Post by: skhn123 on July 17, 2014, 13:07:43 PM
Hey GJC
yes i tried replacing virtuemart_state_id dropdown with text field and it seem to working in my site and in orders (FE + BE) but i dont know what would be impact of it in payment. because i have tried it with Standard payment method (COD).
Title: Re: Can i change State / Province / Region dropdown to simple textbox field?
Post by: GJC Web Design on July 17, 2014, 15:02:28 PM
if it saves correctly to the address fields in the Table then would assume all OK - it is just data - whether a select or text is just a means of entering it
Title: Re: Can i change State / Province / Region dropdown to simple textbox field?
Post by: skhn123 on July 18, 2014, 12:33:00 PM
Thanks GJC that's what i wanted to know.  :)