Add a link to read the hidden text

  • Posts: 252
  • Thank you received: 5
  • Hikaauction Standard Hikamarket Multivendor Hikaserial Subscription Hikashop Business
1 year 4 months ago #267670

-- HikaShop version -- : 3,0,1

Hi I want to hide some text. This is made possible by the following code

echo preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->row->product_description);
How to add a link to read the hidden text.

My goal is to hide part of the product description to is not so great and bottom have "Read more" button when clicked to display the full description.

Last Edit: 1 year 4 months ago by neo191987.

Please Log in or Create an account to join the conversation.

  • Posts: 22680
  • Thank you received: 3522
  • MODERATOR
1 year 4 months ago #267673

Hello,

It depends on the context ; but the best would be write your HTML link and use " hikashop_frontendLink " to generate the URL based on the elements you have (but without any context ; it will be more than difficult).
So I would recommend you to take a look at the rest of the content in the view you're modifying.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 252
  • Thank you received: 5
  • Hikaauction Standard Hikamarket Multivendor Hikaserial Subscription Hikashop Business
1 year 4 months ago #267761

I found a way to deal with it. The most easily it happened with tabs. :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum