- Posts: 13
- Thank you received: 0
Search for vendor listing
- wouter.galia
-
Topic Author
- Offline
Less
More
8 years 7 months ago #288133
by wouter.galia
Search for vendor listing was created by wouter.galia
Hi
Is it possible to create a vendor search module? Can this be done by using an event hook onBeforeVendorListingDisplay? Can I use this event to get the search results?
Can you give me some advice in what the best approach would be?
Regards
Wouter
Is it possible to create a vendor search module? Can this be done by using an event hook onBeforeVendorListingDisplay? Can I use this event to get the search results?
Can you give me some advice in what the best approach would be?
Regards
Wouter
Please Log in or Create an account to join the conversation.
8 years 7 months ago #288155
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 Search for vendor listing
Hello,
In fact, you have almost "nothing" to do except that sending the parameter "search" (in the URL or as POST data).
HikaMarket vendor listing will automatically perform the search on the fields listing in "search_map" that you can see in data given during the trigger "onBeforeVendorListingDisplay".
Regards,
In fact, you have almost "nothing" to do except that sending the parameter "search" (in the URL or as POST data).
HikaMarket vendor listing will automatically perform the search on the fields listing in "search_map" that you can see in data given during the trigger "onBeforeVendorListingDisplay".
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.
- wouter.galia
-
Topic Author
- Offline
Less
More
- Posts: 13
- Thank you received: 0
8 years 7 months ago #288187
by wouter.galia
Replied by wouter.galia on topic Search for vendor listing
Thank you for your reply. Will this work as well when searching for keywords in the description or other fields?
Regards
Wouter
Regards
Wouter
Please Log in or Create an account to join the conversation.
8 years 7 months ago #288189
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 Search for vendor listing
Hello,
As mentioned, the list of fields is available via the trigger ( search_map ) and you can tweak it if you want to change/add/ the fields that you want to look into.
By default it's
Regards,
As mentioned, the list of fields is available via the trigger ( search_map ) and you can tweak it if you want to change/add/ the fields that you want to look into.
By default it's
Code:
$trigger_params['search_map'] = array(
'vendor.vendor_name',
'vendor.vendor_description',
'vendor.vendor_id'
);
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.
- wouter.galia
-
Topic Author
- Offline
Less
More
- Posts: 13
- Thank you received: 0
8 years 7 months ago #288244
by wouter.galia
Replied by wouter.galia on topic Search for vendor listing
Thank you, this helps allot!
Regards
Wouter
Regards
Wouter
Please Log in or Create an account to join the conversation.
- wouter.galia
-
Topic Author
- Offline
Less
More
- Posts: 13
- Thank you received: 0
8 years 7 months ago #288518
by wouter.galia
Replied by wouter.galia on topic Search for vendor listing
Hi Jerome,
I tried to create the extension as you described but when I put a variable in the search it is not working.
demo.hikashop.com/index.php/en/hikamarke...sting?search=vendor1
Even in the vendor listing if I request a variable as search it is not working.
Can you show me a working url as example?
Regards
Wouter
I tried to create the extension as you described but when I put a variable in the search it is not working.
demo.hikashop.com/index.php/en/hikamarke...sting?search=vendor1
Even in the vendor listing if I request a variable as search it is not working.
Can you show me a working url as example?
Regards
Wouter
Please Log in or Create an account to join the conversation.
8 years 7 months ago #288523
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 Search for vendor listing
Hello,
My bad, I didn't realized that the "pageInfo" is not loaded via the common function ; so the loading of the "search" is missing.
In the view.html.php file of the vendormarket folder ; please replace
By
And it would activate the search.
Regards,
My bad, I didn't realized that the "pageInfo" is not loaded via the common function ; so the loading of the "search" is missing.
In the view.html.php file of the vendormarket folder ; please replace
Code:
$pageInfo->limit->start = $app->getUserStateFromRequest($this->paramBase . '.limitstart', 'limitstart_' . $this->params->get('main_div_name'), 0, 'int');
Code:
$pageInfo->limit->start = $app->getUserStateFromRequest($this->paramBase . '.limitstart', 'limitstart_' . $this->params->get('main_div_name'), 0, 'int');
$pageInfo->search = JString::strtolower($app->getUserStateFromRequest($this->paramBase.'.search', 'search', '', 'string'));
$pageInfo->search = trim($pageInfo->search);
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.237 seconds