Skip to content

magento man

Notice: Undefined variable: secureRenderer in /home/user/domains/domain.com/public_html/app/

hello i get this error with my module on my store magento Notice: Undefined variable: secureRenderer in /home/user/domains/domain.com/public_html/app/code/Webkul/VideoPlayer/view/adminhtml/templates/helper/gallery.phtml on line 38 and the code <?= $secureRenderer->renderEventListenerAsTag( ‘onclick’, “jQuery(‘new-video’).modal(‘openModal’); jQuery(‘#new_video_form’)[0].reset();”, ‘button#add_video_button’ ) ?>

Feed with min_sale_qty attribute

we have a product attribute called min_sale_qty. It’s inside the advanced_inventory. We created a custom variable called min_sale_qty. No comment. Php Script: <?php class Gmsq { public function getMinSaleQtyAllowed($productSku): float { $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $stockResolver = $objectManager->get(‘MagentoInventorySalesApiApiStockResolverInterface’); $storeManager = $objectManager->get(‘MagentoStoreModelStoreManagerInterface’);… Read More »Feed with min_sale_qty attribute

Magento 2.4.6. Unable to output multiple data in json format

Unfortunately, I unable to output multiple objects when I send a request to my API endpoint. Here’s my code: appcodeDevRestApiModelApiProductRepository.php <?php namespace DevRestApiModelApi; use DevRestApiApiProductRepositoryInterface; use DevRestApiApiDataProductInterface; use MagentoCatalogModelResourceModelProductCollectionFactory; use MagentoStoreModelStoreManagerInterface; use MagentoFrameworkAppConfigScopeConfigInterface; use MagentoFrameworkAppRequestInterface; use MagentoFrameworkControllerResultJsonFactory; /** * Class… Read More »Magento 2.4.6. Unable to output multiple data in json format

How to show category image?

The category image is not visible on the description page. How can I display it on the page? appdesignfrontend[base][theme]Magento_Catalogtemplatescategorydescription.phtml