Skip to content

Commit bfe7a1f

Browse files
committed
Removed customer_identifier directly from models
1 parent d793186 commit bfe7a1f

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

Model/AbstractDataLayer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ protected function getProductAttributeValue(Product $product, ?string $attribute
317317
* @throws NoSuchEntityException
318318
* @throws \Magento\Framework\Exception\LocalizedException
319319
*/
320+
/*
320321
protected function getCustomerGroupCode(): string
321322
{
322323
if (null === $this->customerGroupCode) {
@@ -327,13 +328,14 @@ protected function getCustomerGroupCode(): string
327328
$group = $this->groupRepository->getById($customerGroupId);
328329
$this->customerGroupCode = (string)$group->getCode();
329330
} catch (NoSuchEntityException $e) {
330-
/* Do nothing */
331+
/* Do nothing *
331332
}
332333
}
333334
}
334335
335336
return $this->customerGroupCode;
336337
}
338+
*/
337339

338340
/**
339341
* @param array $data

Model/DataLayer/AbstractOrder.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public function get(Order $order, string $requester = ''): array
6767
],
6868
'is_virtual' => (bool)$order->getIsVirtual(),
6969
'shipping_description' => $order->getShippingDescription(),
70-
'customer_is_guest' => (bool)$order->getCustomerIsGuest(),
71-
'customer_identifier' => hash('sha256', (string)$order->getCustomerEmail()),
70+
'customer_is_guest' => (bool)$order->getCustomerIsGuest()
7271
];
7372

7473
if ($order->getCustomerId()) {

Model/DataLayer/BeginCheckout.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public function get(Quote $quote): array
6767
'value' => $this->formatPrice((float)$value),
6868
'coupon' => $quote->getCouponCode() ?: '',
6969
'items' => $items
70-
],
71-
'customer_identifier' => $quote->getCustomerEmail() ? hash('sha256', (string)$quote->getCustomerEmail()) : ''
70+
]
7271
];
7372

7473
if ($quote->getCustomerId()) {

Model/DataLayer/ViewCart.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ public function get(Quote $quote): array
7171
],
7272
'items_count' => count($items),
7373
'items_qty' => $itemsQty,
74-
'coupon_code' => $quote->getCouponCode() ?: '',
75-
'customer_identifier' => $quote->getCustomerEmail() ? hash('sha256', (string)$quote->getCustomerEmail()) : ''
74+
'coupon_code' => $quote->getCouponCode() ?: ''
7675
];
7776

7877
if ($quote->getCustomerId()) {

0 commit comments

Comments
 (0)