Post by Wallimann » Sun Oct 16, 2011 4:09 am

I am trying to enable the product category list view to show html codes such as embedded mp3 players from soundcloud.
Is there a way to do that?

Thanks!

Guitar Backing Tracks and Video Lessons at http://www.guitarplayback.com


New member

Posts

Joined
Fri Oct 29, 2010 1:38 am
Location - Colorado

Post by inactiveaccount9912 » Sun Oct 16, 2011 4:18 am

In catalog/controller/product/category.php

find the line

Code: Select all

'description' => mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
change in something like (probably should modify the numberof characters)

Code: Select all

'description'  => html_entity_decode(substr($result['description'],0,100)) . '..',

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by Wallimann » Sun Oct 16, 2011 4:34 am

Thanks!

Guitar Backing Tracks and Video Lessons at http://www.guitarplayback.com


New member

Posts

Joined
Fri Oct 29, 2010 1:38 am
Location - Colorado

Post by cautiousjonny » Mon May 03, 2021 3:03 pm

Hello, friends!

I just tried this in OC 3 and didn't have any luck. It did show where a YouTube video would be embedded, but other than that it just hid whatever I placed in the description. I would really appreciate any help or advice; thanks!

Newbie

Posts

Joined
Sat Feb 27, 2021 4:29 am
Who is online

Users browsing this forum: No registered users and 124 guests