OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Order history link to product page
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Order Total Modules
nudylady
Order history only shows product names. how to make product names clickable and link to product page?
thank you for help.
nudylady
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
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'] . '&nbsp;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'] . '&nbsp;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>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
}
}
nudylady
the code above work well
thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.