hi
how to make "Flat Shipping Rate" auto-disappear,when total reach the codition of "free shipping" (or when"free shipping" show)?
thanks
how to make "Flat Shipping Rate" disappear,when total reach the codition of "free shipping"?(solved)
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
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.
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
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
Who is online
Users browsing this forum: No registered users and 414 guests