indexx Posted December 17, 2010 Share Posted December 17, 2010 HelloI want to display in module number of comments of each product and I can't deal with this:This don't work" {assign var='$comments' value=$product->intval(ProductComment::getCommentNumber(intval($product.id_product)))} Code of module: {foreach from=$products item=product name=homeFeaturedProducts} {assign var='$comments' value=$product->intval(ProductComment::getCommentNumber(intval($product.id_product)))} getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.name|escape:html:'UTF-8'}" /> {$product.name|escape:'htmlall':'UTF-8'} {$product.description|strip_tags|truncate:200:'...'} Number of comments: ({$comments}) {/foreach} Can enybody help me? 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