Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Array
  2. (
  3. [period] => 2019-01-01
  4. [qty_ordered] => 12.0000
  5. [product_id] => 2080
  6. [product_name] => Watchadmin1
  7. [product_price] => 1010.0000
  8. )
  9. Array
  10. (
  11. [period] => 2019-01-01
  12. [qty_ordered] => 11.0000
  13. [product_id] => 2086
  14. [product_name] => WatchAdmin88
  15. [product_price] => 1010.0000
  16. )
  17. Array
  18. (
  19. [period] => 2019-01-01
  20. [qty_ordered] => 11.0000
  21. [product_id] => 2076
  22. [product_name] => admin3
  23. [product_price] => 1010.0000
  24. )
  25.  
  26. Array
  27. (
  28. [entity_id] => 2080
  29. [attribute_set_id] => 4
  30. [type_id] => simple
  31. [sku] => Watchadmin1
  32. [has_options] => 0
  33. [required_options] => 0
  34. [created_at] => 2019-02-25 10:06:20
  35. [updated_at] => 2019-05-03 10:59:27
  36. [current_user_id] => 1
  37. )
  38. Array
  39. (
  40. [entity_id] => 2081
  41. [attribute_set_id] => 4
  42. [type_id] => simple
  43. [sku] => Watchadmin8
  44. [has_options] => 0
  45. [required_options] => 0
  46. [created_at] => 2019-02-25 14:36:21
  47. [updated_at] => 2019-05-03 12:49:05
  48. [current_user_id] => 1
  49. )
  50.  
  51. foreach ($sellercollection as $allProduct){
  52. foreach ($bestsalecollection as $bestSale){
  53. if($allProduct->getEntityId()==$bestSale->getProductId()){
  54. $filter_product[]=$bestSale;
  55. }
  56. }
  57. }
  58.  
  59. **Output is**
  60.  
  61. Array
  62. (
  63. [period] => 2019-01-01
  64. [qty_ordered] => 11.0000
  65. [product_id] => 2076
  66. [product_name] => admin3
  67. [product_price] => 1010.0000
  68. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement