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

#   Read More &amp; Description Link in Category

##

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

Less More

- Posts: 62
- Thank you received: 0
-
-

11 years 1 month ago [\#214730](#214730) by [ninjab](/forum/user/33534-ninjab "View ninjab's Profile")  *[Read More &amp; Description Link in Category](/forum/26-product-category-display/879377-read-more-description-link-in-category#214730 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.0  HI there,  I am trying to work out how to get the read more to be a link to the product with this code below. Can someone please help to insert some code to get this to work?  I know its this line here: $resume .= &quot; … &quot;.JText::&#95;('READ&#95;MORE').&quot;&quot;;  But don't know what to put so that it works. Thanks a lot :)")* was created by *[ninjab](/forum/user/33534-ninjab "View ninjab's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.0

HI there,

I am trying to work out how to get the read more to be a link to the product with this code below. Can someone please help to insert some code to get this to work?
Code:

&lt;?php if(!empty($this-&gt;row-&gt;product_description)) : ?&gt; &lt;div id="hikashop_product_description_main_mini" class="hikashop_product_description_main_mini"&gt; &lt;?php $resume = substr((preg_replace('#&lt;hr *id="system-readmore" */&gt;.*#is','',$this-&gt;row-&gt;product_description)),0,350); if (!empty($this-&gt;row-&gt;product_description) &amp;&amp; strlen($this-&gt;row-&gt;product_description)&gt;350) $resume .= " &amp;hellip; &lt;a href='#description'&gt;".JText::_('READ_MORE')."&lt;/a&gt;"; echo JHTML::_('content.prepare',$resume); ?&gt; &lt;/div&gt; &lt;?php endif; ?&gt;

I know its this line here: $resume .= " &amp;hellip; &lt;a href='#description'&gt;".JText::_('READ_MORE')."&lt;/a&gt;";

But don't know what to put so that it works. Thanks a lot ![:)](/media/kunena/emoticons/8.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzkzNzctcmVhZC1tb3JlLWRlc2NyaXB0aW9uLWxpbmstaW4tY2F0ZWdvcnk/dG1wbD1tYXJrZG93bg==) 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: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#214746](#214746) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Read More &amp; Description Link in Category](/forum/26-product-category-display/879377-read-more-description-link-in-category#214746 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.0  HI there,  I am trying to work out how to get the read more to be a link to the product with this code below. Can someone please help to insert some code to get this to work?  I know its this line here: $resume .= &quot; … &quot;.JText::&#95;('READ&#95;MORE').&quot;&quot;;  But don't know what to put so that it works. Thanks a lot :)")*

Hi,

It depends where you add it.
I suppose that it is in one of the listing_img* view files, and thus, you already have a $link variable defined with the link to the product page.
So you can do that: Code:

$resume .= " … &lt;a href='".$link."#description'&gt;".JText::_('READ_MORE')."&lt;/a&gt;";

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

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

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

Less More

- Posts: 62
- Thank you received: 0
-
-

11 years 1 month ago [\#214786](#214786) by [ninjab](/forum/user/33534-ninjab "View ninjab's Profile")  Replied by *[ninjab](/forum/user/33534-ninjab "View ninjab's Profile")* on topic *[Read More &amp; Description Link in Category](/forum/26-product-category-display/879377-read-more-description-link-in-category#214786 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.0  HI there,  I am trying to work out how to get the read more to be a link to the product with this code below. Can someone please help to insert some code to get this to work?  I know its this line here: $resume .= &quot; … &quot;.JText::&#95;('READ&#95;MORE').&quot;&quot;;  But don't know what to put so that it works. Thanks a lot :)")*

Brilliant, you're a legend Nick. Works now. Many thanks ![:)](/media/kunena/emoticons/8.png ":)").

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

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

[](#top)
