本文整理匯總了PHP中Basket::toOrder方法的典型用法代碼示例。如果您正苦於以下問題:PHP Basket::toOrder方法的具體用法?PHP Basket::toOrder怎麽用?PHP Basket::toOrder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Basket
的用法示例。
在下文中一共展示了Basket::toOrder方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: basket
function basket()
{
if ($_POST) {
$basket = new Basket();
$basket->toOrder();
$this->redirect('/cabinet/basket/thanks/');
} else {
if (Funcs::$uri[2] == 'delivery') {
$seo['seo_title'] = 'Условия доставки';
Funcs::setMeta($seo);
$basket = new Basket();
$data['order'] = $basket->getOrder();
$data['delivery'] = $basket->getDelivery($data['order']);
View::render('cabinet/delivery', $data);
} elseif (Funcs::$uri[2] == 'thanks') {
$seo['seo_title'] = 'Благодарим вас за заказ!';
Funcs::setMeta($seo);
View::render('basket/thanks');
} else {
$data['seo_title'] = 'Корзина';
Funcs::setMeta($data);
$basket = new Basket();
$data['order'] = $basket->getOrder();
//$data['delivery']=$basket->getDelivery($data['order']);
//$data['payment']=$basket->getOrder($data['order']);
View::render('cabinet/basket', $data);
}
}
}
示例2: click
public function click()
{
if ($_POST) {
Basket::setStep1();
$basket = new Basket();
$basket->toOrder();
$this->redirect('/basket/thanks/?1stepover');
} else {
$tree['seo_title'] = $tree['seo_keywords'] = $tree['seo_description'] = 'Ваши данные';
Funcs::setMeta($tree);
$basket = new Basket();
$tree['order'] = $basket->getOrder();
View::render('basket/click', $tree);
}
}