*/ /** * This view is for letting the user know the transaction was completed, and * emptying the shopping cart * * @package CheckoutEmail * @subpackage UserInterface */ class DoneView extends GalleryView { /** * @see GalleryView::loadTemplate */ function loadTemplate(&$template, &$form) { global $gallery; /* First, empty out the shopping cart */ $event = GalleryCoreApi::newEvent('GalleryCheckout::emptyCart'); list ($ret) = GalleryCoreApi::postEvent($event); if ($ret) { return $ret->wrap(__FILE__, __LINE__); } list ($ret, $module) = GalleryCoreApi::loadPlugin('module','checkoutemail'); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } $template->title($gallery->i18n('Checkout') . '::' . $gallery->i18n('Order Complete')); return array(null, array('body' => 'modules/checkoutemail/templates/Done.tpl')); } } ?>