Skip to content

Commit 3a2bb6f

Browse files
authored
🔃 [Magento Community Engineering] Community Contributions
Accepted Community Pull Requests: - #26611: #26610 Fix failing CI due to invalid variable handler (by @lbajsarowicz) - #26634: Xml fixes for Magento_AdvancedPricingImportExport module (by @sanganinamrata) - #26241: #26240: Fixed logic for getting option price index for selected swatch option (by @sergiy-v) - #26525: Unit test for Magento\Reports\Observer\EventSaver (by @karyna-tsymbal-atwix) - #26549: [Fedex] covered Model/Source/Generic.php by unit test (by @srsathish92) - #26487: Unit test for Magento\Fedex\Plugin\Block\Tracking\PopupDeliveryDate (by @karyna-tsymbal-atwix) - #26439: magento/magento2#: Unit test for \Magento\Bundle\Observer\InitOptionRendererObserver (by @atwixfirster) - #26429: magento/magento2#: Unit test for \Magento\Bundle\Observer\AppendUpsellProductsObserver (by @atwixfirster) Fixed GitHub Issues: - #26610: MFTF: AdminAddingNewOptionsWithImagesAndPricesToConfigurableProductTest is failing in CI process (reported by @lbajsarowicz) has been fixed in #26611 by @lbajsarowicz in 2.4-develop branch Related commits: 1. b29cdcd - #26240: Minimum Advertised Price doesn't change for selected swatch option for configurable product (reported by @sergiy-v) has been fixed in #26241 by @sergiy-v in 2.4-develop branch Related commits: 1. 2d2f1e0 2. 2f04078 3. c8c31bc 4. 324fa3f 5. 03ef933 6. 4ace1e6
2 parents f4e5311 + cfeb36f commit 3a2bb6f

File tree

12 files changed

+945
-12
lines changed

12 files changed

+945
-12
lines changed

app/code/Magento/AdvancedPricingImportExport/etc/module.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_AdvancedPricingImportExport" >
10-
</module>
9+
<module name="Magento_AdvancedPricingImportExport"/>
1110
</config>

app/code/Magento/Bundle/Observer/AppendUpsellProductsObserver.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\Framework\Event\ObserverInterface;
99

10+
/**
11+
* Class adds bundle products into up-sell products collection
12+
*/
1013
class AppendUpsellProductsObserver implements ObserverInterface
1114
{
1215
/**
@@ -98,9 +101,15 @@ public function execute(\Magento\Framework\Event\Observer $observer)
98101
}
99102

100103
/* @var $bundleCollection \Magento\Catalog\Model\ResourceModel\Product\Collection */
101-
$bundleCollection = $product->getCollection()->addAttributeToSelect(
104+
$bundleCollection = $product->getCollection();
105+
$bundleCollection->addAttributeToSelect(
102106
$this->config->getProductAttributes()
103-
)->addStoreFilter()->addMinimalPrice()->addFinalPrice()->addTaxPercents()->setVisibility(
107+
);
108+
$bundleCollection->addStoreFilter();
109+
$bundleCollection->addMinimalPrice();
110+
$bundleCollection->addFinalPrice();
111+
$bundleCollection->addTaxPercents();
112+
$bundleCollection->setVisibility(
104113
$this->productVisibility->getVisibleInCatalogIds()
105114
);
106115

app/code/Magento/Bundle/Observer/InitOptionRendererObserver.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,25 @@
55
*/
66
namespace Magento\Bundle\Observer;
77

8+
use Magento\Bundle\Helper\Catalog\Product\Configuration;
9+
use Magento\Framework\Event\Observer;
810
use Magento\Framework\Event\ObserverInterface;
911

12+
/**
13+
* Initiates render options
14+
*/
1015
class InitOptionRendererObserver implements ObserverInterface
1116
{
1217
/**
1318
* Initialize product options renderer with bundle specific params
1419
*
15-
* @param \Magento\Framework\Event\Observer $observer
20+
* @param Observer $observer
1621
* @return $this
1722
*/
18-
public function execute(\Magento\Framework\Event\Observer $observer)
23+
public function execute(Observer $observer)
1924
{
2025
$block = $observer->getBlock();
21-
$block->addOptionsRenderCfg('bundle', \Magento\Bundle\Helper\Catalog\Product\Configuration::class);
26+
$block->addOptionsRenderCfg('bundle', Configuration::class);
2227
return $this;
2328
}
2429
}

0 commit comments

Comments
 (0)