Jump to content

[SOLVED] COD disable over 200 USD


Recommended Posts

Edit /cashondelivery/cashondelivery.php

Look for

   public function hookPayment($params)
   {
       if (!$this->active)
           return ;

       global $smarty;




and add the following code below (change the currency id to match your store).

if ($params['cart']->id_currency == 1 && $params['cart']->getOrderTotal() > 200)
    return;
if ($params['cart']->id_currency == 2 && $params['cart']->getOrderTotal() > 150)
    return;

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...