diff --git a/Core/Controller/ThankYouController.php b/Core/Controller/ThankYouController.php index c674a5b..b094827 100755 --- a/Core/Controller/ThankYouController.php +++ b/Core/Controller/ThankYouController.php @@ -25,11 +25,13 @@ protected function rs_awin() $awc = \OxidEsales\Eshop\Core\Registry::getUtilsServer()->getOxCookie('awc'); $url = "https://www.awin1.com/sread.php?tt=ss&tv=2&merchant=".$sMerchant; - $url .= "&amount=" . $oOrder->getTotalOrderSum(); + //$url .= "&amount=" . $oOrder->getTotalOrderSum(); + $url .= "&amount=" . $oOrder->oxorder__oxtotalnetsum->value; $url .= "&ch=aw"; $url .= "&cr=" . $oOrder->getOrderCurrency()->name; $url .= "&ref=" . $oOrder->oxorder__oxordernr->value; - $url .= "&parts=DEFAULT:" . $oOrder->getTotalOrderSum(); + //$url .= "&parts=DEFAULT:" . $oOrder->getTotalOrderSum(); + $url .= "&parts=DEFAULT:" . $oOrder->oxorder__oxtotalnetsum->value; $url .= "&testmode=0&vc=" . ""; if ($awc!="") { $url .= "&cks=" . $awc; // Populate the Awin click checksum if one is associated with the conversion