Guest User

Untitled

a guest
Nov 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. $this->paginate= array(
  2. 'Product' => array(
  3. 'conditions' => array(
  4. 'Product.id' => $product_ids,
  5. 'Product.active' => 1,
  6. 'Product.web_active' => 1,
  7. 'Product.productnumber !=' => '',
  8. 'AND' => array(
  9. 'OR' => array(
  10. array (
  11. 'Product.type' => array(2, 3),
  12. 'Product.multi' => false,
  13. ),
  14. array (
  15. 'Product.type' => 1,
  16. 'Product.multi' => true
  17. )
  18. )
  19. )
  20. ),
  21.  
  22. 'contain' => array(
  23. 'ProductWarehouse',
  24. 'ProductReview',
  25. 'ProductCategoryImage',
  26. 'Tax',
  27. 'Surcharge',
  28. 'ProductChildren' => array(
  29. 'conditions' => array(
  30. 'ProductChildren.active' => true,
  31. 'ProductChildren.multi' => true,
  32. 'ProductChildren.web_active' => true,
  33. 'ProductChildren.price >' => 0,
  34. ),
  35.  
  36. 'limit' => 1
  37. ),
  38.  
  39. ),
  40. 'contain'=>'Tax',
  41. 'order' => 'price',
  42. $this->params['named']
  43. )
  44.  
  45. );
Add Comment
Please, Sign In to add comment