Skip to content

Instantly share code, notes, and snippets.

@michaelhjulskov
Last active August 29, 2015 14:20
Show Gist options
  • Save michaelhjulskov/71ae91b48b79b453bdca to your computer and use it in GitHub Desktop.
Save michaelhjulskov/71ae91b48b79b453bdca to your computer and use it in GitHub Desktop.
make total_paid available on confirmation tpl page
<?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