- Posts: 86262
- Thank you received: 14242
Sorry, no results found - try a different search..
If not, it means that you have a view override of the listing view file as I explained previously and you would have to remove the override in order to get that code.
Please Log in or Create an account to join the conversation.
}elseif(( !$this->module || JRequest::getVar('hikashop_front_end_main',0) ) && (@$_GET=='product' || @$_GET=='product') && (@$_GET=='listing' || @$_GET=='listing') && !empty($this->filters) && count($this->filters)){
echo JText::_('HIKASHOP_NO_RESULT');
Please Log in or Create an account to join the conversation.
If you change the code:
echo JText::_('HIKASHOP_NO_RESULT');
to:
echo 'no resutls';
in that code, do you see the message ?
If yes, then it indicates a problem with your translation override.
If no, then there is something else that we can't reproduce and we would have to look at your backend in order to check the issue and would thus need a backend access.
Please Log in or Create an account to join the conversation.
The message still does not appear when the filter button is used or when the auto update is chosen after the filter field is updated.
I will pm the backend login details for you.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
You can send it to me through a Private Message so that I can directly check it for youI will pm the backend login details for you.
Thanks.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Your issue was coming from the IF condition, I just changed it to :
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
So I am trying to have some message too if no results. I use module filter and I do have this code in my listing file:
But text won't show up. Only if I change it to this ( as per @lousyfool post ) works:
I also tried Mohamed code but still no luck....
After reading Nicolas post that that condition is necessary I thought I should do like it needs by default for Hikashop.
What could be the problem?
Thanks
Please Log in or Create an account to join the conversation.
The code suppose that the filters are displayed at the top of the listing. So that's probably why since you're using the module on the side.
If the simple if works for you, then that's fine.
Please Log in or Create an account to join the conversation.
So after using it for 1 day I found that I get message no results in product page if there is no related products. So I need to get it work...
I have used this code:
instead of this which doesn't work for me:
Would appreciate for any help.
Thanks
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
you should use that code instead :
Please Log in or Create an account to join the conversation.
Well this code doesn't work too.
Any other suggestions?
Thanks
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
We can't reproduce your issue so the only solution will be to :
- Give us detailed information on how to reproduce your issue through your website
- Give us a temporary back-end/FTP access
Note that you can send your access through our contact form, please don't forget to specify that thread in your message :
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
Details have been sent.
Thanks
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
My bad, I thought that your issue was coming from the "No result" error message which wasn't correctly displaying through your product listing, but it's actually coming from your related product module on your "product page".
Can you give me a link to the page of a product which have that issue ?
Please Log in or Create an account to join the conversation.
Here is example of product page.
kyra.lt/marskineliai/marskineliai-cute
If you would change code to:
It will give no result message on the bottom of the product page.
Regards
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Yes but your code isn't right you shouldn't use :
Please Log in or Create an account to join the conversation.
Yes, code isn't right...
I have tried to remove my listing file customization and have used default hikashop view but still no message...
So what I did for now is:
Added this code to product/listing view
and added this css to hide that message on product page
body.view-product div.custom_alert{
display:none!important;
}
It works but strange that default hikashop view isn't working for me...
Thank you Mohamed for your help.
Kind Regards
Please Log in or Create an account to join the conversation.
I have HikaShop 2.6.0 and Joomla 3.4.8
I tried to put your code from post #166305 before the line } else if(!empty($this->rows) && !empty($this->categories)) { ... but I can't find it. So, I tried to put the code in file Display>Views>product>listing_div in other places, but whith no results. Message isn't shown at all.
Help me please)
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
You should probably :
1. Download the last Hikashop version through our website, install it and test it again
2. Check that you correctly have that code through your "listing" file of the "product" view of your front-end template via "Hikashop->Display->Views" :
}elseif(( !$this->module || JRequest::getVar('hikashop_front_end_main',0) ) && (@$_REQUEST=='product' || @$_REQUEST=='product') && (@$_REQUEST=='listing' || @$_REQUEST=='listing') && !empty($this->filters) && count($this->filters)){
echo JText::_('HIKASHOP_NO_RESULT');
}
Please Log in or Create an account to join the conversation.