Here's the fastest way to do it without affecting core code:
new file:
/includes/functions/extra_functions/myfunctions.php
PHP Code:
<?php
function zen_get_products_url($product_id, $language = '') {
global $db;
if (empty($language)) $language = $_SESSION['languages_id'];
$product_query = "select products_url
from " . TABLE_PRODUCTS_DESCRIPTION . "
where products_id = '" . (int)$product_id . "'
and language_id = '" . (int)$language . "'";
$product = $db->Execute($product_query);
if ($product->fields['products_url'] == '') return false;
$url = zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product->fields['products_url']), 'NONSSL', true, false);
return '<a href="' . $url . '" target="_blank">' . MORE_INFO_TEXT . '</a>';
}
?>
Now edit your checkout-confirmation template:
/includes/templates/YOURTEMPLATE/templates/tpl_checkout_confirmation_default.php
around line 134 you have this:
Code:
<?php echo $stock_check[$i]; ?>
add this below it:
Code:
<?php if ($disp_url = zen_get_products_url($order->products[$i]['id']) ) echo '<br />' . $disp_url; ?>