customer tracking

  • Posts: 12
  • Thank you received: 0
8 years 2 weeks ago #254735

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.4.45

Hello,
we're happy to use hikashop on our website, now we need a solution to have tracking reports of some users that are in a specific group of users,

from the backend in hikashop would be very useful to have a (filterable) coloumn in the "orders" view to see the "joomla user group" of each user, is this somehow possible?

Actually we need to understand if users that comes to our website that are part of a particular group of users (organizations) are buying products on hikashop. I was thinking about putting those users in specific "joomla-user-groups" manually, and that's the reason of the question above, is there a easier (and maybe more automated) way to reach this goal?

waiting for your answer, all the best

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 weeks ago #254742

Hi,

Filtering on the Joomla user group is not easy because a joomla user can have several groups.
So you should add extra tables in the order listing query in order to link the Joomla table an the user groups.
To do so, you have to use a custom plugin and the HikaShop trigger "onBeforeOrderListing".

function onBeforeOrderListing($paramBase, &$extrafilters, &$pageInfo, &$filters, &$tables, &$searchMap) {}
It will allow you to add filters (in the interface and the query) and new elements for the search map.

Otherwise, thanks to a view override, you can use the order objects and perform a query to add a new column and display the corresponding Joomla user groups.

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.

Time to create page: 0.052 seconds
Powered by Kunena Forum