Displaying the order discount on the success page in Magento 2
In this article, we will implement a Magento plugin to display the order total discount and the discount percent total on the order success page.
In this article, we will implement a Magento plugin to display the order total discount and the discount percent total on the order success page.
In this article, we will see how to get the rule by the coupon code in Magento 2.
Magento database structure can be very complex. This high complexity is especially true for the sales_order tables. These tables contain many columns with different numerical values, so fetching the data you need can be challenging.
In this article, we will show how to fetch the row total and the unit total, including discount, including or excluding tax, from the sales_order_item table in the Magento 2 database. We will show how to do that using an SQL query or programmatically.
This article will show how to get the coupon code from the order.
In this article, we will see how to add a new column to the promotion rules grid (cart rules grid) in Magento.
In this article, we will see how to apply custom coupon code in magento cart programmatically. For that, we will write a simple Magento plugin that programmatically applies a specific coupon when a user adds a particular product to the cart.
In this tutorial, we will show how to trigger a refresh in the mini-cart and the cart totals block.
In this tutorial, we will add a new field "Discount" to the mini cart. That is, if the customer got a discount in his cart, he would now be able to see it in the mini cart.
In this tutorial we will show you how to easily disable the Magento MSI module.
In this article, I will show how to get the stock status of the product programmatically in Magento 2. I will also show how the new MSI feature in Magento 2.3 makes it a bit more complex to get the stock data and how to overcome this problem.