Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Implant code into invoice.


boeikaas

Recommended Posts

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 by boeikaas
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...