function __construct($str) { parent::__construct(); if (App::POST('button_buy')) { $this->go_toPay(App::POST('button_buy')); } $this->search = $str; $this->product = $this->get_product($str); parent::template('search'); }
function __construct($id) { parent::__construct(); if (empty($id) or !is_numeric($id)) { parent::page_404(); } if (App::POST('button')) { $this->go_toPay(App::POST('button')); } $this->brand = $this->get_brand($id); $this->products = $this->get_brandProduct($id); }
public $categories; public $product; public $sale; public $price; public $brands; function __construct($str) { parent::__construct(); if (empty($str) or !is_string($str)) { parent::page_404(); exit; } if (App::POST('button')) { $this->go_toPay(App::POST('button')); }
function __construct($id = NULL) { parent::__construct(); if (empty($id) or !is_numeric($id)) { parent::page_404(); } $this->product = $this->get_Product(); $this->checkout($_POST['quantity'], $_POST['idProduct'], App::POST('fullName'), App::POST('phone'), App::POST('email'), App::POST('addres'), App::POST('commentText'), App::POST('deliveryMethodId'), App::POST('paymentMethodId')); if (App::GET('thank')) { echo "<script>alert('Спасибо, заказ принят')</script>"; } if (isset($id)) { $this->dell_Product($id); } }
function __construct($str) { parent::__construct(); if (empty($str) or !is_numeric($str)) { parent::page_404(); } if (App::POST('button_buy')) { $this->go_toPay(App::POST('button_buy')); } if (App::POST('button buy_credit')) { $this->go_toPay(App::POST('button buy_credit')); } $this->sendMessage(App::POST('comment_item_id'), App::POST('comment_author'), App::POST('comment_text')); $this->product = $this->get_product($str); $this->sale = $this->get_sale(); parent::template('product'); }