- Posts: 49
- Thank you received: 0
Pepperjam Pixel Integration
We are using paypal as our payment provider and then from there we are redirecting to our thank you page. How do we set this up in Hikashop?
See below for full pixel integration.
Thanks.
5.1 - Pixel Examples:
<iframe src=" t.pepperjamnetwork.com/track?PID=
&ITEM1=<ITEM1ID>&ITEM2=<ITEM2ID>
&QTY1=<QTY1>&QTY2=<QTY2>
&AMOUNT1=<AMOUNT1>&AMOUNT2=<AMOUNT2>
&OID=<OrderID>" width="1" height="1" frameborder="0"></iframe>
Values within the < > brackets must be assigned programmatically. A live pixel should look similar to the following:
<iframe src=" t.pepperjamnetwork.com/track?PID=000&INT=ITEMIZED
&ITEM1=P1473&ITEM2=P1894
&QTY1=3&QTY2=4
&AMOUNT1=20.00&AMOUNT2=10.00
&OID=54563131" width="1" height="1" frameborder="0"></iframe>
5.2 - Pixel Parameters Explained:
Field Name
Description
Example
PID
Program ID
123
INT
Type of integration
ITEMIZED
ITEM(X)
(ex: ITEM1, ITEM2)
Item ID (product SKU)
Allowed Characters: Alpha-Numerics (A-Za-z0-9), dashes(-), underscores(_)
(This value must be unique to the pixel)
SKU-13543422
QTY(X)
(ex: QTY1, QTY2)
Quantity of the items.
2
AMOUNT(X)
(ex: AMOUNT1, AMOUNT2)
The sale amount for the single item.
This field may be set to zero (0) for lead (flat payout) transactions.
(If used, "TOTALAMOUNT(X)" must be omitted)
10.00
TOTALAMOUNT(X)
(ex: TOTALAMOUNT1, TOTALAMOUNT2)
The total sale amount for the quantity of items.
This field may be set to zero (0) for lead (flat payout) transactions.
(If used, "AMOUNT(X)" must be omitted)
20.00
OID
Order ID
Allowed Characters: Alpha-Numerics (A-Za-z0-9), dashes(-), underscores(_)
FT-13543422
Please Log in or Create an account to join the conversation.
You can add your code in the file "after_end" of the view "checkout" via the menu Display->Views.
There, you will find all the order information in the $this->order variable.
Please Log in or Create an account to join the conversation.
<?php
$output = '<iframe src=" t.pepperjamnetwork.com/track ?';
$output .="PID=000";
$output .="&INT=ITEMIZED";
$output .="&ITEM1=$itemID1";
$output .="&ITEM2=$itemID2";
$output .="&QTY1=$quantity1";
$output .="&QTY2=$quantity2";
$output .="&AMOUNT1=$salePrice1";
$output .="&AMOUNT2=$salePrice2";
$output .="&OID=$orderID";
$output .='" width="1" height="1" frameborder="0"></iframe>';
echo $output;
?>
but it won't let me save...any ideas why?
Please Log in or Create an account to join the conversation.
checkout / after_end.php
<?php
/**
* @package HikaShop for Joomla!
* @version 1.5.3
* @author hikashop.com
* @copyright (C) 2010-2011 HIKARI SOFTWARE. All rights reserved.
* @license www.hikashop.com/commercial_license.php
*/
defined('_JEXEC') or die('Restricted access');
?>
<?php
$app =& JFactory::getApplication();
$app->enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );
but not sure why it's not saving or working
Please Log in or Create an account to join the conversation.
You should unpublish it in the plugins manager of joomla and try again.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Any thoughts?
Please Log in or Create an account to join the conversation.
If that still doesn't work, you can always edit the file directly via FTP: components/com_hikashop/views/checkout/tmpl/after_end.php
However, in that case, the modification will be removed when you update HikaShop so you should make sure that you back it up and add the modification again after you update HikaShop.
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 57
- Thank you received: 0
My question is:
Will I place my conversion(purchase) pixel on the components\com_hikashop\views\checkout\tmpl\after_end.php file?
Or will I place it in: plugins\hikashoppayment\firstdata(my merchant in this case)\firstdata_thanks.php
?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 57
- Thank you received: 0
nicolas wrote: You can do it in plugins\hikashoppayment\firstdata\firstdata_thanks.php
Will I be able to use the variable(s) to capture the cart total price?
Please Log in or Create an account to join the conversation.
echo $order->order_full_price;
Please Log in or Create an account to join the conversation.