Magento 2 Redirect to admin shipment view page

Generally, as Magento developers, we copy the redirect path from the browser URL, but it does not work for many admin URLs.
When you want to redirect to the shipment view page in the Magento 2 admin page, for that you copy the shipment controller path from the browser and set to redirect path but it’s redirecting to 404 even though the same path you used which shows in the browser of shipment view page. At this stage you might get stuck because all looks good then why it’s not redirecting to the shipment page in Magento 2 admin? Don’t worry we Dhairvi Solutions explain you what you should do and what you are doing wrong.

Continue reading “Magento 2 Redirect to admin shipment view page”

Order fails event in Magento 2

There is an event observer in Magento which calls when a payment fails on your Magento 2 website. This Magento order fails observer helps developers when they want to take some action on order fails like sending an email to the customer that your order failed due to so on so reasons.

Below event fires when the order fails in Magento 2

sales_model_service_quote_submit_failure
Continue reading “Order fails event in Magento 2”

Magento 2 The Consumer isn’t Authorized to Access Resources

You get the consumer isn’t authorized to access resources in the REST API response. This issue is due the Magento version upgrade from Magento 2.3.x to Magento 2.4.5 and above. We also faced the same issue when we upgraded one of the out Adobe Commerce Cloud clients’ website from Magento 2.3.5 to Magento 2.4.5 like Magento website data stopped syncing with the ERP. If you are facing the same issue then this blog post has a solution to this REST API access problem.

Continue reading “Magento 2 The Consumer isn’t Authorized to Access Resources”