Show image product on Mini-Cart

I trying to show on the “MiniCart” , images for each product in the cart.



I have to modify the hook : {hook name=“index:cart_status”} with my_changes addon like :



my_changes/hooks/index/cart_status.override.tpl


[quote]



{hook name=“index:cart_status”}

{assign var=“_cart_products” value=$smarty.session.cart.products|array_reverse:true}

{foreach from=$_cart_products key=“key” item=“p” name=“cart_products”}

{if !$p.extra.parent}



  • [b]
    {include file="common_templates/image.tpl" obj_id=$key images=$p.main_pair object_type="product" show_thumbnail="Y" image_width=50 image_height=50}
    {$p.product_id|fn_get_product_name|escape}
    [/b]

    {if (!"CHECKOUT"|defined || $force_items_deletion) && !$p.extra.exclude_from_calculate}{include file="buttons/button.tpl" but_href="checkout.delete.from_status?cart_id=`$key`" but_meta="cm-ajax" but_rev="cart_status" but_role="delete" but_name="delete_cart_item"}{/if}


    {$p.amount} x {include file="common_templates/price.tpl" value=$p.display_price span_id="price_`$key`" class="none"}



  • {if !$smarty.foreach.cart_products.last}
  •  

  • {/if}
    {/if}
    {/foreach}

    {/hook}

    [/quote]

    But it not show correctly the pictures.

    [attachment=4479:sshot-1.jpg]

    Pls, any help with this code ? Thx.

    sshot-1.jpg