Пример #1
0
 public function __construct()
 {
     parent::__construct();
     $this->check_cart_items();
     $this->title = wpsc_get_checkout_title();
     $this->init_checkout_wizard();
 }
Пример #2
0
 public function __construct()
 {
     if (is_user_logged_in()) {
         wp_redirect(wpsc_get_store_url());
         exit;
     }
     $this->title = wpsc_get_password_reminder_title();
     parent::__construct();
 }
Пример #3
0
 public function __construct()
 {
     if (is_user_logged_in()) {
         wp_redirect(wpsc_get_store_url());
         exit;
     }
     parent::__construct();
     $this->title = wpsc_get_register_title();
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     if (!is_user_logged_in()) {
         wp_redirect(wpsc_get_login_url());
         exit;
     }
     $this->title = wpsc_get_customer_account_title();
 }
Пример #5
0
 public function __construct()
 {
     parent::__construct();
     require_once WPSC_TE_V2_CLASSES_PATH . '/cart-item-table.php';
     require_once WPSC_TE_V2_CLASSES_PATH . '/cart-item-table-form.php';
     $this->view = 'cart';
     $this->title = wpsc_get_cart_title();
     $this->init_cart_item_table();
 }
Пример #6
0
 public function __construct()
 {
     if (is_user_logged_in()) {
         wp_redirect(wpsc_get_store_url());
         exit;
     }
     parent::__construct();
     //Set a cookie now to see if they are supported by the browser.
     setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
     if (SITECOOKIEPATH != COOKIEPATH) {
         setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
     }
     $this->title = wpsc_get_login_title();
 }