HikaMarket Vendor User Location Filter: Empty field means all

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
4 months 3 days ago #362162

-- HikaShop version -- : 5.1.0
-- HikaMarket version -- : 4.1.1
-- Joomla version -- : Joomla 4.46
-- PHP version -- : 8.1.29

I'm trying to set this up to filter not by location so much but by vendor_name field in conjunction with a HikaMarket Vendor listing menu item.

I have the "Empty field means *all*" set to YES. See the screenshot of the plugin's settings.

Initially, when visiting the Vendor listing menu item, all vendors are displayed, and the module search is empty. This is perfect, as expected.

If you search via the module, it filters based on the vendor_name field too. This is perfect, as expected.

However, if I empty the search field and hit the enter or search button on the modules, nothing is displayed. That's not what I expected with the Empty field, which means *all*" set to YES.

Searching again with a value still works so it is only when it is empty that nothing appears after an initial search.

Is this a bug?

Attachments:

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
4 months 3 days ago #362164

Hello,

Do you have a website link where I can test your issue ?

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: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
4 months 3 days ago #362165

Everything is behind IP restrictions while we are in development and also requires sharing a test login, as pretty much everything is for registered Joomla users only.

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
3 months 3 weeks ago #362367

Hello,

Sorry for the late reply.
In the file "plugins/hikamarket/vendorlocationfilter/vendorlocationfilter.php" you need to replace

		$filter_mode = $this->params->get('filter_mode', 'zip;city');
By
		if($empty_is_all && empty($location_search))
			return;
		$filter_mode = $this->params->get('filter_mode', 'zip;city');
In order to have the same behavior with vendor listings than product listings.

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: jazzmang

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

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
3 months 3 weeks ago #362382

That works as expected!

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

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