magento success page variables

Posted by user1799790 on Stack Overflow See other posts from Stack Overflow or by user1799790
Published on 2012-11-05T10:14:37Z Indexed on 2012/11/05 11:01 UTC
Read the original article Hit count: 210

Filed under:
|
|
|

I am trying to capture some magento success page variables to pass to our advertising company.

So far I have got this but the variables are not outputting anything:

<?php 
$items = $order->getItemsCollection();
foreach ($items as $item)
{
    $price="'".$item->getPrice()."', ";
    $qty="'".$item->getQty()."', ";
    $sku="'".$item->getSku()."', ";
}
?>

The data needs to be in the format:

'price1', 'price2', 'price3'
'qty1', 'qty2', 'qty3'
'sku1', 'sku2', 'sku3'

© Stack Overflow or respective owner

Related posts about php

Related posts about magento