Skip to content

Commit

Permalink
Merge pull request #51 from jorgeeurekalabs/main
Browse files Browse the repository at this point in the history
DEVREL-9: fixed problem with abandoned carts update
  • Loading branch information
jorgeeurekalabs authored Jan 27, 2023
2 parents 45b6367 + 134cb33 commit f67c91c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AbandonedCart/Model/AbandonedCartSendData.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ public function sendAbandonedCartData($quoteId = null): array
$abandonedCarts->addFieldToFilter('entity_id', ['eq' => $quoteId]);
}
$abandonedCarts->setPageSize($numberOfAbandonedCart);

$abandonedCarts->getSelect()->join(array('address' => $abandonedCarts->getResource()->getTable('quote_address')),'main_table.entity_id = address.quote_id')
->where("address.address_type='billing' and (main_table.customer_email is not null or address.email is not null)");
foreach ($abandonedCarts as $abandonedCart) {
$connectionId = $this->coreHelper->getConnectionId($abandonedCart->getStoreId());

Expand Down

0 comments on commit f67c91c

Please sign in to comment.