Entries by iPistis

Google Affiliate Integration

Google Affiliate Integration January 11th, 2011 copy and paste to the bottom of app/design/frontend/base/default/theme_name/template/checkout/success.phtml <!–Start Google Affiliate Integration–> <?php $companyID = “H456842″; #provided by Google $category = urlencode(“Your product category”); $lastorderid = Mage::getSingleton(‘checkout/session’)->getLastOrderId(); $_order = Mage::getModel(‘sales/order’)->load($lastorderid); $orderID = $this->getOrderId(); #get the order ID $aProduct = array(); $totalAmt = 0; $prdsku = “”; $prdnm = “”; […]