Hi guys.
I need to make Custom PC Creator 2.0 BETA work in my store.
1º get it at this url
http://www.oscommerce.com/community/...search,creator
U can see a demo of it at this url
http://www.fastlanecomputers.ca/build.php
-----
Well, the script is for standard oscommerce installation, so i had lot of problems trying to make it work (following instructions).
I know the cause, of course, all the modifications the ms2-max dev team did to the original ms2, BTS, etc. so I'll start with the 1º instruction:
-----
1. At line 134 in /catalog/account_history_info.php replace the following lines
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'];
with
// BEGIN CHANGE CUSTOM PC CREATOR
if ($order->products[$i]['name'] == "Custom Built Computer"){
$desc_query = tep_db_query("select products_description from products_description where products_id ='" . $order->products[$i]['id'] . "'");
$desc = tep_db_fetch_array($desc_query);
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'] . '<small><i>' . $desc['products_description'] . '</i></small>';
}else{
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'];
}
// END CHANGE CUSTOM PC CREATOR
-------------------------------------------------------------------
As u can see, catalog/account_history_info.php does not have 134 lines, and i dont know where that code went or how it changed, so would u guys from dev team help me to make this 1º replacement?
Thanks a lot in advance. Sorry 4 so long post
Bookmarks