Post cart contents to Itransact

Our old cart posted the product information to Itransact and my customer would like Cs-cart 3.01 to do the same.



I tried adding the following code in itransact_standard_form.php




<br />
...<br />
// filling order cost<br />
$post['item_1_desc'] = fn_get_lang_var('order_id') . ': ' . $processor_data['params']['order_prefix'] . $order_id . ($order_info['repaid'] ? "_{$order_info['repaid']}" : '');<br />
$post['item_1_cost'] = $order_info['total'];<br />
$post['item_1_qty']  = 1;<br />
//David Mod to add Cart Contents<br />
$i = 2;<br />
// Add Product Info<br />
if (!empty($order_info['items'])) {<br />
foreach ($order_info['items'] as $k => $v) {<br />
$suffix = '_'.($i++);<br />
$v['product'] = htmlspecialchars(strip_tags($v['product']));<br />
$v['price'] = fn_format_price(($v['subtotal'] - fn_external_discounts($v)) / $v['amount'], $paypal_currency);<br />
echo <<<EOT<br />
$post['item{$suffix}_desc'] = {$v['product']};<br />
$post['item{$suffix}_cost'] = {$v['price']};<br />
$post['item{$suffix}_qty'] = {$v['amount']};<br />
EOT;<br />
}<br />
	}<br />
// End Mod<br />
<br />
$post['first_name'] = $order_info['b_firstname'];<br />
$post['last_name']  = $order_info['b_lastname'];<br />
...<br />

```<br />
<br />
<br />
But the cart just hangs and nothing is posted.  Please help me make this modification to the Itransact processor.<br />
<br />
Thanks,<br />
<br />
David

Are you trying to take order data after the purchase is complete and send that to itransact?