notbansky Posted February 21, 2011 Share Posted February 21, 2011 Hi therePlease can someone tell me how to add descriptions into the features products on the homepage module? I'm not a prestashop developer, but I do have experience with other (non-smarty) systems. I'd also like to know how to call in a larger image in this module, too.Any help much appreciated.Here's my homefeatured.tpl file <!-- MODULE Home Featured Products --> Featured Product {if isset($products) AND $products} {assign var='liHeight' value=360} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} {foreach from=$products item=product name=homeFeaturedProducts} getImageLink($product.link_rewrite, $product.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" /> {$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'} {if !$priceDisplay || $priceDisplay == 2} {convertPrice price=$product.price}{if $priceDisplay == 2} {l s='+Tx' mod='homefeatured'}{/if}{/if} {if $priceDisplay} {convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx' mod='homefeatured'}{/if}{/if} {l s='View' mod='homefeatured'} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} <!-- product_info --> {/foreach} {else} {l s='No featured products' mod='homefeatured'} {/if} <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now