function sendOrderEmails($orderID) { $order = eZOrder::fetch($orderID); // Fetch the shop account handler $accountHandler = eZShopAccountHandler::instance(); $email = $accountHandler->email($order); // Fetch the confirm order handler $confirmOrderHandler = eZConfirmOrderHandler::instance(); $params = array('email' => $email, 'order' => $order); $confirmOrderStatus = $confirmOrderHandler->execute($params); return array('status' => eZModuleOperationInfo::STATUS_CONTINUE); }
function accountEmail() { // Fetch the shop account handler $accountHandler = eZShopAccountHandler::instance(); return $accountHandler->email($this); }
$item = eZProductCollectionItem::fetch($itemIDList[$i]); if (is_object($item) && $item->attribute('productcollection_id') == $productCollectionID) { $item->setAttribute("item_count", $itemCountList[$i]); $item->store(); } } $db->commit(); if ($itemCountError) { // Redirect to basket $module->redirectTo($module->functionURI("basket") . "/(error)/invaliditemcount"); return; } } } // Fetch the shop account handler $accountHandler = eZShopAccountHandler::instance(); // Do we have all the information we need to start the checkout if (!$accountHandler->verifyAccountInformation()) { // Fetches the account information, normally done with a redirect $accountHandler->fetchAccountInformation($module); return; } else { // Creates an order and redirects $basket = eZBasket::currentBasket(); $productCollectionID = $basket->attribute('productcollection_id'); $verifyResult = eZProductCollection::verify($productCollectionID); $db = eZDB::instance(); $db->begin(); $basket->updatePrices(); if ($verifyResult === true) { $order = $basket->createOrder();