devric Posted August 11, 2010 Share Posted August 11, 2010 Hi, people. can anyone take a look at the code below if there is anything wrong with it, it works in Chrome and IE BUT in Firefox only the first item is printed in the html, any other foreach item is not even printed out in the html. this is the edited home featured product module.Thank you <!--{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} {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil} {assign var='ulHeight' value=$nbLines*$liHeight} <!--striped out ------ style="height:{$ulHeight}px;"--> {foreach from=$products item=product name=homeFeaturedProducts} <!--price button--> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /> {$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|strip_tags|truncate:130:'...'} <!--view button--> {l s='View' mod='homefeatured'} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} <!--add to cart button--> {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} {$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'} {/foreach} {else} {l s='No featured products' mod='homefeatured'} {/if} <!-- /MODULE Home Featured Products --> {literal}[removed] $(document).ready(function(){ $('#featured-products_block_center > .block_content > ul > li.ajax_block_product').hover(function(){ $('#hc_product_mouseover', this).css('visibility', 'visible'); }, function() { $('#hc_product_mouseover', this).css('visibility', 'hidden'); }); }); [removed]{/literal} 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