Filter show alert when product does not exist
8 years 3 weeks ago #299927
by Jabatec
Javier Ballester
Filter show alert when product does not exist was created by Jabatec
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
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.
8 years 2 weeks ago #299929
by nicolas
Replied by nicolas on topic Filter show alert when product does not exist
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:
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:
Code:
} 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.044 seconds