Order listing search custom fields

  • Posts: 9
  • Thank you received: 0
  • Hikashop Business
8 years 5 months ago #243204

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.0
-- Joomla version -- : 3.5.1

Hi,

We are using In Hikamarket Frontend and need to be able to search for values in custom fields of the type item i.e. from the _hikashop_order_product table. Can you advise how this might be achieved.

Thanks,

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #243207

Hi,

There is a very similar request in that thread :
www.hikashop.com/forum/23-market-how-to/...o-vendor-orders.html

The HikaMarket order listing just use the table "hikashop order" and "hikashop user".
In order to include extra tables (for filters or search) requires for the moment the usage of a plugin.

Perform a link with the table "order product" would be complicated because the SQL will return one line per order product.
So if an order have 3 products, you would have 3 rows in the SQL result.
Because of the aggregation on the "order_id", you will right have one row but you can't know which one it would be.

To summarize, including the "order products" in the query is possible and could work for a search feature.
But it won't be the right usage if you want to display these order product information in the order listing afterwards.

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.

Moderators: Obsidev
Time to create page: 0.052 seconds
Powered by Kunena Forum