hello!
I need help to insert placeholder text inside virtuemart registration form.
I know how to insert this inside .xml file or .php file but where is registration.xml in virtuemart 3.x?
please help
Hi,
If i understand correctly your problem, You don't have a registration form XML, but userfields rendered from database
see: YOURSITE/administrator/index.php?option=com_virtuemart&view=userfields
the file rendering it is : YOURSITE\components\com_virtuemart\views\user\tmpl\edit_address_userfields.php
or in cart : YOURSITE\components\com_virtuemart\views\cart\tmpl\default_cartfields.php
and use echo $field['formcode']
to display the inputs and, currently, you cannot override this.
See d:\WEB\wamp\www\cleancut.se\administrator\components\com_virtuemart\models\userfields.php and search for formcode for more.
THe only solution i see(without hack), is to user a regex or string replace in the field you need to add the placeHolder
to get field Name
change for eg.
foreach($this->userFieldsCart['fields'] as $field) {
to
foreach($this->userFieldsCart['fields'] as $fieldName => $field) {
then you can check by $fieldName to know when you have to add the placeholder
I hope this help you,
Patrick