Fix Bug customers.php
Closed this issue · 2 comments
administrator/components/com_j2store/controllers/customers.php
$state['customer_name'] = $app->input->getstring('customer_name','');
and
'customer_name' => array(
'type' => 'fieldsearchable',
'sortable' => 'true',
'show_link' => 'true',
'url' => "index.php?option=com_j2store&view=customer&task=viewOrder&email_id=[ITEM:ID]",
'url_id' => 'email',
'label' => 'J2STORE_CUSTOMER_NAME'
),
change "customer_name" to "first_name"
$state['first_name'] = $app->input->getstring('first_name','');
. . .
'first_name' => array(
'type' => 'fieldsearchable',
'sortable' => 'true',
'show_link' => 'true',
'url' => "index.php?option=com_j2store&view=customer&task=viewOrder&email_id=[ITEM:ID]",
'url_id' => 'email',
'label' => 'J2STORE_CUSTOMER_NAME'
),
We would like to inform you that we typically retrieve customer name inputs and display the custom name field in JStore under Sales -> Customers on both J2Store3 and J2Store4. Upon checking the admin backend on our site, we observed that the customer name is being displayed without any issues.
If you wish to display the customer's first name instead of the customer name input in the customer name field, you can achieve this by creating a template override for that file on your site. For your reference, please review the attached image [image]
@mehdininja We believe the reported issue has been addressed. Could you please confirm that the problem is resolved on your end? If everything looks good, we'll go ahead and close this issue.
If you have any further questions or if there's anything else you'd like assistance with, please don't hesitate to let us know. We appreciate your feedback!