Commit 4e29848 Florin Mandoc
committed
1 parent 1806f04 commit 4e29848 Copy full SHA for 4e29848
File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ public function mapByProduct(ProductInterface $product): array
83
83
}
84
84
85
85
$ productData ['price ' ] = $ this ->priceFormatter ->format ((float ) $ product ->getPriceInfo ()->getPrice (FinalPrice::PRICE_CODE )->getValue ());
86
+ if ($ product ->getCustomOption ('simple_product ' ) && $ product ->getCustomOption ('simple_product ' )->getProduct ()) {
87
+ $ simpleProduct = $ product ->getCustomOption ('simple_product ' )->getProduct ();
88
+ $ productData ['price ' ] = $ this ->priceFormatter ->format ((float ) $ simpleProduct ->getPriceInfo ()->getPrice (FinalPrice::PRICE_CODE )->getValue ());
89
+ }
86
90
87
91
$ productData = $ this ->attachCategoriesData ($ product , $ productData );
88
92
$ productData = $ this ->parseDataLayerMapping ($ product , $ productData );
You can’t perform that action at this time.
0 commit comments