Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CHECKOUT SUCCESS PAGE


mesaboogie

Recommended Posts

Posted

everything appears to be working fine, but on the checkout success page where it says NOTIFY ME OF UPDATES TO THE PRODUCTS I HAVE PURCHASED there is a white box with little check mark boxes, but NO PICTURES of the products the person has ordered .... can someone please tell me what needs to be changed so the product pics show up ... thank you so very much

Posted

in the checkout_success.php file

 

Find:

while ($products = tep_db_fetch_array($products_query)) {
     $products_array[] = array('id' => $products['products_id'],
                               'text' => $products['products_name']);
   }

 

Add below:

$products_image_array = array();
   $products_image = tep_db_query("select p.products_image from " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_PRODUCTS . " p where op.orders_id = '" . (int)$orders['orders_id'] . "' and op.products_id = p.products_id order by op.products_name");
   while ($products_pic = tep_db_fetch_array($products_image)) {
     $products_image_array[] = array('image' => $products_pic['products_image']);
   }

 

Find:

echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';

 

Change to:

echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . tep_image(DIR_WS_IMAGES . $products_image_array[$i]['image'], $products_array[$i]['text'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' ' . $products_array[$i]['text'] . '<br>';

 

you may have to change the stylesheet to make the formatting look better.

Archived

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

×
×
  • Create New...