Page 1 of 1

how to make "Flat Shipping Rate" disappear,when total reach the codition of "free shipping"?(solved)

Posted: Tue Dec 01, 2020 8:25 pm
by tingwing
hi
how to make "Flat Shipping Rate" auto-disappear,when total reach the codition of "free shipping" (or when"free shipping" show)?

thanks

Re: how to make "Flat Shipping Rate" disappear,when total reach the codition of "free shipping"?

Posted: Tue Dec 01, 2020 8:54 pm
by tingwing
you use OC 3.0.x version, you should... in file: //catalog/model/extension/shipping/flat.php find:

return $method_data;
and replace with:

if ($this->cart->getSubTotal() < $this->config->get('shipping_free_total')) {
return $method_data;
} elseif (!$this->config->get('shipping_free_total')) {
return $method_data;
}
This modification will disable flat shipping method when cart total will be reached which is set in free shipping method. So two shipping methods must be enabled. Flat rate shipping method and Free shipping method. Flat shipping will work even if you disable Free shipping. After you make this changes refresh modifications and clear cache in admin dashboard.

Re: how to make "Flat Shipping Rate" disappear,when total reach the codition of "free shipping"?(solved)

Posted: Wed Dec 02, 2020 7:58 pm
by paulfeakins
Have you searched the extension store for this? If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.