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

#   Display Short description

##

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

Less More

- Posts: 71
- Thank you received: 0
-
-

9 years 1 month ago [\#277733](#277733) by [triotech](/forum/user/25968-triotech "View triotech's Profile")  *[Display Short description](/forum/26-product-category-display/891827-display-short-description#277733 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Chrome 60  HI, I have followed this forum post -   www.hikashop.com/forum/4-how-to/32677-sh...roduct-listings.html  and I have my content before the Read More showing up in the Block&#95;tags.php view perfect! -   heat.colman.net.nz/oztent/product/1-oztent-rv-1  But, how can I adapt the regular description view to now NOT show the content BEFORE the Read More. I am happy to edit the View files, just need to know what to add please.  Regards, Nick")* was created by *[triotech](/forum/user/25968-triotech "View triotech's Profile")*

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.7.5
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : Chrome 60

HI, I have followed this forum post - [ www.hikashop.com/forum/4-how-to/32677-sh...roduct-listings.html](https://www.hikashop.com/forum/4-how-to/32677-short-description-at-the-product-listings.html) and I have my content before the Read More showing up in the Block_tags.php view perfect! - [ heat.colman.net.nz/oztent/product/1-oztent-rv-1](http://heat.colman.net.nz/oztent/product/1-oztent-rv-1)

But, how can I adapt the regular description view to now NOT show the content BEFORE the Read More. I am happy to edit the View files, just need to know what to add please.

Regards, Nick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTE4MjctZGlzcGxheS1zaG9ydC1kZXNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

9 years 1 month ago [\#277772](#277772) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Short description](/forum/26-product-category-display/891827-display-short-description#277772 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Chrome 60  HI, I have followed this forum post -   www.hikashop.com/forum/4-how-to/32677-sh...roduct-listings.html  and I have my content before the Read More showing up in the Block&#95;tags.php view perfect! -   heat.colman.net.nz/oztent/product/1-oztent-rv-1  But, how can I adapt the regular description view to now NOT show the content BEFORE the Read More. I am happy to edit the View files, just need to know what to add please.  Regards, Nick")*

Hi,

To know which view file you need to edit, you can turn on the "display view files" setting of the HikaShop configuration. All the view files used will be displayed on the page so that you will know exactly what view file displays what.
In your case, I would say that it's either show_tabular or show_default that you'll want to edit.
The modification to do will be this one:
[ www.hikashop.com/support/forum/product-c...t-layout.html#172688](https://www.hikashop.com/support/forum/product-category-display/871720-how-to-show-short-description-on-product-layout.html#172688)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTE4MjctZGlzcGxheS1zaG9ydC1kZXNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 71
- Thank you received: 0
-
-

9 years 1 month ago [\#277810](#277810) by [triotech](/forum/user/25968-triotech "View triotech's Profile")  Replied by *[triotech](/forum/user/25968-triotech "View triotech's Profile")* on topic *[Display Short description](/forum/26-product-category-display/891827-display-short-description#277810 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Chrome 60  HI, I have followed this forum post -   www.hikashop.com/forum/4-how-to/32677-sh...roduct-listings.html  and I have my content before the Read More showing up in the Block&#95;tags.php view perfect! -   heat.colman.net.nz/oztent/product/1-oztent-rv-1  But, how can I adapt the regular description view to now NOT show the content BEFORE the Read More. I am happy to edit the View files, just need to know what to add please.  Regards, Nick")*

Hi, I have replaced the code as per the post but the short description remains. I am in the right place as I added a test class and I can see this in the inspector.
**URL** : [ heat.colman.net.nz/oztent/product/1-oztent-rv-1](http://heat.colman.net.nz/oztent/product/1-oztent-rv-1)
**Code Added/Altered** -
*&lt;div id="hikashop\_product\_description\_main" class="hikashop\_product\_description\_main nick" itemprop="description"&gt;&lt;?php
echo JHTML::\_('content.prepare',preg\_replace('#.\*&lt;hr \*id="system-readmore" \*/&gt;#i','',$this-&gt;element-&gt;product\_description));
?&gt;&lt;/div&gt;*

**Result** - still shows the short description (content pre-Read More). Post ReadMore works well

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTE4MjctZGlzcGxheS1zaG9ydC1kZXNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

9 years 1 month ago [\#277840](#277840) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display Short description](/forum/26-product-category-display/891827-display-short-description#277840 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Chrome 60  HI, I have followed this forum post -   www.hikashop.com/forum/4-how-to/32677-sh...roduct-listings.html  and I have my content before the Read More showing up in the Block&#95;tags.php view perfect! -   heat.colman.net.nz/oztent/product/1-oztent-rv-1  But, how can I adapt the regular description view to now NOT show the content BEFORE the Read More. I am happy to edit the View files, just need to know what to add please.  Regards, Nick")*

Hi,

Well, I don't see why it wouldn't work.
Maybe the regex needs to be adapted because of the way the text in the description is.
Maybe try to add the flag "s" to your regex: Code:

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

Alternatively and simpler would be to use a custom product field to add the images on the right side of the product page.
That way on the product edition page, you'll have 2 distinct fields, one for the description, one for the right side images area.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTE4MjctZGlzcGxheS1zaG9ydC1kZXNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 71
- Thank you received: 0
-
-

9 years 1 month ago [\#277899](#277899) by [triotech](/forum/user/25968-triotech "View triotech's Profile")  Replied by *[triotech](/forum/user/25968-triotech "View triotech's Profile")* on topic *[Display Short description](/forum/26-product-category-display/891827-display-short-description#277899 "-- HikaShop version -- : 3.2.0 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.30 -- Browser(s) name and version -- : Chrome 60  HI, I have followed this forum post -   www.hikashop.com/forum/4-how-to/32677-sh...roduct-listings.html  and I have my content before the Read More showing up in the Block&#95;tags.php view perfect! -   heat.colman.net.nz/oztent/product/1-oztent-rv-1  But, how can I adapt the regular description view to now NOT show the content BEFORE the Read More. I am happy to edit the View files, just need to know what to add please.  Regards, Nick")*

Thanks the code above did the trick. I did look into the Buiness Edition as an option, but the read more way will be sufficient for now. Thanks again, Nick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTE4MjctZGlzcGxheS1zaG9ydC1kZXNjcmlwdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.109 seconds

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