Skip to content

Render link attribute in custom page builder content type

Lets assume a custom page builder content type with a text attribute representing a link In master.html I’m already retrieving the following attributes <!–master.html–> <<div attr=”data.main.attributes” ko-style=”data.main.style” css=”data.main.css” > <div class=”homebanner-content”> <h3 attr=”data.title.attributes” html=”data.title.html”></h3> <p attr=”data.description.attributes” html=”data.description.html”></p> <a href=” <div… Read More »Render link attribute in custom page builder content type

Magento 2 show current stock for salable quantity on productpage

I have this code for showing if my product is in stock or not. <?php /* @var $block MagentoCatalogBlockProductViewAbstractView */?> <?php $_product = $block->getProduct() ?> <?php $stockstate = MagentoFrameworkAppObjectManager::getInstance()- >get(‘MagentoInventorySalesApiApiGetProductSalableQtyInterface’); $sale_qty = $stockstate->execute($_product->getSku(), 1); ?> <?php if ($block->displayProductStockStatus()): ?> <?php… Read More »Magento 2 show current stock for salable quantity on productpage

Error: Cannot instantiate interface MagentoReCaptchaWebapiApiApiWebapiValidationConfigProviderInterface

I have just upgraded my magento version from 2.4.0 to 2.4.6 and i am getting this issue on checkout shipping page and shiiping methods are not displaying. Error: Cannot instantiate interface MagentoReCaptchaWebapiApiApiWebapiValidationConfigProviderInterface in /home/websites/bollywoo/devbwuat.wddemo.net/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50 Stack trace: #0 /home/websites/hollywoo/dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create() #1… Read More »Error: Cannot instantiate interface MagentoReCaptchaWebapiApiApiWebapiValidationConfigProviderInterface