Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- This file is part of the Magento Article, How to Add Tracking Links to Magento
- Please change add the code to the end of the file, changing it to your own needs
- -->
- <?php
- /* ***********************************************************************************************
- SALE link that AdServer wants to be displayed in the page (my Example Euroads.dk):
- <iframe src="http://www.euroads.dk/system/showtrackingpixels.php?cpid=2125&sid=1&orderid=%orderid%&orderamount=xxxx.xx¤cysymbol=%currencysymbol%&pgid=95" width=1 height=1 marginwidth=0 marginheight=0 ALLOWTRANSPARENCY="true" frameborder=0 scrolling=no hspace=0 vspace=0></iframe>
- *********************************************************************************************** */
- $lastOrderId = Mage::getSingleton('checkout/session')->getLastOrderId();
- $_neworder = Mage::getSingleton('sales/order')->load($lastOrderId);
- $_timestamp = time();
- $_euroads_orderId = $this->getOrderId();
- $_euroads_paymentMethod = $_neworder->getPayment()->getMethod();
- $_euroads_orderTotal = $_neworder->getGrandTotal();
- $_euroads_currencySymbol = $_neworder->getOrderCurrency();
- /*
- echo "<hr/>";
- echo "OrderID: ".$this->getOrderId()."<br/>";
- echo "Payment Method: ".$_neworder->getPayment()->getMethod()."<br/>";
- echo "Total Amount: ".$_neworder->getGrandTotal()."<br/>";
- */
- ?>
- <!-- Euroads tracking code for Sale -->
- <iframe src="http://www.euroads.dk/system/showtrackingpixels.php?cpid=2125&sid=1&orderid=<?php echo $_euroads_orderId; ?>&orderamount=<?php echo $_euroads_orderTotal; ?>¤cysymbol=<?php echo $_euroads_currencySymbol; ?>&pgid=95" width="1" height="1" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" hspace="0" vspace="0"></iframe>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement