nudylady Posted August 29, 2006 Share Posted August 29, 2006 Order history only shows product names. how to make product names clickable and link to product page? thank you for help. Quote Link to comment Share on other sites More sharing options...
nudylady Posted September 6, 2006 Author Share Posted September 6, 2006 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? Quote Link to comment Share on other sites More sharing options...
insomniac2 Posted September 9, 2006 Share Posted September 9, 2006 (edited) 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>'; } } Edited September 9, 2006 by insomniac2 Quote Link to comment Share on other sites More sharing options...
nudylady Posted April 3, 2008 Author Share Posted April 3, 2008 the code above work well thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.