Ste Berrill Posted July 17, 2011 Share Posted July 17, 2011 Hi all,I have been searching for a answer on how to add/show short_desc on the homefeatured module but the only answers I find are how to remove. My problem is that I want the short description to be displayed but it is not showing. I have looked in my homefeatured.tpl to see if it is there and I can see it, maybe somebody can see a problem in the code that im missing.I also want to add the view button in there as well so help on that would be great!below is my homefeatured.tpl <!-- MODULE Home Featured Products --> {l s='Featured products' mod='homefeatured'} {if isset($products) AND $products} {assign var='liHeight' value=342} {assign var='nbItemsPerLine' value=5} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} {foreach from=$products item=product name=homeFeaturedProducts} {$product.name|truncate:45:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|strip_tags|truncate:130:'...'} getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{else}{/if} {l s='View' mod='homefeatured'} {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} {else} {/if} {/foreach} {else} {l s='No featured products' mod='homefeatured'} {/if} <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
shokinro Posted July 17, 2011 Share Posted July 17, 2011 just a references info.make sure you are working the one that is in effect.some time your theme will override the theme file of the homeferatured.tpl.in that case, there should be file under following folderYourStoreRoot/themes/YourStoreTheme/modules/homefeatureed/homefeatured.tpl Link to comment Share on other sites More sharing options...
Ste Berrill Posted July 17, 2011 Author Share Posted July 17, 2011 thanks for the reply, this makes sense as i have been looking in the root modules, unfortunately my host has gone down for some reason so when it is back up i will do this right away and let you know the outcome Link to comment Share on other sites More sharing options...
orangewebdesign Posted March 16, 2013 Share Posted March 16, 2013 Hi Ste Berrill, did you find a solution for adding the view button and the short description to your Homefeatured module? I want to do the same with the Category module, and I'd like to know what is the solution? So when you have time, can you reply on this please? Thanks a lot 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