3

How can I check whether tier price is applied or not after add product to the cart ?

7
  • can you see in view page, list of tier prices as : as low as you can add more than 1 item or for how many items you gave tier price and check in cart page what price is displaying. Jun 27, 2016 at 11:26
  • no I can not see because I make customization to hide that.But there is a tier price.
    – Krupali
    Jun 27, 2016 at 11:27
  • no problem, for how much qty you gave tier prices in backend. add that much quantity and check in cart page. Jun 27, 2016 at 11:28
  • That is different as per qty. I can calculate programmaticaly and put condition and check tier price is applied or not.But is there any direct way to find out ?
    – Krupali
    Jun 27, 2016 at 11:32
  • sorry, i misunderstood question, i have no idea. Jun 27, 2016 at 11:34

1 Answer 1

3

You can get applied tier price value using below code :

$price = Mage::getModel('catalog/product')->load($product_id)->getTierPrice($qty);
1
  • great .. this works for magento 2.4 as well Mar 25, 2021 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.