I’d like to replace the error message in this magento core function. vendor/magento/module-inventory-sales/Model/IsProductSalableCondition/BackOrderNotifyCustomerCondition.php public function execute(string $sku, int $stockId, float $requestedQty): ProductSalableResultInterface { $stockItemConfiguration = $this->getStockItemConfiguration->execute($sku, $stockId); if ($stockItemConfiguration->isManageStock() && $stockItemConfiguration->getBackorders() === StockItemConfigurationInterface::BACKORDERS_YES_NOTIFY ) { $stockItemData = $this->getStockItemData->execute($sku, $stockId); if (null === $stockItemData) { return $this->productSalableResultFactory->create(['errors' => []]); } $salableQty […]
Magento1
I’m trying to add a captcha to a custom form that I created in a CMS page in Magento. The captcha is working correctly on the default Contact Us page, but it’s not refreshing every time on my custom form. Here’s how I’m currently calling the captcha block in my […]
facing issue to install magento 2.4.2 in sub directory – because in magento 2.4.2 and higher website root file is different than it was in magento 2.4.1 or lower (like 2.3). magento 2.4.2 or higher websites work from pub folder situation: upgraded to magento 2.4.2 from 2.3.7 => successful (as […]
i need problem with extension interface in magento2. Mi extension_attributes.xml: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd"> <extension_attributes for="MagentoSalesRuleApiDataCouponGenerationSpecInterface"> <attribute code="specific" type="string" /> </extension_attributes> </config> Mi di.xml <preference for="MagentoSalesRuleBlockAdminhtmlPromoQuoteEditTabCouponsForm" type="CustomSalesRuleBlockAdminhtmlPromoQuoteEditTabCouponsForm" /> <preference for="MagentoSalesRuleHelperCoupon" type="CustomSalesRuleHelperCoupon"/> <preference for="MagentoSalesRuleModelServiceCouponManagementService" type="CustomSalesRuleModelServiceCouponManagementService"/> <preference for="MagentoSalesRuleModelCouponMassgenerator" type="CustomSalesRuleModelCouponMassgenerator"/> <preference for="MagentoSalesRuleModelDataCouponGenerationSpec" type="CustomSalesRuleModelDataCouponGenerationSpec"/> Mi model/data: <?php namespace CustomSalesRuleModelData; class CouponGenerationSpec extends MagentoSalesRuleModelDataCouponGenerationSpec { const […]
I updated my php version is 8.3 and magento version is 2.4.6 currently facing issue with round functionality. Exception message: Deprecated Functionality: round(): Passing null to parameter #1 ($num) of type int|float is deprecated Fee.php $amount = $invoice->getHandlingCharges(); $amount += round($invoice->getHandlingChargesTax(), 3, PHP_ROUND_HALF_UP); $baseAmount = $invoice->getBaseHandlingCharges(); $baseAmount += round($invoice->getBaseHandlingChargesTax(), 3, […]
Currently as it looks, when creating a Configurable product, it needs its own SKU, and then the SKUs of its children all different; Configurable SKU: XX-SHIRT Child 1: XX-SHIRT-BLACK Child 2: XX-SHIRT-RED The issue I run into with this, is I would like the Configurable SKU to default to Black, […]
How i can get Hyva for development and learning purpose without buying subscription as a Magento developer just for exploring. I know they have subscription fee but is their any way i can get it for learning development purpose.
i imported files from an existing website to another server on plesk. Problem is, after deploying, upgrading and compiling correctly, on checkout i get a message that says “invalid shipping information, check input value”. When i open console with f12 i get this
i am implementing a functionality where each product have different input field in frontend where user can input value as per their requirement .and it has multi step form in frontend second step have radio button selection and then add to cart. Problem: I created custom option for each product […]