本文整理汇总了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);
}
}