News:

Support the VirtueMart project and become a member

Main Menu

Mandatory fields in registration

Started by serhiox, October 17, 2013, 18:43:20 PM

Previous topic - Next topic

serhiox

Hello,
I published mandatory fields in registration form, but there is no * next to field name. And also it's not showing what these fields are mandatory.
Where is my mistake or what shuold i configure?
Picture:

serhiox


Melmoi


GJC Web Design

these don't show mandatory because if u enable guest checkout as well they aren't

I know that isn't a solution.. I wrote on here ages ago a fix for VM2 that worked for both cases  - no idea if it will work for vm3

but the simplest way is if u never have guest checkout is to do it in the template

in the loop of fields add something like

<label class="<?php echo $field['name'] ?>" for="<?php echo $field['name'] ?>_field">
<?php echo $field['title'] ;
if($field['required'] || $field['name'] == 'username' || $field['name'] == 'password'  ) echo ' <span style="color:red">*</span>'; ?>
                  </label>

you get the idea

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

Melmoi

Thanks for your answer :)

Problem is I would like to have both registration and guest checkout :(

I did not not it was a problem in virtuemart from a long time... Guess I'll need to choose between registration an guest checkout :(

Melmoi

I desasctivated guest checkout but the problem is still here : only e-mail is required, it is gonna make me mad :s

GJC Web Design

QuoteI wrote on here ages ago a fix for VM2 that worked for both cases  - no idea if it will work for vm3

all you've got to do is find it and see if it works

if your not using guest then->

Quotebut the simplest way is if u never have guest checkout is to do it in the template

in the loop of fields add something like

<label class="<?php echo $field['name'] ?>" for="<?php echo $field['name'] ?>_field">
<?php echo $field['title'] ;
if($field['required'] || $field['name'] == 'username' || $field['name'] == 'password'  ) echo ' <span style="color:red">*</span>'; ?>
                  </label>

you get the idea
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