Push free shipping when available – Opencart

<file name=”catalog/model/shipping/flat.php”>
<operation>
<search position=”before”><![CDATA[
if ($status) {
]]></search>
<add><![CDATA[
if ((float)$this->cart->getTotal() >= $this->config->get('free_total')) {
$status = false;
}
]]></add>
</operation>
</file>