Post by tingwing » Tue Dec 01, 2020 8:25 pm

hi
how to make "Flat Shipping Rate" auto-disappear,when total reach the codition of "free shipping" (or when"free shipping" show)?

thanks
Last edited by tingwing on Tue Dec 01, 2020 8:55 pm, edited 1 time in total.

my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm

Post by tingwing » Tue Dec 01, 2020 8:54 pm

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.

my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm

Post by paulfeakins » Wed Dec 02, 2020 7:58 pm

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 414 guests