Hello!
It's a very small projecgt, about a 10 minute work for someone who knows Magento and PHP. The issue: We have a payment module for Magento which is sending the product names, prices and quantities separately on each products to the payment company website.
You can see the that part of the code below.
We want to send only ONE FIXED product name (like "All Products")
(we don't need the real product name) ONE QUANTITY and ONE TOTAL PRICE.
You can see the code below:
/**
* set product details
* var $i quantity
*/
$i = 0;
foreach ($order->getAllItems() as $item) {
if ($item->getParentItemId()) {
continue;
}
$i++;
$formValues['item' . $i . '_desc'] = substr($item->getName(), 0, 40);
$formValues['item' . $i . '_price'] = number_format($item->getPriceInclTax(), 4, '.', '');
$formValues['item' . $i . '_qty'] = intval($item->getQtyOrdered() + 0.5);
}