can not search by username. maybe is a problem.

  • Posts: 201
  • Thank you received: 7
3 months 1 week ago #363062

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 Log in or Create an account to join the conversation.

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
3 months 1 week ago #363078

Hello,

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.

  • Posts: 201
  • Thank you received: 7
3 months 1 week ago #363079

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.

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
3 months 1 week ago #363095

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).

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.057 seconds
Powered by Kunena Forum