Magento display minimum order amout

I have used this slightly messy way of displaying the minimum order amount on any phtml file. I used it in the header but could easily go in any template file. Obviously you could also use the Magento subtotal for many other calculations too!

<? if(Mage::getSingleton(‘checkout/session’)->getQuote()->getSubtotal() > 50) { ?>

<? } else { ?>
<p>We have a minimum order of £50</p>
<p>Please continue shopping</p>
<? } ?>


Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.