Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->paginate= array(
- 'Product' => array(
- 'conditions' => array(
- 'Product.id' => $product_ids,
- 'Product.active' => 1,
- 'Product.web_active' => 1,
- 'Product.productnumber !=' => '',
- 'AND' => array(
- 'OR' => array(
- array (
- 'Product.type' => array(2, 3),
- 'Product.multi' => false,
- ),
- array (
- 'Product.type' => 1,
- 'Product.multi' => true
- )
- )
- )
- ),
- 'contain' => array(
- 'ProductWarehouse',
- 'ProductReview',
- 'ProductCategoryImage',
- 'Tax',
- 'Surcharge',
- 'ProductChildren' => array(
- 'conditions' => array(
- 'ProductChildren.active' => true,
- 'ProductChildren.multi' => true,
- 'ProductChildren.web_active' => true,
- 'ProductChildren.price >' => 0,
- ),
- 'limit' => 1
- ),
- ),
- 'order' => 'price',
- $this->params['named']
- )
- );
Add Comment
Please, Sign In to add comment