Filter show alert when product does not exist

  • Posts: 76
  • Thank you received: 11
  • Hikaserial Standard Hikashop Business
1 year 9 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: 70181
  • Thank you received: 10507
  • MODERATOR
1 year 9 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.049 seconds
Powered by Kunena Forum