Pepperjam Pixel Integration

  • Posts: 49
  • Thank you received: 0
13 years 2 months ago #29531

Hi there, we are setting up a pixel and don't know how to send the dynamic values back to the pixel on our thank you page.
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= <PROGRAMID>&INT=ITEMIZED
&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.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
13 years 2 months ago #29537

Hi,

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.

  • Posts: 49
  • Thank you received: 0
13 years 2 months ago #30201

I am trying to pasted this code on the check out confirmation page:

<?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.

  • Posts: 49
  • Thank you received: 0
13 years 2 months ago #30206

I think it's suppose to go on this check/thank you confirmation page:

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.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
13 years 2 months ago #30226

Something the code mirror editor of joomla 1.7 does that.
You should unpublish it in the plugins manager of joomla and try again.

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 0
13 years 2 months ago #30283

how do you unpublish it? is it in the admin. interface?

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 0
13 years 2 months ago #30285

Please disregard the last post...I think I found it...thx.

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 0
13 years 2 months ago #30287

I tried unpublishing it and republishing it and pasting the code in, when I save it - it doesn't appear.

Any thoughts?

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
13 years 2 months ago #30338

You should keep that plugin unpublished.

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.

  • Posts: 49
  • Thank you received: 0
13 years 2 months ago #30624

We were able to edit. Thank you. We also have now been advised we need to place this 1 pixel code in the shopping cart - could you please direct me to where or what page I can insert the code for the shopping cart?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 49
  • Thank you received: 0
13 years 2 months ago #30629

Sorry specifically the shopping cart thank you page.

Please Log in or Create an account to join the conversation.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
13 years 2 months ago #30677

You can do that in that same file.

Please Log in or Create an account to join the conversation.

  • Posts: 57
  • Thank you received: 0
12 years 8 months ago #48776

Hello Nicolas, I am in the process of doing this same thing (with a different 3rd party tracking system).
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.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 8 months ago #48807

You can do it in plugins\hikashoppayment\firstdata\firstdata_thanks.php

Please Log in or Create an account to join the conversation.

  • Posts: 57
  • Thank you received: 0
12 years 8 months ago #48819

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.

  • Posts: 83103
  • Thank you received: 13418
  • MODERATOR
12 years 8 months ago #48843

yes:
echo $order->order_full_price;

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum