- Posts: 221
- Thank you received: 8
can not search by username. maybe is a problem.
2 years 2 weeks ago #363062
by sadaf3d
can not search by username. maybe is a problem. was created by sadaf3d
hi
please look at :
demo.hikashop.com/index.php/en/hikamarke...-panel/order/listing
in the search field you can not use name of user for example "superuser" or "demouser" to find his orders. is it logical or it is hikashop scenario?
please look at :
demo.hikashop.com/index.php/en/hikamarke...-panel/order/listing
in the search field you can not use name of user for example "superuser" or "demouser" to find his orders. is it logical or it is hikashop scenario?
Please Log in or Create an account to join the conversation.
2 years 2 weeks ago #363078
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic can not search by username. maybe is a problem.
Hello,
Yes, it's a security choice to not let the vendors see/interact with the username.
Regards,
Yes, it's a security choice to not let the vendors see/interact with the username.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
2 years 2 weeks ago #363079
by sadaf3d
Replied by sadaf3d on topic can not search by username. maybe is a problem.
Thank you Jerome but, I say about name , not username. I can not search name
Please Log in or Create an account to join the conversation.
2 years 2 weeks ago #363095
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic can not search by username. maybe is a problem.
Hello,
Just checking the code.
In the order listing, the Joomla user table is not include in the SQL query ; only the HikaShop user table.
That's why the search can be perform on the email address and not on the other fields.
As I wrote previously, the Joomla user include sensitive data so HikaMarket prefers not performing a "join" on that table.
But if you really want to do so, you can use the trigger "onBeforeOrderListing" to add the Joomla user table in the "joins" (array) and add the fields you want in the "searchMap" (array).
Regards,
Just checking the code.
In the order listing, the Joomla user table is not include in the SQL query ; only the HikaShop user table.
That's why the search can be perform on the email address and not on the other fields.
As I wrote previously, the Joomla user include sensitive data so HikaMarket prefers not performing a "join" on that table.
But if you really want to do so, you can use the trigger "onBeforeOrderListing" to add the Joomla user table in the "joins" (array) and add the fields you want in the "searchMap" (array).
Code:
onBeforeOrderListin($paramBase, &$extrafilters, &$pageInfo, &$filters, &$joins, &$searchMap)
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: sadaf3d
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.182 seconds