[Skip to main content](#vessel-content)

#   Images articles dans résultat de recherche

##

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Away](/forum/user/32861-kilou)

Less More

- Posts: 704
- Thank you received: 34
-

11 years 5 months ago [\#201438](#201438) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  Replied by *[kilou](/forum/user/32861-kilou "View kilou's Profile")* on topic *[Images articles dans résultat de recherche](/forum/5-support-en-francais-french-support-/874565-images-articles-dans-resultat-de-recherche?start=20#201438 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  Bonjour, est-il possible d'afficher l'image de l'article quand on effectue une recherche dans la boutique. Dans notre cas nous avons des articles qui portent souvent le même nom, avoir l'image de l'article après une recherche cela faciliterait son identification.  Merci")*

Bonjour :dry:
…dernière question avant de clôturer ce message: est-il possible d’afficher un message quand aucun mot n’est introduit dans le champ de recherche ou quand aucun article n’est trouvé?
J’ai remarqué que quand on laisse le champ vide et on lance la recherche ce sont tous les articles de la boutique qui sont affichés, cela ne risque-t-il pas de surcharger le serveur même si l’affichage est limité à X articles par pages?

Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODc0NTY1LWltYWdlcy1hcnRpY2xlcy1kYW5zLXJlc3VsdGF0LWRlLXJlY2hlcmNoZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 5 months ago [\#201458](#201458) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Images articles dans résultat de recherche](/forum/5-support-en-francais-french-support-/874565-images-articles-dans-resultat-de-recherche?start=20#201458 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  Bonjour, est-il possible d'afficher l'image de l'article quand on effectue une recherche dans la boutique. Dans notre cas nous avons des articles qui portent souvent le même nom, avoir l'image de l'article après une recherche cela faciliterait son identification.  Merci")*

Bonjour,

Oui c'est tout à fait possible, il y a déjà des choses dans HikaShop pour cela et non, cela n'est pas génant pour le serveur ; pas plus qu'un listing de produit !

[ www.hikashop.com/forum/filters-search/87...ifferent-search.html](http://www.hikashop.com/forum/filters-search/870135-sorry-no-results-found-try-a-different-search.html)

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODc0NTY1LWltYWdlcy1hcnRpY2xlcy1kYW5zLXJlc3VsdGF0LWRlLXJlY2hlcmNoZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Away](/forum/user/32861-kilou)

Less More

- Posts: 704
- Thank you received: 34
-

11 years 5 months ago [\#201839](#201839) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  Replied by *[kilou](/forum/user/32861-kilou "View kilou's Profile")* on topic *[Images articles dans résultat de recherche](/forum/5-support-en-francais-french-support-/874565-images-articles-dans-resultat-de-recherche?start=20#201839 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  Bonjour, est-il possible d'afficher l'image de l'article quand on effectue une recherche dans la boutique. Dans notre cas nous avons des articles qui portent souvent le même nom, avoir l'image de l'article après une recherche cela faciliterait son identification.  Merci")*

Bonjour,
…désolé mais je ne comprends pas, ce n'est pas très clair.
Dans le lien que vous m'avez donné je n’arrive pas à placer le code comme il faut dans la vue *listing.php*, j’obtiens toujours une erreur de syntaxe.
Voici le code auquel [ Nicolas](http://www.hikashop.com/forum/filters-search/870135-sorry-no-results-found-try-a-different-search.html#166305) fait allusion dans sa réponse:
Code:

if(empty($this-&gt;rows) &amp;&amp; !empty($htmlFilter)){ echo '&lt;p&gt;Sorry, no results found - try a different search selection&lt;/p&gt;'; }

Pouvez vous me dire comment placer ce code juste avant la ligne ?
Code:

} else if(!empty($this-&gt;rows) &amp;&amp; !empty($this-&gt;categories)) {

Voici le code à modifier:
Code:

&lt;?php } } else if(!empty($this-&gt;rows) &amp;&amp; !empty($this-&gt;categories)) { if(!$this-&gt;module) echo $mainInfo; $allrows = $this-&gt;rows; $pagination = ''; if((!$this-&gt;module &#124;&#124; JRequest::getVar('hikashop_front_end_main',0)) &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total) { $pagination = $this-&gt;config-&gt;get('pagination','bottom'); $this-&gt;config-&gt;set('pagination', ''); } if((!empty($allrows) &#124;&#124; !$this-&gt;module &#124;&#124; JRequest::getVar('hikashop_front_end_main',0)) &amp;&amp; in_array($pagination, array('top','both')) &amp;&amp; $this-&gt;params-&gt;get('show_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total) { $this-&gt;pagination-&gt;form = '_top'; ?&gt;

D’ailleurs le message que vous m’avez donné fait aussi allusion à la vue *listing\_div.php*?
Faut-il effectuer une quelconque modification aussi dans cette vue?

Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODc0NTY1LWltYWdlcy1hcnRpY2xlcy1kYW5zLXJlc3VsdGF0LWRlLXJlY2hlcmNoZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

11 years 5 months ago [\#201882](#201882) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Images articles dans résultat de recherche](/forum/5-support-en-francais-french-support-/874565-images-articles-dans-resultat-de-recherche?start=20#201882 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  Bonjour, est-il possible d'afficher l'image de l'article quand on effectue une recherche dans la boutique. Dans notre cas nous avons des articles qui portent souvent le même nom, avoir l'image de l'article après une recherche cela faciliterait son identification.  Merci")*

C'est le code du dernier message du thread qu'il faut changer:
[ www.hikashop.com/forum/filters-search/87...t-search.html#201506](http://www.hikashop.com/forum/filters-search/870135-sorry-no-results-found-try-a-different-search.html#201506)
Ensuite, il suffit d'ajouter un override de traduction pour la clée HIKASHOP_NO_RESULT avec votre message.

Il n'y a pas à toucher à listing_div, just listing.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODc0NTY1LWltYWdlcy1hcnRpY2xlcy1kYW5zLXJlc3VsdGF0LWRlLXJlY2hlcmNoZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Away](/forum/user/32861-kilou)

Less More

- Posts: 704
- Thank you received: 34
-

11 years 5 months ago [\#202152](#202152) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  Replied by *[kilou](/forum/user/32861-kilou "View kilou's Profile")* on topic *[Images articles dans résultat de recherche](/forum/5-support-en-francais-french-support-/874565-images-articles-dans-resultat-de-recherche?start=20#202152 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  Bonjour, est-il possible d'afficher l'image de l'article quand on effectue une recherche dans la boutique. Dans notre cas nous avons des articles qui portent souvent le même nom, avoir l'image de l'article après une recherche cela faciliterait son identification.  Merci")*

Bonjour et merci, c'est bien le résultat recherché ![:)](/media/kunena/emoticons/8.png ":)") par contre j'essaye d'englober le message dans une balise &lt;div&gt; pour lui donner un style, mais je n'arrive à rien, la classe n'est pas prise en compte:
Code:

&lt;div class="alert alert-block"&gt; &lt;?php }elseif(( !$this-&gt;module &#124;&#124; JRequest::getVar('hikashop_front_end_main',0) ) &amp;&amp; (@$_REQUEST['ctrl']=='product' &#124;&#124; @$_REQUEST['view']=='product') &amp;&amp; (@$_REQUEST['task']=='listing' &#124;&#124; @$_REQUEST['layout']=='listing') &amp;&amp; !empty($this-&gt;filters) &amp;&amp; count($this-&gt;filters)){ echo JText::_('HIKASHOP_NO_RESULT'); } $html = ob_get_clean(); if(!empty($html)) { ?&gt; &lt;/div&gt;

...à quel niveau faut-il insérer cette balise?

Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODc0NTY1LWltYWdlcy1hcnRpY2xlcy1kYW5zLXJlc3VsdGF0LWRlLXJlY2hlcmNoZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 5 months ago [\#202217](#202217) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Images articles dans résultat de recherche](/forum/5-support-en-francais-french-support-/874565-images-articles-dans-resultat-de-recherche?start=20#202217 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  Bonjour, est-il possible d'afficher l'image de l'article quand on effectue une recherche dans la boutique. Dans notre cas nous avons des articles qui portent souvent le même nom, avoir l'image de l'article après une recherche cela faciliterait son identification.  Merci")*

Bonjour,
Code:

}elseif(( !$this-&gt;module &#124;&#124; JRequest::getVar('hikashop_front_end_main',0) ) &amp;&amp; (@$_REQUEST['ctrl']=='product' &#124;&#124; @$_REQUEST['view']=='product') &amp;&amp; (@$_REQUEST['task']=='listing' &#124;&#124; @$_REQUEST['layout']=='listing') &amp;&amp; !empty($this-&gt;filters) &amp;&amp; count($this-&gt;filters)) { ?&gt; &lt;div class="alert alert-block"&gt;&lt;?php echo JText::_('HIKASHOP_NO_RESULT'); ?&gt;&lt;/div&gt; &lt;?php } $html = ob_get_clean(); if(!empty($html)) {

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [kilou](/forum/user/32861-kilou "View kilou's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODc0NTY1LWltYWdlcy1hcnRpY2xlcy1kYW5zLXJlc3VsdGF0LWRlLXJlY2hlcmNoZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kilou](/forum/user/32861-kilou "View kilou's Profile")**
- [![kilou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32861.png)](/forum/user/32861-kilou "View kilou's Profile") Topic Author
- [ Away](/forum/user/32861-kilou)

Less More

- Posts: 704
- Thank you received: 34
-

11 years 5 months ago [\#202228](#202228) by [kilou](/forum/user/32861-kilou "View kilou's Profile")  Replied by *[kilou](/forum/user/32861-kilou "View kilou's Profile")* on topic *[Images articles dans résultat de recherche](/forum/5-support-en-francais-french-support-/874565-images-articles-dans-resultat-de-recherche?start=20#202228 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  Bonjour, est-il possible d'afficher l'image de l'article quand on effectue une recherche dans la boutique. Dans notre cas nous avons des articles qui portent souvent le même nom, avoir l'image de l'article après une recherche cela faciliterait son identification.  Merci")*

…merci, j'y avais pensé mais encore trop craintif pour tenter la manoeuvre ![:(](/media/kunena/emoticons/5.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODc0NTY1LWltYWdlcy1hcnRpY2xlcy1kYW5zLXJlc3VsdGF0LWRlLXJlY2hlcmNoZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.209 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
