Jump to content

Howto add image of product in home > account > order history .. order details


Recommended Posts

Hello everyone.

I'm looking for a way to see the product images on the page:

Home> My Account> Order History

in the box details of the orders.

 

I use prestashop 1.4.4.1 and I found that the file concerned is order-detail.tpl

 

<!-- Classic products -->
   {if $product.product_quantity > $product.customizationQuantityTotal}
                   <tr class="item">
                         {if $return_allowed}<td class="order_cb"><input type="checkbox" id="cb_{$product.id_order_detail|intval}" name="ids_order_detail[{$product.id_order_detail|intval}]" value="{$product.id_order_detail|intval}" /></td>{/if}
<td><label for="cb_{$product.id_order_detail|intval}">{if $product.product_reference}{$product.product_reference|escape:'htmlall':'UTF-8'}{else}--{/if}</label></td>
<td class="bold">

 

I have no knowledge of the language TPL and I'm looking for help to insert a line like this:

 {if {exist $product.image} {display image} else {display altimage}

 

Can someone help me?

 

Thank you.

  • Like 1
Link to comment
Share on other sites

  • 4 years later...

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...