Jump to content

Tradetracker / Prestashop - Übergeben vom Bestellbetrag ohne Versand und Mehrwertsteuer


Recommended Posts

Servus Leute!

Ich sitze nun seit mehreren Stunden an folgendem Problem und verzweifele langsam...

Ich hab meinen OnlineShop bei Tradetracker angemeldet und muss nun den Tracking Code einfügen damit
Bestelldaten usw. an Tradetracker übergeben werden.Ich habe es schon hinbekommen dass die Bestellnummer korrekt übergeben wird. Nun hänge ich aber am Übergeben vom Bestellbetrag ohne Versand und Mehrwertsteuer.


Tracking Code:

conversion.php?campaignID=5259&productID


Wie gesagt bei transactionID={$id_order} läuft alles korrekt nur bei transactionAmount={$order} wird einfach kein Betrag übergeben. Ich habe mal den quelltext von order-confirmation tpl und php angehängt.

Hat jemand von Euch eine Idee?

Der Support aus Holland hat folgendes geantwortet:
Let them try $order->total_products for the amount
Weitergeholfen hat mir das auch nicht.



Vielen Dank für Eure Mühe!

Liebe Grüsse
Dominik

___________



ORDER-CONFIRMATION.PHP


<?php

/* SSL Management */
$useSSL = true;

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');


$id_cart = intval(Tools::getValue('id_cart', 0));
$id_module = intval(Tools::getValue('id_module', 0));
$id_order = Order::getOrderByCartId(intval($id_cart));
$secure_key = Tools::getValue('key', false);
if (!$id_order OR !$id_module OR !$secure_key OR empty($secure_key))
Tools::redirect('history.php'.(Tools::isSubmit('slowvalidation') ? '?slowvalidation' : ''));
$order = new Order(intval($id_order));
if (!Validate::isLoadedObject($order) OR $order->id_customer != $cookie->id_customer OR $secure_key != $order->secure_key)
Tools::redirect('history.php');
$module = Module::getInstanceById(intval($id_module));
if ($order->payment != $module->displayName)
Tools::redirect('history.php');
$smarty->assign(array(
'HOOK_ORDER_CONFIRMATION' => Hook::orderConfirmation(intval($id_order)),
'HOOK_PAYMENT_RETURN' => Hook::paymentReturn(intval($id_order), intval($id_module))));


$smarty->display(_PS_THEME_DIR_.'order-confirmation.tpl');


include(dirname(__FILE__).'/footer.php');
include('spread_this_confirm.php');




___________________________



ORDER-CONFIRMATION.TPL


[removed]
<!--
var baseDir = '{$base_dir_ssl}';
-->
[removed]

{capture name=path}{l s='Order confirmation'}{/capture}
{include file=$tpl_dir./breadcrumb.tpl}

{l s='Order confirmation'}




{assign var='current_step' value='payment'}
{include file=$tpl_dir./order-steps.tpl}

{include file=$tpl_dir./errors.tpl}

{$HOOK_ORDER_CONFIRMATION}
{$HOOK_PAYMENT_RETURN}

$order->total_products



conversion.php?campaignID=5259&productID
Link to comment
Share on other sites

transactionID=$order->id_order

Works for me

Just add:
(attached code, forum did not like the code i made)
to the bottom of order-confirmation.tpl

leads doesn't need transactionamount
sales does, but haven't found that out yet.

(sorry for writing english, my german is that great. can read it though)

code.txt

Link to comment
Share on other sites

  • 5 months later...
  • 2 years later...
×
×
  • Create New...