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

Registration Field Placeholders

Started by Mike J, May 08, 2016, 23:11:08 PM

Previous topic - Next topic

Mike J

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
VirtueMart 4.0.2 10661
Joomla! ‎3.10.11
PHP 7.4.30
mysql 5.7.39

GJC Web Design

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'] ?>
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