![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/Ecombricks/InventoryBundle/Plugin/Pricing/Price/ |
<?php /** * Copyright © eComBricks. All rights reserved. * See COPYING.txt for license details. */ namespace Ecombricks\InventoryBundle\Plugin\Pricing\Price; /** * Bundle options plugin */ class BundleOptions { /** * Around get option selection amount * * @param \Magento\Bundle\Pricing\Price\BundleOptions $subject * @param \Closure $proceed * @param \Magento\Catalog\Model\Product $bundleProduct * @param \Magento\Bundle\Model\Selection|\Magento\Catalog\Model\Product $selection * @param bool $useRegularPrice * @return \Magento\Framework\Pricing\Amount\AmountInterface */ public function aroundGetOptionSelectionAmount( \Magento\Bundle\Pricing\Price\BundleOptions $subject, \Closure $proceed, \Magento\Catalog\Model\Product $bundleProduct, $selection, bool $useRegularPrice = false ): \Magento\Framework\Pricing\Amount\AmountInterface { return $subject->inventoryGetOptionSelectionAmount($bundleProduct, $selection, $useRegularPrice); } }