override customer/standard.php and change in search function
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
override customer/standard.php and change in search function
override customer/standard.php and change in search function.
after override, i added one condition
Showing error: ErrorInvalid name "customer.siteid", /var/www/html/aimeos/myshop/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Criteria/Expression/Compare/Base.php:104
I also tried because all admin user added on the user table
Showing error: ErrorInvalid name "user.siteid", /var/www/html/aimeos/myshop/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Criteria/Expression/Compare/Base.php:104
Infact when i am trying following, its working:
Or
Can anyone help me about this?
after override, i added one condition
Code: Select all
if(!$user->superuser){
$search->setConditions( $search->compare( '==', 'customer.siteid', $user->siteid ) );
}
I also tried because all admin user added on the user table
Code: Select all
if(!$user->superuser){
$search->setConditions( $search->compare( '==', 'user.siteid', $user->siteid ) );
}
Infact when i am trying following, its working:
Code: Select all
if(!$user->superuser){
$search->setConditions( $search->compare( '==', 'customer.status', 1 ) );
}
Code: Select all
if(!$user->superuser){
$search->setConditions( $search->compare( '==', 'customer.salutation', 'my' ) );
}
Can anyone help me about this?
Re: override customer/standard.php and change in search function
I have fixed this issue, just check the usertype and add my conditions.