Skip to content

Commit 4ac06ed

Browse files
zambotenmage2pratik
authored andcommitted
Convert to string $option->getValue, in order to be compared with other saved options in previous cart items
1 parent 72b6452 commit 4ac06ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Model/Quote/Item/CartItemProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function convertToBuyRequest(CartItemInterface $cartItem)
5959
if (is_array($options)) {
6060
$requestData = [];
6161
foreach ($options as $option) {
62-
$requestData['super_attribute'][$option->getOptionId()] = $option->getOptionValue();
62+
$requestData['super_attribute'][$option->getOptionId()] = (string) $option->getOptionValue();
6363
}
6464
return $this->objectFactory->create($requestData);
6565
}

0 commit comments

Comments
 (0)