unnati Posted November 13, 2014 Share Posted November 13, 2014 Hi Guys, Wondering if anyone can help me. I am developing a module in which i want to apply discount on cart. i doesn't know which method calculate discount and how to apply that discount on cart. Link to comment Share on other sites More sharing options...
tuk66 Posted November 13, 2014 Share Posted November 13, 2014 Try Product::getPriceStatic() or SpecificPrice::getSpecificPrice(). Link to comment Share on other sites More sharing options...
unnati Posted November 14, 2014 Author Share Posted November 14, 2014 Thank you for your answer... Sorry for bother you again..actually i have reduction amount calculated and i want to deduct that amount from whole cart amount. problem is that discount is not from cart rule. i calculated through code. i dont know how to apply it to cart and display as order discount. Link to comment Share on other sites More sharing options...
tuk66 Posted November 14, 2014 Share Posted November 14, 2014 You can set the whole cart discount, sometimes called voucher, under Price rules > Cart rules. Link to comment Share on other sites More sharing options...
Recommended Posts