<?php require_once DIR_FS_CATALOG . "datafeed/datafeed.php"; require_once DIR_FS_CATALOG . "includes/classes/order.php"; $config = new DataFeed(); if ($config->getTrackpixel() == null) { exit; } $orderId = $orders['orders_id']; $order = new order($orderId); $pluginConfig = new DataFeed(); $order_string = ''; $lang = $_SESSION['languages_id']; foreach ($order as $key => $row) { switch ($key) { case 'info': $orderSum = substr($row['total'], 1); $orderCurrency = $row['currency']; break; case 'products': foreach ($row as $index => $rowProduct) { $modelOwn = $rowProduct['id']; $arrayAttr = $pluginConfig->getAttributesOrder($orderId, $rowProduct['id']); foreach ($arrayAttr as $value) { $modelOwn .= "_" . $value; } $products_id = $pluginConfig->getTrackableID($modelOwn, $lang, $orderCurrency); $order_string .= $products_id . '=' . $rowProduct['final_price'] . '=' . $rowProduct['qty'] . ';'; } break; }