Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.1.0.0] Customer Custom Fields do not populate #13818

Open
Dave3009 opened this issue Mar 27, 2024 · 1 comment
Open

[4.1.0.0] Customer Custom Fields do not populate #13818

Dave3009 opened this issue Mar 27, 2024 · 1 comment
Assignees
Labels
Needs Testing Possibly fixed, needs to be tested/verified

Comments

@Dave3009
Copy link

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!

@danielkerr danielkerr self-assigned this Apr 23, 2024
@danielkerr danielkerr added the Needs Testing Possibly fixed, needs to be tested/verified label Apr 23, 2024
@pemaier
Copy link
Contributor

pemaier commented Apr 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Testing Possibly fixed, needs to be tested/verified
Projects
None yet
Development

No branches or pull requests

3 participants