Magento 2 Get Inventory Source Code from Shipment

Magento offers MSI (Multi Souce Invetnory) features that allow adding multiple sources or locations for delivery. You have to choose the source of inventory at the time of shipment. Now if your requirement is to know which inventory source is selected for the existing shipment then you can do it and to know how to do it, keep reading 🙂

Continue reading “Magento 2 Get Inventory Source Code from Shipment”

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

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”

Magento 2 display simple product image of configurable product in cart and mini cart

If you are looking for a way to display configurable product selected options images on the cart and mini cart page in Magento 2 then it can be done by changing one setting from the Magento 2 admin. Magento 2 by default provides a way to display simple product images of the configurable product on the cart and min cart page.

Continue reading “Magento 2 display simple product image of configurable product in cart and mini cart”