Skip to content

magento man

unable to save a rewrite

Im trying to save a new redirects into the urlrewrite model but it seems that save() doesn’t exist in those factorys: MagentoUrlRewriteModelUrlRewriteFactory or MagentoUrlRewriteModelResourceModelUrlRewriteFactory or Magento/UrlRewrite/Service/V1/Data/UrlRewriteFactory (missing save method) this is my code: <?php declare(strict_types=1); namespace ItonomyCreateRedirectsConsoleCommand; use MagentoUrlRewriteModelUrlRewrite as… Read More »unable to save a rewrite

Use Custom Module collection in other custom Module magento 2

I want collection of one module in other module. I am doing it like use TestCompanyAddressesModelCompanyAddressFactory; class ReformatTelephoneField implements DataPatchInterface { protected $companyAddressFactory; /** * @param CompanyAddressFactory $companyAddressFactory */ public function __construct( CompanyAddressFactory $companyAddressFactory ) { $this->companyAddressFactory = $companyAddressFactory; }… Read More »Use Custom Module collection in other custom Module magento 2

Magento 2.4.3: Getting “Invalid state change requested” error message on checkout page when persistant cart is enabled

I am getting the error Invalid state change requested when trying to place the order with persistent shopping cart, order places even though error is shown and it causes duplicate order issue(Customer places order again without knowing order is already… Read More »Magento 2.4.3: Getting “Invalid state change requested” error message on checkout page when persistant cart is enabled