boeikaas Posted February 4, 2009 Share Posted February 4, 2009 (edited) I want to implant gift_mod_v2.0 into invoice.php so it shows the gift under products. here is the code i want to insert: $freegift_query = tep_db_query("select products_name, products_model from orders_freegift where orders_id = '" .$HTTP_GET_VARS['oID'] . "'"); $freegift = tep_db_fetch_array($freegift_query); echo $freegift['products_model'] . " - " . $freegift['products_name']; I believe it must be inserted here someplace in the invoice: for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) { echo ' <tr class="dataTableRow">' . "\n" . ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name']; echo ' <tr class="dataTableRow">' . "\n" . Hope some good coders can help me a little:) Thanks Edited February 4, 2009 by boeikaas 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.