Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Show the image of the product on confirmation page


Recommended Posts

I want to show images of the products on confirmation page.in this way the customer can be secure about his buying decision.


On catalog checkout_confirmation.php

I found


for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

echo ' <tr>' . "\n" .


after that I added

' <td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .



The problem is that the imagen is not showing

I wonder that could be because $products[$i]['image'] does not have connection with the order but $order->products[$i]['image'] neither.


How can I call the correct database imagen…?


Or better yet, how can I show the imagen of the product on confirmation page?

Link to comment
Share on other sites

you need to add to SQL query to look up the products_image filed.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...