[osCmax V2.0.25]
I would like to add product thumbnail to Checkout confirmation page but have been trying without success... would be obliged if you would have a look at the following code that I use in checkout_confirmation.tpl.php
Tried follow a couple of examples posted on forum but not working either. I wonder do i need to alter anything in checkout_process at all??Code:for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $orders_products_pic_query = tep_db_query("select products_model, products_image from " . TABLE_PRODUCTS . " where products_id = '".(int)$order->products[$i]['id']."' "); $order->$products[$i]['image'] = tep_db_fetch_array($orders_products_pic_query); echo ' <tr>' . "\n" . ' <td class="main" valign="top" align="right"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . DYNAMIC_MOPICS_THUMBS_DIR . $order->$products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . "\n" . ' <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="main" valign="top">' . $order->products[$i]['name'];
Thanks!
[osCmax V2.0.25]





LinkBack URL
About LinkBacks





Reply With Quote

Bookmarks