When I am logged into the admin panel in opencart, I want to view the customers page, but when I select it it just goes white? no error messages or anything?
Can you please help? It's opencart 2.2
Thanks
Luke
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Attachments
fix Admin Customer/Customer
Why use a ocmod if you only have to edit 2 files?ojars26 wrote:This should fix!
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
A matter of preferences, I presume. Opencart does provide the extension as part of the core regardless how many files that needs to be edited.i2Paq wrote:Why use a ocmod if you only have to edit 2 files?ojars26 wrote:This should fix!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
When I try to access Customers from the Admin Dashboard, I get this error message:
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /xxxx/xxxx/public_html/shop/admin/controller/customer/customer.php on line 1105
Open Cart version is 2.2.0.0
Is it anything I could mend myself?
Thanks,
Erhard
i2Paq wrote:Why use a ocmod if you only have to edit 2 files?ojars26 wrote:This should fix!
This worked for me and was easy to do
sorry this worked for me and as its only 1 file was easy to addojars26 wrote:This should fix!
https://github.com/opencart/opencart/issues/4030
change \admin\controller\customer\customer.php line 1105
from
Code: Select all
} elseif (($custom_field['type'] == 'text' &&
!empty($custom_field['validation'] &&
$custom_field['location'] == 'address'))
&& !filter_var($value['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => $custom_field['validation'])))) {
to
Code: Select all
@waqasjawed @Sufisa @opencarteli
@nikto1
nikto1 commented on 3 Mar
Opencart 2.2.0.0. See title.
Solution:
focus on opensource for online shopping websites
my site:bestshop24h.com
I am not sure how this replacement code really fixes the problem here ...bestshop24h wrote:the solution is here
https://github.com/opencart/opencart/issues/4030
change \admin\controller\customer\customer.php line 1105
fromCode: Select all
} elseif (($custom_field['type'] == 'text' && !empty($custom_field['validation'] && $custom_field['location'] == 'address')) && !filter_var($value['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => $custom_field['validation'])))) {
to
Code: Select all
@waqasjawed @Sufisa @opencarteli @nikto1 nikto1 commented on 3 Mar Opencart 2.2.0.0. See title. Solution:
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 9 guests