Integration For VirtueMart

 

Steps

1. Open the file administrator/components/com_virtuemart/html/checkout.thankyou.php
2. In the open file, locate the following line:

echo $tpl->fetch( “pages/$page.tpl.php” );

3. Insert before it:

$db_products = new ps_DB;    $q = “SELECT * FROM `#__{vm}_order_item` WHERE `order_id`=’$order_id'”;    $db_products->query( $q );    $db_products->next_record();    $order_products_id = ”;    if (is_array($db_products->record)) {      foreach ($db_products->record as $order_product) {        $order_products_ids .= $order_product->product_id . ‘|’;      }      $order_products_ids = substr($order_products_ids, 0, -1);    }    echo ‘<img src=”http://track.feedplatform.com/conversion/<ACCOUNT_ID>/?products_ids=’ . $order_products_ids . ‘&order_total=’ . $db->record[0]->order_total . ‘&order_id=’ . $db->record[0]->order_id . ‘” />’;

4. Save and close the file.

Important: Please replace <ACCOUNT_ID> with actual Account ID. You can find Account ID at Edit Campaign -> Traffic Tracking -> Conversion Tracking.

Scroll to Top