Filter show alert when product does not exist

  • Posts: 84
  • Thank you received: 13
  • Hikashop Business
6 years 3 weeks 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

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 3 weeks 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.057 seconds
Powered by Kunena Forum