Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array
- (
- [period] => 2019-01-01
- [qty_ordered] => 12.0000
- [product_id] => 2080
- [product_name] => Watchadmin1
- [product_price] => 1010.0000
- )
- Array
- (
- [period] => 2019-01-01
- [qty_ordered] => 11.0000
- [product_id] => 2086
- [product_name] => WatchAdmin88
- [product_price] => 1010.0000
- )
- Array
- (
- [period] => 2019-01-01
- [qty_ordered] => 11.0000
- [product_id] => 2076
- [product_name] => admin3
- [product_price] => 1010.0000
- )
- Array
- (
- [entity_id] => 2080
- [attribute_set_id] => 4
- [type_id] => simple
- [sku] => Watchadmin1
- [has_options] => 0
- [required_options] => 0
- [created_at] => 2019-02-25 10:06:20
- [updated_at] => 2019-05-03 10:59:27
- [current_user_id] => 1
- )
- Array
- (
- [entity_id] => 2081
- [attribute_set_id] => 4
- [type_id] => simple
- [sku] => Watchadmin8
- [has_options] => 0
- [required_options] => 0
- [created_at] => 2019-02-25 14:36:21
- [updated_at] => 2019-05-03 12:49:05
- [current_user_id] => 1
- )
- foreach ($sellercollection as $allProduct){
- foreach ($bestsalecollection as $bestSale){
- if($allProduct->getEntityId()==$bestSale->getProductId()){
- $filter_product[]=$bestSale;
- }
- }
- }
- **Output is**
- Array
- (
- [period] => 2019-01-01
- [qty_ordered] => 11.0000
- [product_id] => 2076
- [product_name] => admin3
- [product_price] => 1010.0000
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement