As per request by a customer, they need to add a customised validation in the checkout process. The customer cannot proceed to checkout in some circumstances:
The grand total of the shopping cart exceed a certain amount There is at least one product in the shopping cart belongs to a certain category If all of the conditions above is met, then the customer cannot checkout. In this case, I just disabled the “process to checkout” button.
The file been overloaded is
app\design\frontend\base\default\template\checkout\onepage\link.phtml