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

#   Remove text after "read more" in Product option "i" icon

##

- **[assun](/forum/user/19855-assun "View assun's Profile")**
- [![assun's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-06-12.jpg)](/forum/user/19855-assun "View assun's Profile") Topic Author
- [ Offline](/forum/user/19855-assun)

Less More

- Posts: 3
- Thank you received: 0
-
-
-
- [](http://www.BLiDiS.com)
-

9 years 5 months ago [\#269992](#269992) by [assun](/forum/user/19855-assun "View assun's Profile")  *[Remove text after "read more" in Product option "i" icon](/forum/26-product-category-display/890338-remove-text-after-read-more-in-product-option-i-icon#269992 "Hi, How to remove text after , when point &quot;i&quot; icon on product option? Untitled-1.jpg  I edited the file &quot;product / option.php&quot;:  Somehow it gets ok, but it remains  and  ... Untitled-2.jpg  Thanks")* was created by *[assun](/forum/user/19855-assun "View assun's Profile")*

Hi,
How to remove text after &lt;hr id="system-readmore" /&gt;, when point "i" icon on product option?
Untitled-1.jpg

I edited the file "product / option.php":

> if(!empty($optionInfo-&gt;product\_description) \|\| !empty($optionInfo-&gt;product\_url)){
> $options='&lt;img src="'.HIKASHOP\_IMAGES.'info.png" alt="Information"/&gt;';
> $description = '';
> if(!empty($optionInfo-&gt;product\_description)){
> // $description = $this-&gt;escape(strip\_tags(JHTML::\_('content.prepare',$optionInfo-&gt;product\_description)));
> $description = preg\_replace('#&lt;hr \*id="system-readmore" \*/&gt;.\*#is','',$this-&gt;row-&gt;product\_description);
> $options='&lt;span class="hikashop\_option\_info" title="'.$description.'"&gt;'.$options.'&lt;/span&gt;';
> }

Somehow it gets ok, but it remains &lt;p&gt; and &lt;/ p&gt; ...
Untitled-2.jpg

Thanks

- [ ![Untitled-1.jpg](/forum/attachment/38254) ](/forum/attachment/38254 "Untitled-1.jpg") [ ](/forum/attachment/38254?download=1 "Untitled-1.jpg")
- [ ![Untitled-2.jpg](/forum/attachment/38255) ](/forum/attachment/38255 "Untitled-2.jpg") [ ](/forum/attachment/38255?download=1 "Untitled-2.jpg")

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

9 years 5 months ago -  9 years 5 months ago [\#269994](#269994) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Remove text after "read more" in Product option "i" icon](/forum/26-product-category-display/890338-remove-text-after-read-more-in-product-option-i-icon#269994 "Hi, How to remove text after , when point &quot;i&quot; icon on product option? Untitled-1.jpg  I edited the file &quot;product / option.php&quot;:  Somehow it gets ok, but it remains  and  ... Untitled-2.jpg  Thanks")*

Hello,

Product_description comes with "**&lt;p&gt;**" &amp; "**&lt;/p&gt;**", and so maybe you can try to modify text and remove them, something like this kind : Code:

$string = str_replace("&lt;p&gt;", "", $string); $string = str_replace("&lt;/p&gt;", "", $string);

and then, display your string.

Hope this will help you.

Regards

Last edit: 9 years 5 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

[](#top)
