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
...
// filling order cost
$post['item_1_desc'] = fn_get_lang_var('order_id') . ': ' . $processor_data['params']['order_prefix'] . $order_id . ($order_info['repaid'] ? "_{$order_info['repaid']}" : '');
$post['item_1_cost'] = $order_info['total'];
$post['item_1_qty'] = 1;
//David Mod to add Cart Contents
$i = 2;
// Add Product Info
if (!empty($order_info['items'])) {
foreach ($order_info['items'] as $k => $v) {
$suffix = '_'.($i++);
$v['product'] = htmlspecialchars(strip_tags($v['product']));
$v['price'] = fn_format_price(($v['subtotal'] - fn_external_discounts($v)) / $v['amount'], $paypal_currency);
echo <<
$post['item{$suffix}_cost'] = {$v['price']};
$post['item{$suffix}_qty'] = {$v['amount']};
EOT;
}
}
// End Mod
$post['first_name'] = $order_info['b_firstname'];
$post['last_name'] = $order_info['b_lastname'];
...
But the cart just hangs and nothing is posted. Please help me make this modification to the Itransact processor.
Thanks,
David