Skip to content

Tax calculation after discount

So I have a custom discount applied the following way: on vendormoduleetcsales.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Sales:etc/sales.xsd”> <section name=”quote”> <group name=”totals”> <item name=”testdiscount” instance=”vendormoduleModelQuoteDiscount” sort_order=”500″/> </group> </section> </config> On my vendormoduleModelQuoteDiscount.php class Discount extends MagentoQuoteModelQuoteAddressTotalAbstractTotal { public function __construct( MagentoFrameworkEventManagerInterface… Read More »Tax calculation after discount

How to disable/remove salable quantity in Magento 2

Please disable this module in app/etc/config.php file. ‘Magento_Inventory’ => 0 ‘Magento_InventoryAdminUi’ => 0 ‘Magento_InventoryApi’ => 0, ‘Magento_InventoryBundleProduct’ => 0, ‘Magento_InventoryBundleProductAdminUi’ => 0, ‘Magento_InventoryCatalog’ => 0, ‘Magento_InventorySales’ => 0, ‘Magento_InventoryCatalogAdminUi’ => 0, ‘Magento_InventoryCatalogApi’ => 0, ‘Magento_InventoryCatalogSearch’ => 0, ‘Magento_InventoryConfigurableProduct’ => 0,… Read More »How to disable/remove salable quantity in Magento 2

How to fix products when this comes up: Something went wrong with processing the default view and we have restored the filter to its original state

Magento 2.4.5-p1 I have exported and imported products from Magento 1 into my Magento 2. Now, when I go to: Catalog – Products and surf the products for example in the following way: 10 per page Keep clicking on the… Read More »How to fix products when this comes up: Something went wrong with processing the default view and we have restored the filter to its original state

Failed Import of Customer Data

When I tried to import the csv file for customers, it gave this type of error while saying it can be uploaded still when I did upload it, then this error happened.

Image Cleanup Cron not working properly

/var/www/html/project/app/code/Embitel/ImageCleanup/Cron/Clean.php /** * Copyright © All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace EmbitelImageCleanupCron; use MagentoFrameworkExceptionFileSystemException; use MagentoFrameworkFilesystemDirectoryWriteInterface; use MagentoFrameworkAppFilesystemDirectoryList; class Clean { /** * @var EmbitelImageCleanupModelimageFactory */ public $_imageFactory; const IMAGE_CLEANUP_CRON = ‘imagecleanup/general/enable’; public function… Read More »Image Cleanup Cron not working properly