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

#   Description de produit tronquée

##

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

Less More

- Posts: 63
- Thank you received: 3
-
-

6 years 9 months ago [\#316015](#316015) by [anoma3](/forum/user/57799-anoma3 "View anoma3's Profile")  *[Description de produit tronquée](/forum/26-product-category-display/899242-description-de-produit-tronquee#316015 "-- url of the page with the problem -- :   www.centraltransylvania.fr  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.27  Bonjour, J'ai un soucis avec la description de mes produits qui ne s'affiche pas correctement sous le prix. Pouvez vous m'indiquer comment régler ce pb? En attachement une copie d'écran d'un exemple. Merci par avance!")* was created by *[anoma3](/forum/user/57799-anoma3 "View anoma3's Profile")*

-- url of the page with the problem -- : [ www.centraltransylvania.fr](https://www.centraltransylvania.fr)
-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.8
-- PHP version -- : 7.2.27

Bonjour,
J'ai un soucis avec la description de mes produits qui ne s'affiche pas correctement sous le prix.
Pouvez vous m'indiquer comment régler ce pb?
En attachement une copie d'écran d'un exemple.
Merci par avance!

- [ ![desc-prod-1.jpg](/forum/attachment/48796) ](/forum/attachment/48796 "desc-prod-1.jpg") [ ](/forum/attachment/48796?download=1 "desc-prod-1.jpg")
- [ ![desc-prod-2.jpg](/forum/attachment/48797) ](/forum/attachment/48797 "desc-prod-2.jpg") [ ](/forum/attachment/48797?download=1 "desc-prod-2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTkyNDItZGVzY3JpcHRpb24tZGUtcHJvZHVpdC10cm9ucXVlZT90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

6 years 9 months ago [\#316017](#316017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Description de produit tronquée](/forum/26-product-category-display/899242-description-de-produit-tronquee#316017 "-- url of the page with the problem -- :   www.centraltransylvania.fr  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.27  Bonjour, J'ai un soucis avec la description de mes produits qui ne s'affiche pas correctement sous le prix. Pouvez vous m'indiquer comment régler ce pb? En attachement une copie d'écran d'un exemple. Merci par avance!")*

Bonjour,

Je ne suis pas sûr car il semble que l'affichage ait été personnalisé soit par vos soins soit par votre template Joomla.
Et du coup, le code qui gère l'affichage de la description sous le prix a vraisemblablement été modifié.
Normalement,
Lorsque vous éditez le fichier product / show_tabular.php via le menu Affichage&gt;Vues, vous avez ce code: Code:

&lt;div id="hikashop_product_description_main_mini" class="hikashop_product_description_main_mini"&gt;&lt;?php // DISPLAY the product description if(!empty($this-&gt;element-&gt;product_description)) { $function = 'mb_substr'; if(!function_exists($function)) $function = 'substr'; $resume = $function(strip_tags(preg_replace('#&lt;hr *id="system-readmore" */&gt;.*#is','',$this-&gt;element-&gt;product_description)),0,300); if (!empty($this-&gt;element-&gt;product_description) &amp;&amp; strlen($this-&gt;element-&gt;product_description)&gt;300) $resume .= " ...&lt;a href='#hikashop_show_tabular_description'&gt;".JText::_('READ_MORE')."&lt;/a&gt;"; echo JHTML::_('content.prepare',$resume); } ?&gt;&lt;/div&gt;

qui s'occupe de l'affichage de la description sous le prix.
Ce code va ne garder que les 300 premiers caractères de la description avec trois petits points et rajouter un lien "read more" vers la description complète. Mais je ne retrouve ni les trois petits points, ni le lien sur votre site.
En supposant que le code n'aurait pas changé, il suffit de changer la ligne: Code:

echo JHTML::_('content.prepare',$resume);

en: Code:

echo JHTML::_('content.prepare',strip_tags(preg_replace('#&lt;hr *id="system-readmore" */&gt;.*#is','',$this-&gt;element-&gt;product_description)));

Sinon, il faut voir avec la personne qui a fait la modification de votre coté ou votre fournisseur de template si cela vient de eux.

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

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

Less More

- Posts: 63
- Thank you received: 3
-
-

6 years 9 months ago [\#316040](#316040) by [anoma3](/forum/user/57799-anoma3 "View anoma3's Profile")  Replied by *[anoma3](/forum/user/57799-anoma3 "View anoma3's Profile")* on topic *[Description de produit tronquée](/forum/26-product-category-display/899242-description-de-produit-tronquee#316040 "-- url of the page with the problem -- :   www.centraltransylvania.fr  -- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.8 -- PHP version -- : 7.2.27  Bonjour, J'ai un soucis avec la description de mes produits qui ne s'affiche pas correctement sous le prix. Pouvez vous m'indiquer comment régler ce pb? En attachement une copie d'écran d'un exemple. Merci par avance!")*

Bonjour et merci pour votre réponse.
le bout de code que vous m'avez proposé n'a pas fonctionné, en fait je me suis rendu compte que l'affichage était custom, modifié par mon template.
Ne fouillant chez joomdev qui m'a fait le template j'ai trouvé la solution.
il a fallu créer un autre fichier show_tabular... l'uploader sur le site avec un bout de code qu'ils fournissent, et choisir son affichage dans les options Hikashop.
merci
Pour ceux qui auraient ce problème à l'avenir voici le lien vers la solution: [ www.joomdev.com/forum/jd-shop/4140-solve...ile-page-sos-o#18961](https://www.joomdev.com/forum/jd-shop/4140-solved-product-detaile-page-sos-o#18961)

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

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

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