Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/webamond/public_html/wp-includes/functions.php on line 6121
Magento display minimum order amount – Webamondo

Magento display minimum order amount

Introduction

Displaying the minimum order amount in Magento can be useful for informing customers about order requirements. This guide demonstrates a simple method to display the minimum order amount in any template file, such as the header.

Implementation

Below is a straightforward way to display a message if the order subtotal is below the minimum amount of £50. This code snippet can be added to any .phtml file in your Magento theme.

Code Snippet

<div>
<?php if (Mage::getSingleton('checkout/session')->getQuote()->getSubtotal() > 50) : ?>

<?php else : ?>
    <p>We have a minimum order of £50</p>
    <p>Please continue shopping</p>
<?php endif; ?>
</div>

Explanation

This code checks if the order subtotal is greater than £50. If it is not, it displays a message informing the customer of the minimum order requirement.

Steps to Implement

  1. Open the desired .phtml file in your Magento theme, such as the header template file.
  2. Insert the provided code snippet where you want the message to appear.
  3. Save the changes and refresh your Magento cache if necessary.

Conclusion

By adding this code snippet, you can effectively communicate the minimum order requirement to your customers, enhancing their shopping experience and ensuring they meet the necessary order criteria.

Further Assistance

If you have any questions or need further help with this implementation, please leave a comment below or reach out for support.

Leave a Reply

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


Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/webamond/public_html/wp-includes/functions.php on line 5471