Filter show alert when product does not exist

  • Posts: 81
  • Thank you received: 13
  • Hikaserial Standard Hikashop Business
5 years 5 months ago #299927

Hi,
I am working with a filtering module with 2 filters.
and I wanted to ask the possibility of showing an alert when product filter does not exist (product), instead of showing a blank space in the component area.

Thank you very much.
Javier


Javier Ballester
Hikashop Joomla! Magazine in Spanish
Tu tienda Online Joomla! Hikashop
magazine.joomla.org/es/all-issues/februa...enda-online-joomla-3

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

  • Posts: 81508
  • Thank you received: 13064
  • MODERATOR
5 years 5 months ago #299929

Hi,

Normally you have the HIKASHOP_NO_RESULT translation key that should be displayed on the page when no results are found after using the filter system.
It's displayed by that code in the product/listing.php view file:

} elseif(( !$this->module || hikaInput::get()->getVar('hikashop_front_end_main',0) ) && ($ctrl == 'product'  || $ctrl == 'category') && $task == 'listing' && !empty($this->filters) && count($this->filters) && !empty($this->filter_set)) {
		if(!empty($htmlFilter))
			echo $htmlFilter;
		echo JText::_('HIKASHOP_NO_RESULT');
	}

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

Time to create page: 0.054 seconds
Powered by Kunena Forum