Пример #1
0
 function init()
 {
     parent::init();
     $this->addCondition('website_display', true);
     $this->addCondition($this->dsql()->orExpr()->where('to_customer_id', null)->where('to_customer_id', 0));
     $this->addCondition('is_template', false);
 }
Пример #2
0
 function init()
 {
     parent::init();
     $customer = $this->add('xepan\\commerce\\Model_Customer');
     $customer->loadLoggedIn();
     $template_cat_model = $this->add('xepan\\commerce\\Model_Category')->addCondition('name', 'Templates');
     $cat_assoc_j = $this->join('category_item_association.item_id');
     $cat_assoc_j->addField('category_id');
     $order_items_j = $this->join('qsp_detail.item_id');
     $order_j = $order_items_j->join('qsp_master.document_id', 'qsp_master_id');
     $order_j->addField('contact_id');
     $invoice_j = $order_j->join('qsp_master.related_qsp_master_id', 'document_id');
     $invoice_doc_j = $invoice_j->join('document', 'document_id');
     $invoice_doc_j->addField('invoice_status', 'status');
     $this->addCondition('invoice_status', 'Paid');
     $this->addCondition('contact_id', $customer->id);
     $this->addCondition('category_id', $template_cat_model->fieldQuery('id'));
 }
Пример #3
0
 function init()
 {
     parent::init();
     $this->addCondition('is_allowuploadable', true);
 }
Пример #4
0
 function init()
 {
     parent::init();
     $this->addCondition('is_template', true);
     // $this->addCondition('is_designable',true);
 }
Пример #5
0
 function init()
 {
     parent::init();
     $this->addCondition('is_saleable', true);
 }
Пример #6
0
 function init()
 {
     parent::init();
     $this->addCondition('is_productionable', true);
 }
Пример #7
0
 function init()
 {
     parent::init();
     $this->addCondition('is_purchasable', true);
 }