Skip to content

magento man

Magento 2.3.5 error gd2.php on installation

While installing Magento 2.3.5 in windows, I got this Error: [Progress: 698 / 1369] Module ‘Magento_Theme’: In PatchApplier.php line 170: Unable to apply data patch MagentoThemeSetupPatchDataRegisterThemes for module Magento_Theme. Original exception message: Wrong file In Gd2.php line 64: Wrong file

Get concrete error message of CouldNotSaveException

We need to get concrete error message when MagentoCatalogModelProductRepository throws CouldNotSaveException during saveProduct() private function saveProduct($product): void { try { $this->removeProductFromLocalCacheBySku($product->getSku()); $this->removeProductFromLocalCacheById($product->getId()); $this->resourceModel->save($product); } catch (ConnectionException $exception) { … } catch (Exception $e) { throw new CouldNotSaveException( __(‘The product was… Read More »Get concrete error message of CouldNotSaveException

Subtract shipping charge

I have created a custom shipping method and it’s applied fine, but what I need is, How I will subtract the shipping charge from grand total instead of adding to grand total in Magento 2.