View Single Post
  #2  
Old 12-11-2009, 01:25 PM
 
advantageco advantageco is offline
 

Newbie
  
Join Date: Oct 2009
Posts: 9
 

Default Re: Add RA# to checkout and order info

Seems I have solved my own problem to a point, here's what I did:
-Added new field 'ranumber' to 'xcart_order_details' table
-Added new line in func.order.php (711)
Code:
$insert_data = array ( 'orderid' => $orderid, 'productid' => $product['productid'], 'product' => addslashes($product['product_orig']), 'product_options' => addslashes($product['product_options']), 'amount' => $product['amount'], 'price' => $product['price'], 'provider' => addslashes($product["provider"]), 'extra_data' => addslashes(serialize($product["extra_data"])), 'productcode' => addslashes($product['productcode']), 'ranumber' => '$MYRANUMBER'); //This is the line I added.

Next steps for me is to add the functionality to display the RA# in the cart, invoice, and orders pages which will be a piece of cake after this.
__________________
X-Cart 4.2.1
X-Cart 4.4.x
X-Cart 4.5.1
Reply With Quote