cokeboys Posted June 13, 2011 Share Posted June 13, 2011 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 damitBestelldaten 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: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 amountWeitergeholfen hat mir das auch nicht.Vielen Dank für Eure Mühe!Liebe GrüsseDominik___________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 {l s='Back to orders'} Link to comment Share on other sites More sharing options...
DKM84 Posted June 14, 2011 Share Posted June 14, 2011 transactionID=$order->id_orderWorks for meJust add:(attached code, forum did not like the code i made)to the bottom of order-confirmation.tplleads doesn't need transactionamountsales 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 More sharing options...
[PrestaModule] Steph Posted December 4, 2011 Share Posted December 4, 2011 Hi We have a module for that : Advanced Tracking Wizard Hope it helps Link to comment Share on other sites More sharing options...
Alexmp4 Posted June 10, 2014 Share Posted June 10, 2014 Hi We have a module for that : Advanced Tracking Wizard Hope it helps Hi, Can you give me the code you use in your mmodule for TradeTracker tracking code ? Best regards Link to comment Share on other sites More sharing options...
Recommended Posts