Skip to main content
4 events
when toggle format what by license comment
Dec 29, 2014 at 19:27 comment added chaoticgeek For the 0.0000 you could force it to an integer by doing (int) before the Mage::getModel part. It should force it to 0 and then that would trigger as false in PHP for the if statement.
Dec 29, 2014 at 19:11 comment added James Tsai Hi, I changed getQty to getStockQty and everything is good now. Thank you for your help! :)
Dec 29, 2014 at 18:47 comment added James Tsai Thank you. Do you know why I'm not getting the "out of stock" when my quantity is 0? It still says "Only 0.0000 left". Also I am getting a bunch of decimals. Do you know how can I get rid of the decimals?
Dec 29, 2014 at 15:20 history answered chaoticgeek CC BY-SA 3.0