opencart / opencart

A free shopping cart system. OpenCart is an open source PHP-based online e-commerce solution.

Home Page:https://www.opencart.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[4.1.0.0] Customer Custom Fields do not populate

Dave3009 opened this issue · comments

In the latest opencart-master the customer custom fields do not populate on admin/view/template/customer_form.twig

Root cause:
In admin/controller/customer/customer.php line: 601
$data['account_custom_field'] = $customer_info['custom_field'];
Solution:
Change line 601 to
$data['account_custom_field'] = json_decode($customer_info['custom_field'],true);

This was working in 4.0.2.3 which is listed as the most recent release, downloading the latest master shows version 4.1.0.0, not sure if I'm doing something wrong here!

Versiion: master today
Activated custom fields:
image

Display at customer frontend: (OK)
image

Display at customer frontend address book entries: (not present)
image

Display at customer frontend address entry: (OK)
image

Display at backend customer edit: (OK)
image

Display at backend address list: (not present)
image

Display at backend address edit: (Date is correct displayed but the deactivated custom fields are not filtered)
image