chivoto Posted March 29, 2011 Share Posted March 29, 2011 How can I disable the Cash on Delivery module for orders bigger than 200 USD / 150 EUR / 150 GBP ? Link to comment Share on other sites More sharing options...
tomerg3 Posted March 30, 2011 Share Posted March 30, 2011 Edit /cashondelivery/cashondelivery.phpLook 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 More sharing options...
chivoto Posted March 31, 2011 Author Share Posted March 31, 2011 I have found this in cashondelivery.php as i don't have the .tpl file. Is it ok?EDIT: IT works well! Thank you! Thank you! Thank you! Link to comment Share on other sites More sharing options...
tomerg3 Posted March 31, 2011 Share Posted March 31, 2011 Yes, sorry, I meant .php (fixed the above post). Link to comment Share on other sites More sharing options...
Housy Posted May 20, 2011 Share Posted May 20, 2011 Works great =)Thanks a lot tomerg3 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now