I have added a link to upload files for a product to be fabricated via our Magento 2.4 (self hosted commerce) website. However, I’ve been stumped on where these files live so I can clean them out after some time so the server doesn’t fill up. I’m using the native […]
Magento1
I created a preference for the block MagentoCatalogBlockProductListProduct to add a specific product at the begining of the collection in getLoadedProductCollection(). Almost everything is well displayed except the price. public function getLoadedProductCollection() { $originalCollection= parent::getLoadedProductCollection(); $featuredProduct = $this->productFactory->create()->load(18); //test productId if ($this->_request->getFullActionName() !== 'catalogsearch_result_index' || !$featuredProduct) { return $originalCollection; } […]
In the testing environment, it gives below errors, { "message": "The consumer isn't authorized to access %resources.", "parameters": { "resources": "Magento_Sales::actions_view" }, "trace": "#0 /var/www/html/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68): Magento\Webapi\Controller\Rest\RequestValidator->checkPermissions()n#1 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest\RequestValidator->validate()n#2 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->___callParent('validate', Array)n#3 /var/www/html/vendor/paypal/module-braintree-core/Plugin/RestValidationPlugin.php(86): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->Magento\Framework\Interception\{closure}()n#4 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): PayPal\Braintree\Plugin\RestValidationPlugin->aroundValidate(Object(Magento\Webapi\Controller\Rest\RequestValidator\Interceptor), Object(Closure))n#5 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->Magento\Framework\Interception\{closure}()n#6 /var/www/html/generated/code/Magento/Webapi/Controller/Rest/RequestValidator/Interceptor.php(23): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->___callPlugins('validate', Array, NULL)n#7 /var/www/html/vendor/magento/module-webapi/Controller/Rest/InputParamsResolver.php(108): Magento\Webapi\Controller\Rest\RequestValidator\Interceptor->validate()n#8 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest\InputParamsResolver->resolve()n#9 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\InputParamsResolver\Interceptor->___callParent('resolve', Array)n#10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): […]
I had a pretty comfortable workflow in Magento 1 where I’ve added the ‘skin’ directory to the workplace in Chrome Dev Tools and could edit the CSS files right from the Dev Tools. Is something like that possible with LESS and Magento 2?
Because reindexing takes so long, I am contemplating running several reindex commands concurrently, via the CLI, see below: php bin/magento indexer:reindex catalog_category_product & php bin/magento indexer:reindex catalog_product_category & php bin/magento indexer:reindex catalog_product_attribute & php bin/magento indexer:reindex cataloginventory_stock & php bin/magento indexer:reindex inventory catalog_product_price & php bin/magento indexer:reindex catalogsearch_fulltext & Can […]
I don’t want all records to use the same options and I want each record in the grid to have different options in the column select and and I do the following I have class TimeUseActions <?php /** * TimeUseActions * * @copyright * @author */ namespace DbizVoucherUIComponentVoucherModalColumn; use MagentoFrameworkDataOptionSourceInterface; […]
In Magento 2, I will use the Fotorama Gallery thumbnail images as a vertical slider. It works fine for two or more images but when I upload only one image from the admin side and show the image, it gives some white space on the left side and the main […]
i’m using the MageDelight Megamenu extension for a website with different stores in different countries, ex: mystore.com/en_uk/ mystore.com/en_us/ While creating the menu in admin i put the relative path in each category’s URL box (see screenshot) instead of the absolute path so that i don’t have to create a menu […]
I have custom Magento module which was originally deployed and worked properly in Magento 2.4.2 , which injects some JS to frontend product page, with some backend connectivity. After copying same to Magento 2.4.6-p2 expected template overriding does not work. <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="content"> <block […]