VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Mike J on May 08, 2016, 23:11:08 PM

Title: Registration Field Placeholders
Post by: Mike J on May 08, 2016, 23:11:08 PM
Hi there,

I like the way x-cart populates registration fields with sample text (as attached) - This is different to VMs description field-tip.

Found a few posts on here re rego placeholders but no clear where and how. So...

1) Can the standard "description field-tip" function be edited in a way that including "Your first name" there will insert placeholder="Your first name" in the corresponding field/form? Or...
2) Is there an easy way to get at each rego field so that placeholder="" can be added to function somewhat like this: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_placeholder

Stan gives great instructions here but theses are limited to his OPC https://www.rupostel.com/phpBB3/viewtopic.php?f=7&t=1396

Cheers
Title: Re: Registration Field Placeholders
Post by: GJC Web Design on May 09, 2016, 19:35:20 PM
I guess the closest u can get to it is over ride components\com_virtuemart\views\user\tmpl\edit_address_userfields.php

and build your own   <?php echo $field['formcode'] ?>