News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom Shooper field in registration form

Started by prismalight, March 02, 2012, 17:12:42 PM

Previous topic - Next topic

prismalight

I am using VM2.0N on Joomla 2.5.1 and discovered this bug.
I created a custom shopper field birthday and type date. At the back-end all looks nice. I get a nice button "never".
At the registration form it just show a textinput field pre-filled with "COM_VIRTUEMART_NEVER". When I click into the field the calender shows up and it works.

adelrami


maxispin

#2
<input type="date" value="COM_VIRTUEMART_NEVER" name="Test_text" class="datepicker" id="Test_field_text">

Means: default value for Custom Shopper field DATE


Solution:

Add into: ../language/fi-FI/fi-FI.com_virtuemart.ini   <- replace fi-FI with your language
COM_VIRTUEMART_NEVER=""
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

jjk

#3
Quote from: prismalight on March 02, 2012, 17:12:42 PM
...I created a custom shopper field birthday and type date. At the back-end all looks nice. I get a nice button "never".
At the registration form it just show a textinput field pre-filled with "COM_VIRTUEMART_NEVER". When I click into the field the calender shows up and it works.

The simple solution probably is to copy the key and string COM_VIRTUEMART_NEVER="-Never-" from the backend language file en-GB.com_virtuemart.ini to the frontend en-GB.com_virtuemart.ini or whatever language you are using.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

DaggaTora

Now with 2.0.7j it doesn't allow to pick a date making impossible to register if birthday is required.
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

jjk

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

DaggaTora

#6
FIXED!!!

;D ;D ;D ;D ;D

but... how can I change Date Format?

I've tried:

https://forum.virtuemart.net/index.php?topic=94892.0
https://forum.virtuemart.net/index.php?topic=90958.0

with no results...
Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

DaggaTora

Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

DaggaTora

Joomla 2.5.17 | VM2.0.26d | PHP 5.3.28