nudylady
Aug 29 2006, 02:24 AM
Order history only shows product names. how to make product names clickable and link to product page?
thank you for help.
nudylady
Sep 6 2006, 03:35 PM
QUOTE (nudylady @ Aug 29 2006, 06:24 AM)

Order history only shows product names. how to make product names clickable and link to product page?
thank you for help.
I still dont know. anyone can help me?
insomniac2
Sep 9 2006, 01:46 PM
IN: catalog/account_history_info.php
FIND: (or similar)
echo ' <tr>' . "\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'];
REPLACE THIS LINE:
' <td class="main" valign="top">' . $order->products[$i]['name'];
NOW SHOULD LOOK SOMETHING LIKE:
echo ' <tr>' . "\n" .
' <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
' <td class="main" valign="top">' . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . ($order->products[$i]['id']), 'NONSSL') . '">' . $order->products[$i]['name'] . '</a>';
if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
}
}
nudylady
Apr 3 2008, 09:21 PM
the code above work well
thanks