settings['hide_nonfree_payment_methods']) { foreach($this->getMethods() as $_method) { if($_method->getCode() == 'free') { $hide_nonfree_methods = true; } } } ?>