Last active
August 29, 2015 14:20
-
-
Save michaelhjulskov/71ae91b48b79b453bdca to your computer and use it in GitHub Desktop.
make total_paid available on confirmation tpl page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Michael Hjulskov | |
*/ | |
class OrderConfirmationController extends OrderConfirmationControllerCore | |
{ | |
public function initContent() | |
{ | |
parent::initContent(); | |
$order = new Order($this->id_order); | |
if (Validate::isLoadedObject($order)){ | |
$this->context->smarty->assign('total_paid', $order->total_paid); // used for adwords conversion tracking | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment