Webbie Webb Posted September 25, 2013 Share Posted September 25, 2013 Hey guys I´m having troubles rendering an iframe on product "short description" I´m developing a music shop and i need to put an iframe player on the product "short description" so when a costumer visits the product category view can preview the track clip without having to go inside the product page itself... like this: domain.com/shop/index.php?id_category=1&controller=category The problem is that the iframe will only renders on the product page and not on the category controller view... and the costumer is always "forced" to go in the product page to preview the clip and "forced" back into the "category controller view" to preview other music clips.. Why does the iframe is not showing up on the category controller view? Any suggestions? Thanks a lot in advance. Regards, W. Webb Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 themes/default/product-list.tpl file you've got there code: {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} remove the strip_tags:'utf-8'|truncate:360:'...' {$product.description_short} Link to comment Share on other sites More sharing options...
Webbie Webb Posted September 25, 2013 Author Share Posted September 25, 2013 (edited) awesome thanks a lot vekia that worked for me and its now showing up though i get this on the output: " > <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short}" >{$product.description_short}</a></p> and then the player shows where should i delete that closing tag? best Edited September 25, 2013 by Webbie Webb (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 i don't know how your code looks like, can you share it? and also url to your website these things will be helpful in this case Link to comment Share on other sites More sharing options...
Webbie Webb Posted September 25, 2013 Author Share Posted September 25, 2013 <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short}" >{$product.description_short}</a></p> Link to comment Share on other sites More sharing options...
Webbie Webb Posted September 25, 2013 Author Share Posted September 25, 2013 its fine now <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" >{$product.description_short}</a></p> thanks a lot that totally worked for me now Link to comment Share on other sites More sharing options...
Webbie Webb Posted September 25, 2013 Author Share Posted September 25, 2013 [sOLVED] Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 thank you for confirmation im going to mark this topic as [solved] best regards 1 Link to comment Share on other sites More sharing options...
Webbie Webb Posted September 25, 2013 Author Share Posted September 25, 2013 hi vekia looking at the site on the iphone the iframe is not showing up... could you help me on this? thankks in advance regards Link to comment Share on other sites More sharing options...
vekia Posted September 25, 2013 Share Posted September 25, 2013 what is the website url? i will check it on my iphone Link to comment Share on other sites More sharing options...
Webbie Webb Posted September 25, 2013 Author Share Posted September 25, 2013 (edited) Also i need to change the image class from "home_default" images on "home featured products" once i made it only 3 columns 170px wide changed also homefeatured.tpl <a href="{$product.link|escape:'html'}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'Home_170')|escape:'html'}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a> Problem is I want to keep 124px on category controller view... How can i change that to "home_default_170" without affecting the category controller view? I created the new class home_default_170 and regenerated the icons Thanks a lot in advance. Best Edited September 25, 2013 by Webbie Webb (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 26, 2013 Share Posted September 26, 2013 use different image types and just use them, first for homefeatured, second for product categories view. Link to comment Share on other sites More sharing options...
Recommended Posts