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

#   Extra short description on product page

##

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

Less More

- Posts: 68
- Thank you received: 0
-
-

13 years 1 month ago [\#126595](#126595) by [kopretina](/forum/user/26682-kopretina "View kopretina's Profile")  *[Extra short description on product page](/forum/32-content-creation/862584-extra-short-description-on-product-page#126595 "Hi,  I would like to know if there exist any way, how to add an extra short description to the product page and will be always unique for each product. This short text should appeare in the product listing in category.  I know now it is possible to use the  to put the text, which shoul appeare in category. But our klient ask to have extra short text, which is not the part of the desrtiption.  The example is her:   dpm-images.fr/photo/43-leica-set-macro-e...category&#95;pathway-132  The short text is marked at the picture in attachement.")* was created by *[kopretina](/forum/user/26682-kopretina "View kopretina's Profile")*

Hi,

I would like to know if there exist any way, how to add an extra short description to the product page and will be always unique for each product.
This short text should appeare in the product listing in category.

I know now it is possible to use the &lt;hr&gt; to put the text, which shoul appeare in category.
But our klient ask to have extra short text, which is not the part of the desrtiption.

The example is her: [ dpm-images.fr/photo/43-leica-set-macro-e...category\_pathway-132](http://dpm-images.fr/photo/43-leica-set-macro-elmar-m-f-4-90mm-viseur-45/category_pathway-132)
The short text is marked at the picture in attachement.

- [ ![ha79d3f0.jpg](/forum/attachment/12692) ](/forum/attachment/12692 "ha79d3f0.jpg") [ ](/forum/attachment/12692?download=1 "ha79d3f0.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vODYyNTg0LWV4dHJhLXNob3J0LWRlc2NyaXB0aW9uLW9uLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#126606](#126606) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Extra short description on product page](/forum/32-content-creation/862584-extra-short-description-on-product-page#126606 "Hi,  I would like to know if there exist any way, how to add an extra short description to the product page and will be always unique for each product. This short text should appeare in the product listing in category.  I know now it is possible to use the  to put the text, which shoul appeare in category. But our klient ask to have extra short text, which is not the part of the desrtiption.  The example is her:   dpm-images.fr/photo/43-leica-set-macro-e...category&#95;pathway-132  The short text is marked at the picture in attachement.")*

Hi,

That you are pointing is a product custom field. It allow to create new "columns" for your products with a specific type (text, date, list..).
You can add a "text product custom field" and modify your product listing view in order to display this custom field.

You can also use the product description with the "read more" separator and edit the product page view in order to not display the begin of the description (before the "read more" tag separator). So you will have two different descriptions in a single field.

Product custom fields required a commercial version of HikaShop. It gives you a good flexibility but it is possible for your case, to it without.

Regards,

---

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

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

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

Less More

- Posts: 68
- Thank you received: 0
-
-

13 years 1 month ago [\#128111](#128111) by [kopretina](/forum/user/26682-kopretina "View kopretina's Profile")  Replied by *[kopretina](/forum/user/26682-kopretina "View kopretina's Profile")* on topic *[Extra short description on product page](/forum/32-content-creation/862584-extra-short-description-on-product-page#128111 "Hi,  I would like to know if there exist any way, how to add an extra short description to the product page and will be always unique for each product. This short text should appeare in the product listing in category.  I know now it is possible to use the  to put the text, which shoul appeare in category. But our klient ask to have extra short text, which is not the part of the desrtiption.  The example is her:   dpm-images.fr/photo/43-leica-set-macro-e...category&#95;pathway-132  The short text is marked at the picture in attachement.")*

Hi,

I have put the "read more" tag into the description of the product. The part, whis is before (intro text) is displayed in the category listing as should be, but is also visible in the detail of product page. I don´t want to display this part on the detail of the product page.
How can I correct the code in "show_default" to do this?

Now is there this code:

&lt;div class="hikashop_product_description_second"&gt;
&lt;?php
echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description));
?&gt;

Could you help me with this?

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#128180](#128180) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Extra short description on product page](/forum/32-content-creation/862584-extra-short-description-on-product-page#128180 "Hi,  I would like to know if there exist any way, how to add an extra short description to the product page and will be always unique for each product. This short text should appeare in the product listing in category.  I know now it is possible to use the  to put the text, which shoul appeare in category. But our klient ask to have extra short text, which is not the part of the desrtiption.  The example is her:   dpm-images.fr/photo/43-leica-set-macro-e...category&#95;pathway-132  The short text is marked at the picture in attachement.")*

Hi,

You have to customize the Regex.
Maybe something like that can work: Code:

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

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

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

Less More

- Posts: 68
- Thank you received: 0
-
-

13 years 1 month ago -  13 years 1 month ago [\#128207](#128207) by [kopretina](/forum/user/26682-kopretina "View kopretina's Profile")  Replied by *[kopretina](/forum/user/26682-kopretina "View kopretina's Profile")* on topic *[Extra short description on product page](/forum/32-content-creation/862584-extra-short-description-on-product-page#128207 "Hi,  I would like to know if there exist any way, how to add an extra short description to the product page and will be always unique for each product. This short text should appeare in the product listing in category.  I know now it is possible to use the  to put the text, which shoul appeare in category. But our klient ask to have extra short text, which is not the part of the desrtiption.  The example is her:   dpm-images.fr/photo/43-leica-set-macro-e...category&#95;pathway-132  The short text is marked at the picture in attachement.")*

I use the code a have the warning code on the product page:

**Warning: preg\_replace() \[function.preg-replace\]: Compilation failed: nothing to repeat at offset 0 in /data/web ...**

Last edit: 13 years 1 month ago by [kopretina](/forum/user/26682-kopretina "View kopretina's Profile").

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#128214](#128214) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Extra short description on product page](/forum/32-content-creation/862584-extra-short-description-on-product-page#128214 "Hi,  I would like to know if there exist any way, how to add an extra short description to the product page and will be always unique for each product. This short text should appeare in the product listing in category.  I know now it is possible to use the  to put the text, which shoul appeare in category. But our klient ask to have extra short text, which is not the part of the desrtiption.  The example is her:   dpm-images.fr/photo/43-leica-set-macro-e...category&#95;pathway-132  The short text is marked at the picture in attachement.")*

Code:

echo JHTML::_('content.prepare',preg_replace('#[\s\S]*&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description));

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

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

Less More

- Posts: 68
- Thank you received: 0
-
-

13 years 1 month ago [\#128218](#128218) by [kopretina](/forum/user/26682-kopretina "View kopretina's Profile")  Replied by *[kopretina](/forum/user/26682-kopretina "View kopretina's Profile")* on topic *[Extra short description on product page](/forum/32-content-creation/862584-extra-short-description-on-product-page#128218 "Hi,  I would like to know if there exist any way, how to add an extra short description to the product page and will be always unique for each product. This short text should appeare in the product listing in category.  I know now it is possible to use the  to put the text, which shoul appeare in category. But our klient ask to have extra short text, which is not the part of the desrtiption.  The example is her:   dpm-images.fr/photo/43-leica-set-macro-e...category&#95;pathway-132  The short text is marked at the picture in attachement.")*

Thank you Xavier. It is working perfectly.

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

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