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!

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

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

</div>

Magento | | No Comments

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

« »