예제 #1
0
 public static function get_instance()
 {
     if (empty(self::$instance)) {
         self::$instance = new WPSC_Cart_Item_Table_Form();
     }
     return self::$instance;
 }
예제 #2
0
 private function init_cart_item_table()
 {
     $cart_item_table = WPSC_Cart_Item_Table_Form::get_instance();
     $cart_item_table->show_tax = false;
     $cart_item_table->show_shipping = false;
     $cart_item_table->show_total = false;
 }
예제 #3
0
function wpsc_cart_item_table()
{
    require_once WPSC_TE_V2_CLASSES_PATH . '/cart-item-table.php';
    require_once WPSC_TE_V2_CLASSES_PATH . '/cart-item-table-form.php';
    $cart_item_table = WPSC_Cart_Item_Table_Form::get_instance();
    $cart_item_table->display();
}
 public function __construct()
 {
     parent::__construct();
     $this->show_shipping = false;
     $this->show_tax = false;
     $this->show_total = false;
     $this->show_thumbnails = false;
     $this->show_coupon_field = false;
     unset($this->columns['unit_price']);
 }
 public function __construct()
 {
     parent::__construct();
     $this->show_shipping = false;
     $this->show_tax = false;
     $this->show_total = false;
     $this->show_thumbnails = false;
     $this->columns['quantity'] = _x('Qty', 'quantity abbreviation', 'wpsc');
     unset($this->columns['unit_price']);
 }