Jump to content
xt:Commerce Community Forum

Parameter für Variable Warenkorb wird 0 ausgegeben


dimoncss

Recommended Posts

Hallo,

ja da hat sich tatsächlich etwas geändert. Folgendes findet man in den Tracking-Plugins wir z.B. Belboon Affiliate Tracking oder Google Adwords Conversion Tracking.


if (!is_object($success_order)) return false;

        $total_net=0;

		foreach ($success_order->order_products as $key => $arr) {

		    $total_net+=$arr['products_final_price']['plain_otax'];

        }

Die Variable "$total_net" hat dann den Warenkorbwert der Bestellung ohne Steuer.

Viele Grüße,

Stefan

Link to comment
Share on other sites

hat noch vor kurzem Funktioniert Version CE 4.0.14

leadid='.$_SESSION['registered_customer'].';sum='.$_SESSION['cart']->total['plain'].';cur=EUR[/CODE]

warum geht diese Variable nicht mehr ? habe es schon alles probiert, nix geht. Warenkorb wird zur 0 ausgegeben. Kann ich die Variable per Debug console auslen?

hier mein Code

[PHP]defined('_VALID_CALL') or die('Direct Access is not allowed.');


$brotkrumen->_addItem($xtLink->_link(array('page'=>'checkout','paction'=>'success')),TEXT_SUCCESS);

$success_order_id = (int)$_SESSION['success_order_id'];
$success_order = new order($_SESSION['success_order_id'],$_SESSION['customer']->customers_id);
$_show = 'true';
($plugin_code = $xtPlugin->PluginCode('module_checkout.php:success')) ? eval($plugin_code) : false;
echo '<img width="1" height="1" border="0" src="http://track.adcocktail.com/tracking_sale.php?kid=2274&lv=0&bestid='.$_SESSION['registered_customer'].'&wert='.$_SESSION['cart']->total['plain'].'&beschreibung=">';
echo '<img width="1" height="1" border="0" src="http://www.partner-ads.com/de/leadtrack.php?programid=3267&type=salg&ordrenummer='.$_SESSION['registered_customer'].'&varenummer=x&antal=1&omprsalg='.$_SESSION['cart']->total['plain'].'">';
echo '<img src="http://tracking.v1.de.eutrack.adaos-ads.net/?inv=img;cmp=1398;event=11536;leadid='.$_SESSION['registered_customer'].';sum='.$_SESSION['cart']->total['plain'].';cur=EUR" width="1" height="1" />';
echo '<img src="https://www.kdukvh.com/u?CID=1523509&OID='.$_SESSION['registered_customer'].'&TYPE=352029&AMOUNT='.$_SESSION['cart']->total['plain'].'&CURRENCY=EUR&METHOD=IMG" height="1" width="20">';
echo '<img src="https://ts.tradetracker.net/?cid=9021&pid=13727&tid={transactionID}&tam='$success_order->order_total['total']['plain']'&eml={email}&descrMerchant={descrMerchant}&descrAffiliate={descrAffiliate}" alt="" width="1" height="1" border="0" />';


//$_SESSION['cart']->_resetCart();
// Payment
$payment_class_path = _SRV_WEBROOT._SRV_WEB_PLUGINS.$success_order->order_data['payment_code'].'/classes/';
$payment_class_file = 'class.'.$success_order->order_data['payment_code'].'.php';

if (file_exists($payment_class_path . $payment_class_file)) {
require_once($payment_class_path.$payment_class_file);
$payment_module_data = new $success_order->order_data['payment_code']();
}

$checkout_data = array('page_action'=>$page_data,'show_next_button'=>$_show);
echo $tracking_adcocktail;

if($_SESSION['customer']->customers_status == _STORE_CUSTOMERS_STATUS_ID_GUEST)
session_destroy();[/PHP]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...