如何设置最小采购订单金额 [英] How to set minimum purchase order amount

查看:155
本文介绍了如何设置最小采购订单金额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

客户下订单时,如何设置最小订单量?

When customer places an order, how to set minimum order amount?

即,订单总额不低于$ 500.

i.e) Total amount of order not below than $500.

我知道如何获取总订单金额.但是我不知道在哪里放置代码以及在哪里检查

I know how to get total order amount. But I don't know where to place that code and where to check

   sOrderId = Mage::getSingleton('checkout/session')->getLastOrderId();
   $oOrder = Mage::getModel('sales/order')->load($sOrderId);
    if($oOrder >=$500)
    {
   .....
     }

如果客户购买的总金额少于$ 500,他们将不允许在购物车中结帐.

If customer has purchased total less than $500, they won't allow to checkout at the cart.

推荐答案

以管理员身份登录,然后转到系统->配置,然后从左侧选择销售" 导航并点击最低订单金额". 然后从启用"下拉列表中选择是",输入最小订单量",输入消息,然后输入错误消息,只要订单数量少于购物车中的指定数量,就会显示该错误消息.

Login as admin, then go to System->configuration, then select ‘Sales‘ from left Nav and click on ‘Minimum order amount‘. Then select Yes from Enable dropdown, enter Minimum order amount, enter message and also enter error message that will be shown whenever the order will be less than specified amount at the shopping cart.

谢谢.

这篇关于如何设置最小采购订单金额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆