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.
How to Get Product Salable Quantity in Magento 2
A Magento store that has multi-source inventory (MSI) enabled will have a salable quantity (qty), which represents the total quantity of all available products for purchase across all stores. It’s important to note that the salable quantity is different from the actual quantity when MSI is enabled. If you need to retrieve the salable quantity, this blog post will guide you through the process.
Continue reading “How to Get Product Salable Quantity in Magento 2”Order Fails Event in Magento 2
Handling order failures efficiently is essential to maintaining a smooth user experience and ensuring the reliability of your e-commerce platform. In Magento 2, you can manage order failures using event-based programming. This guide will help you understand and handle order failure events in Magento 2.
In Magento, there is an event observer that is triggered when a payment fails on your Magento 2 website. This observer is helpful for developers who need to take specific actions when an order fails, such as sending an email to the customer to notify them about the failure and the reasons behind it.
Continue reading “Order Fails Event in Magento 2”Magento 2 add form key to Ajax URL
When you do an Ajax call in the admin for example adding some button to the system configuration page which calls some URL by Ajax then you have to insert the form key to that URL otherwise it will not call the controller successfully by Ajax.
Continue reading “Magento 2 add form key to Ajax URL”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 The Update With the ID doesn’t Exist. Verify the ID and Try Again
The error message updated with the ID doesn’t exist when saving products from the admin side occurs when content staging is enabled in your Adobe Commerce or Magento 2 commerce cloud website.
Continue reading “Magento 2 The Update With the ID doesn’t Exist. Verify the ID and Try Again”Magento 2 Display Simple Product Image Instead of Configurable Product Image in Mini-cart and Cart
If you want to show configurable product selected options images on the cart and mini cart page in Magento 2, you can achieve this by adjusting a setting in the Magento 2 admin. By default, Magento 2 allows you to display simple product images of the configurable product on the cart and mini cart page.
Continue reading “Magento 2 Display Simple Product Image Instead of Configurable Product Image in Mini-cart and Cart”Magento 2 Transfer Ordered Downloadable Product from One Customer to Another
As e-commerce merchants sometimes we got called from customer to transfer their purchased downloadable products from one account to another account and unfortunately, there is no way to do this in native Magento. As Magento 2 developer we got the same requirements like one customer purchased a downloadable product from the Magento 2 website from their email ID and that customer no longer works with that company and their email ID also no more exist, so that company manager contact us to transfer that downloadable product link to another active customer account and we did in Magento directly updating the customer ID from the database.
Continue reading “Magento 2 Transfer Ordered Downloadable Product from One Customer to Another”Magento 2 How to Update Order Email ID
If you are looking for a way to update the order email ID, customer name and customer account link in Magento 2 directly from the database then this blog post will show you exactly this.
Continue reading “Magento 2 How to Update Order Email ID”Magento 2 Add JavaScript with Tag Attribute From Block File
If you are looking for a way to include JavaScirpt with a tag attribute from the block file in Magento 2 then this blog post shows you exactly what you are looking for. Sometimes the JavaScript link is different as per admin config values. Also, JavaScript has different data tag values as per admin config values, at that time, this is the best way to include JS from the Block file to the front end.
Continue reading “Magento 2 Add JavaScript with Tag Attribute From Block File”
