Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
https://quocbinhvip.blogspot.com
https://sites.google.com/site/qbinh68/
https://sites.google.com/site/qbinh68/t ... t/opencart
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
While the opinion above may have its truth, the downside of this methodology is that even an underage customer could state he has the legal age from the form. :/andyyblake wrote:Birth date in Registration form is very helpful as it prohibits the operators which are under age and it is one of the best way for putting the under age and the spammers outside of the site.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Everything fine in admin, i can see it in
customer_form.tpl file
well my question is how to sort the
Code: Select all
birth_date
This is what i did before.. Any suggested?customer_list.tpl
Thanks in advance..
Imeth Clay
http://imajiworks.com
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Finally I managed to do it & fix that thanks.. here is my solutionstraightlight wrote:Post your TPL file as an attachment. I will take a look at it.

Code: Select all
if (!empty($data['filter_birth_date'])) {
$implode[] = "DATE(c.birth_date) = DATE('" . $this->db->escape($data['filter_birth_date']) . "')";
}
Code: Select all
if (!empty($data['filter_birth_date'])) {
$implode[] = "DATE(birth_date) = DATE('" . $this->db->escape($data['filter_birth_date']) . "')";
}
you can see my admin/view/template/sale/customer_list.tpl & customer_form.tpl file as attachment bellowc.birth_date
Now user can input their dob and edited later on their account page instanly, in the backend/admin i can also see and filter Customer DOB and edited in customer form without any problem..

Here are my screenshoot :
i love this forum.. thanks mates

Attachments
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Could someone be so kind to point out the code for validating the birthday field?
To verify if it is a valid date.
All I can do is this:
in:
catalog\controller\account\register.tpl in function:
private function validate()
add this:
if ( (utf8_strlen($this->request->post['birth_date'] == '')) ) {
$this->error['birth_date'] = $this->language->get('error_birth_date');
}
but this will only check if it is empty. Not validate the field date.
Thanks
2012-11-26 17:06:04 - PHP Notice: Undefined variable: sort_birth_date in /home/t/torshamm/www/textiltryck/admin/view/template/sale/customer_list.tpl on line 53
2012-11-26 17:06:04 - PHP Notice: Undefined variable: column_birth_date in /home/t/torshamm/www/textiltryck/admin/view/template/sale/customer_list.tpl on line 53
2012-11-26 17:06:04 - PHP Notice: Undefined variable: filter_birth_date in /home/t/torshamm/www/textiltryck/admin/view/template/sale/customer_list.tpl on line 110
2012-11-26 17:06:04 - PHP Notice: Undefined index: birth_date in /home/t/torshamm/www/textiltryck/admin/view/template/sale/customer_list.tpl on line 129
I understand that I have to add "column_birth_date" into my language file. I've tried to add it into sale/customer.php but it won't help. is there anywhere eles to declare it ?





please i beg you all please help me on this (how do i fix this ) please and thanks once again thanks thanks i really appreciate you all ... thanks ...

Visit our Store http://www.Alzoco.com for more info
Users browsing this forum: No registered users and 3 guests