By default, Magento comes with many core functionalities & features that makes it perfect CMS for easy management of products as well as an enhanced e-commerce solution. Magento comes with a promotional tier price solution which is very helpful when you want to give discounts based on the quantity of the products that encourages customers to purchase more quantity. Magento displays tier price on both catalog pages as well as the product page just by adding quantity and price from the admin backend.

Recently, while working on one of the Magento stores, I came up with a situation to change tier price of all the store products. After a sip of coffee, I started coding and ended up with a small piece of code that will save my time as well as helped me to update tier price for products. So, today I would like to share the easiest way to set tier price programmatically in Magento.

All you need to do is pass the product ID and tier price to below code and it will work like a charm to set tier price programmatically for the product.

You can try and use this code according to your need of setting up tier price for one product or more than one products simply by customizing this code. You can feel free to ask any question regarding this code. Don’t forget to hit down stars and you can also get in touch with us on our social media for more blogs as well as extension updates.
Until that Happy Coding!

[Total: 17   Average: 1.9/5]