Hello
i am using opencart 3.0.2 with an dutch language pack
and i want a date of birth field in the registration form so i added it in the custom field section of customer in the admin area
it seems to work fine but the date format is not correct for my country it is yyyy-mm-dd and i need it to be dd-mm-yyyy
i try to find it in the language pack admin and catalog folder but i cant find it
on everything else the date format is correct (costumer registration, order date) dd-mm-yyyy
can someone please help me to correct it
kind regards
Leslie (dutch,Nederlands)
Well, in the default OC v.3.0.2.x Front + Admin Theme, the date is written like this:
data-date-format="YYYY-MM-DD"
And the most simple way to change this, in the very many files, where it exists,
would be, to mass search/replace this line on your Computer to:
data-date-format="DD-MM-YYYY"
and then, reupload the entire Front+back Theme Content again, if you are
not able to create a VqMod or OcMod, doing this 'globally'.
Just an idea, since I don't know, if this can possibly be changed somewhere
in the v.3.x Admin Section
Ernie
---
PS: This one seems to do it in OC-3, but possibly in the opposite way:
https://www.opencart.com/index.php?rout ... n_id=27267
---
All v.3.0.2.x Admin + Theme files, where it exists:
---
Information to this found here:
https://www.opencart.com/index.php?rout ... n_id=26934
data-date-format="YYYY-MM-DD"
And the most simple way to change this, in the very many files, where it exists,
would be, to mass search/replace this line on your Computer to:
data-date-format="DD-MM-YYYY"
and then, reupload the entire Front+back Theme Content again, if you are
not able to create a VqMod or OcMod, doing this 'globally'.
Just an idea, since I don't know, if this can possibly be changed somewhere
in the v.3.x Admin Section
Ernie
---
PS: This one seems to do it in OC-3, but possibly in the opposite way:
https://www.opencart.com/index.php?rout ... n_id=27267
---
All v.3.0.2.x Admin + Theme files, where it exists:
---
Information to this found here:
https://www.opencart.com/index.php?rout ... n_id=26934
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I tried to change the codes but almost all were good dd-mm-yyy i tink it has to do something with the bootstrap-datetimepicker
but i cant find what I have to change
but i cant find what I have to change
Attachments
datepicker.png (55.47 KiB) Viewed 2801 times
Friends, I'm dealing with this problem since version 1.5.x. In the 2.x version, I tried and solved it, but in the 3.x version, it made it difficult to solve this problem. Unfortunately, this problem is never taken seriously in the forums and passed. Someone even asked, "Why do you want to change it?" Note: Sorry for Google Translate.
Don't know where the problem is??
Changing the format is a very easy task.
For example, you want the output like: 06.11.2018 (today) instead of the standard 2018-11-06
For OpenCart 3.0.2.0: goto
And change it to your wanted output. e.g.:
Do that in every file you want to have another display than the standard.
It would be much simplier if the format could be changed via the admin or use a variable in the language master file.
p.s.: Ernie was in the right way above.
Changing the format is a very easy task.
For example, you want the output like: 06.11.2018 (today) instead of the standard 2018-11-06
For OpenCart 3.0.2.0: goto
Look foradmin/view/template/customer/custom_field_form-twig
Code: Select all
data-date-format="YYYY-MM-DD"
Code: Select all
data-date-format="DD.MM.YYYY"
It would be much simplier if the format could be changed via the admin or use a variable in the language master file.
p.s.: Ernie was in the right way above.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Who is online
Users browsing this forum: No registered users and 140 guests