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

#   span class=searchtext dans un champ

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

10 years 1 week ago -  10 years 6 days ago [\#255788](#255788) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[span class=searchtext dans un champ](/forum/5-support-en-francais-french-support-/887575-span-class-searchtext-dans-un-champ#255788 "-- HikaShop version -- : 264 -- Joomla version -- : 364  Bonjour  j'ai un champ perso orde&#95;follow pour le numero de suivi collisimo des clients  quand on fait une recherche j'ai ce resultat dans le listing des commandes  ce qui donne l'affichage  comment eviter ça ? merci pour l'aide")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

-- HikaShop version -- : 264
-- Joomla version -- : 364

Bonjour

j'ai un champ perso orde_follow pour le numero de suivi collisimo des clients

quand on fait une recherche j'ai ce resultat dans le listing des commandes Code:

&lt;td class="hikashop_order_order_follow_value"&gt;&lt;a target="_blank" href="http://www.colissimo.fr/portail_colissimo/suivreResultat.do?parcelnumber=7D56&amp;lt;span class=" searchtext"=""&gt;914720817"&amp;gt;7D56&lt;span class="searchtext"&gt;91&lt;/span&gt;4720817&lt;/a&gt;&lt;/td&gt;

ce qui donne l'affichage

[ ![screenshot2016-11-2205.20.45.png](/forum/attachment/34738) ](/forum/attachment/34738 "...2205.20.45.png")

comment eviter ça ?
merci pour l'aide

- [ ![screenshot2016-11-2205.20.45.png](/forum/attachment/34738) ](/forum/attachment/34738 "...2205.20.45.png") [ ](/forum/attachment/34738?download=1 "...2205.20.45.png")

Last edit: 10 years 6 days ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODg3NTc1LXNwYW4tY2xhc3Mtc2VhcmNodGV4dC1kYW5zLXVuLWNoYW1wP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 6 days ago [\#255790](#255790) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[span class=searchtext dans un champ](/forum/5-support-en-francais-french-support-/887575-span-class-searchtext-dans-un-champ#255790 "-- HikaShop version -- : 264 -- Joomla version -- : 364  Bonjour  j'ai un champ perso orde&#95;follow pour le numero de suivi collisimo des clients  quand on fait une recherche j'ai ce resultat dans le listing des commandes  ce qui donne l'affichage  comment eviter ça ? merci pour l'aide")*

Bonjour,

Le morceau span class=searchtext est ajouté par le système de recherche du listing car il y a un match avec ce que vous avez cherché dans le texte du champs.
Le problème, c'est que vous avez un match dans un attribut de l'HTML de votre champs et du coup cela casse l'HTML car l'ajout est fait très simplement, en supposant qu'il n'y a pas d'HTML dans les valeurs des champs.
Si vous cherchez "target" ou "colissimo" ou "href", vous verrez que vous aurez le même soucis.
Je ne vois pas trop de solution facile à cela.
Pouvoir chercher dans les champs personnalisé et pratique, et avoir le surlignage des résultats dans le listing grâce au span class=serachtext est également pratique. Mais devoir analyser l'HTML des champs personnalisés pour voir comment ajouter cela me semble disproportionné.

Vous pouvez changer la ligne:
$rows = hikashop_search($pageInfo-&gt;search,$rows,'order_id');
en:
$rows = hikashop_search($pageInfo-&gt;search,$rows,array('order_id', 'XXX'));
où XXX est le nom de colonne de votre champs dans le fichier administrator/components/com_hikashop/views/order/view.html.php
mais je ne vois pas de solution pérenne au problème.

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

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

10 years 6 days ago -  10 years 6 days ago [\#255828](#255828) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[span class=searchtext dans un champ](/forum/5-support-en-francais-french-support-/887575-span-class-searchtext-dans-un-champ#255828 "-- HikaShop version -- : 264 -- Joomla version -- : 364  Bonjour  j'ai un champ perso orde&#95;follow pour le numero de suivi collisimo des clients  quand on fait une recherche j'ai ce resultat dans le listing des commandes  ce qui donne l'affichage  comment eviter ça ? merci pour l'aide")*

merci je vais voir
Je suppose quand meme que d'autres que moi ont besoin d'un numero de suivi et recherchent une commande pour cliquer sur le lien *suivi* et voir ou en est le colis , dans le cas actuel l'affichage est decale mais il est aussi impossible de cliquer pour suivre le colis
L'ideal serait quand meme de ne jamais mettre ce searchtext a l'intérieur d'une balise [a]

ou alors dans une version future un champ suivi natif qui gérerait ce probleme à la source

Last edit: 10 years 6 days ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODg3NTc1LXNwYW4tY2xhc3Mtc2VhcmNodGV4dC1kYW5zLXVuLWNoYW1wP3RtcGw9bWFya2Rvd24=) 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.049 seconds

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