Skip to content

Commit 623f58a

Browse files
committed
MC-29780: Cannot add configurable product to cart
1 parent 8dcd0a7 commit 623f58a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Catalog/Block/Product/ListProduct.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ public function getIdentities()
355355
}
356356

357357
foreach ($this->_getProductCollection() as $item) {
358+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
358359
$identities = array_merge($identities, $item->getIdentities());
359360
}
360361

@@ -369,7 +370,7 @@ public function getIdentities()
369370
*/
370371
public function getAddToCartPostParams(Product $product)
371372
{
372-
$url = $this->getAddToCartUrl($product);
373+
$url = $this->getAddToCartUrl($product, ['_escape' => false]);
373374
return [
374375
'action' => $url,
375376
'data' => [

0 commit comments

Comments
 (0)