Jump to content

[UNSOLVED] PHP code don't render in Firefox, but renders fine in IE and Chrome


Recommended Posts

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'}" />


                           <!--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'}
{l s='Add to cart' mod='homefeatured'}




{l s='No featured products' mod='homefeatured'}

<!-- /MODULE Home Featured Products -->

       $('#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');

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More