Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to add getprice or shopbot sales tracking code
 
sportsadmin
Newbie
 
Total Posts:  0
Joined:  2013-01-21
 

Hi all,

I am trying to add getprice and shopbot sales tracking code in my site. The codes are like generic form and I need to modify it to fit in Magento system. These tracking code need to be inserted to the order success file.

GetPrice sales tracking code

<!-- Getprice.com.au sales tracking system -->
<img height="1" width="1" border="0" src="https://secure.getprice.com.au/affsale.asp?shopid=3198&price;=[OrderAmount]&sid;=[OrderId]">
<!-- End Getprice.com.au -->

Shopbot sales tracking code
<img src="https://www.shopbot.com.au/tracking/sale?shopID=5h4e604536&amount;=PUT_YOUR_PRICE_HERE&orderID;=PUT_YOUR_ORDER_ID_HERE" width="0" height="0">

I guess I found where to add these tags but I do not know how to modify them. Any suggestions or help would be really really appreciate.

Cheers,
Jae

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Hello.
I assume you want to add this code in the checkout success page.
Right?

If so then add this piece of code at the end of checkout/success.phtml

<?php 
$orderId 
$this->getOrderId();
$order Mage::getModel('sales/order')->loadByIncrementId($orderId);
$amount $order->getGrandTotal();
?>
<!-- Getprice.com.au sales tracking system --> 
<
img height="1" width="1" border="0" src="https://secure.getprice.com.au/affsale.asp?shopid=3198&price;=<?php echo $amount?>&sid;=<?php echo $orderId;?>"
<!-- 
End Getprice.com.au -->

Shopbot sales tracking code 
<img src="https://www.shopbot.com.au/tracking/sale?shopID=5h4e604536&amount;=<?php echo $amount?>&orderID;=<?php echo $orderId;?>" width="0" height="0">

Cheers,
Marius.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pnoel
Jr. Member
 
Total Posts:  11
Joined:  2012-11-07
 

Thanks for this code. It save my day. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Chrisop
Member
 
Total Posts:  33
Joined:  2010-08-11
 

Hi Guys,

How long does it take to show up in get price, like as soon as there is a sale will it show?

Is this guys added to the very end of the code
app/design/frontend/base/default/template/checkout/success.phtml

Like is i go to the end what is currently on the Success page and add ( with my shop id ) should this work???

“<?php
$orderId = $this->getOrderId();
$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);
$amount = $order->getGrandTotal();
?>
<!-- Getprice.com.au sales tracking system -->
<img height="1" width="1" border="0" src="https://secure.getprice.com.au/affsale.asp?shopid=****&price;=<?php echo $amount?>&sid;=<?php echo $orderId;?>">
<!-- End Getprice.com.au -->

Cheers

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top