Guest Posted April 14, 2008 Share Posted April 14, 2008 hi i need to add the following for to the checkout_confirmation.php -- after the credit card approved the form include: for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $aiQty = $aiQty . $order->products[$i]['qty'] . '|'; $aiProductName = $aiProductName . $order->products[$i]['name'] . '|'; $aiProductPrice = $aiProductPrice . $order->products[$i]['price'] . '|'; $aiProductCode = $aiProductCode . $order->products[$i]['name'] . '|';//TODO change to product code } ?> <input type="hidden" name="ReplyURL" value="<?php echo $form_action_url ?>"> <input type="hidden" name="TransType" value="IR:CREATE"> <input type="hidden" name="Username" value="a4u_heb"> <input type="hidden" name="InvoiceSubject" value="iTel shop"> <input type="hidden" name="InvoiceItemCode" value="<?php echo $aiProductCode ?> "> <input type="hidden" name="InvoiceItemDescription" value="<?php echo $aiProductName ?>"> <input type="hidden" name="InvoiceItemQuantity" value="<?php echo $aiQty ?>"> <input type="hidden" name="InvoiceItemPrice" value="<?php echo $aiProductPrice ?>"> <input type="hidden" name="InvoiceDiscount" value="0"> <input type="hidden" name="InvoiceComments" value="<?echo $order->info['comments'] ?>"> <input type="hidden" name="CompanyCode" value=""> <input type="hidden" name="CompanyInfo" value="<?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', ' '); ?>"> <input type="hidden" name="MailTo" value="[email protected]" > where do i put this code? 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.