Post by michosa » Sun Feb 18, 2018 12:26 am

hello everybody. I'm using opencart 3.0.0.0 version. Is there any way so i can remove the estimated shipping cost that appeared as second choice in shipping module when the free shipping is appeared as a first choice when the price have exceeded the free-delivery value?
Any help?
Thanks

Newbie

Posts

Joined
Sun Feb 18, 2018 12:19 am

Post by Johnathan » Mon Feb 19, 2018 2:05 am

There's no way without editing the code yourself, or using something like Total-Based Shipping to set up your rates. If you want to try the edit yourself, it would be something like this:

Code: Select all

IN:
/catalog/model/extension/shipping/flat.php

AFTER:
function getQuote($address) {

ADD:
if ($this->cart->getSubTotal() > 100) return;

You'd replace the 100 value with whatever your free shipping threshold is.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by brandblusser » Tue Feb 20, 2018 11:23 pm

Isenselabs made an extension to hide other shipping methods if free shipping is available. Maybe that's what you're looking for?
You can find it here: https://isenselabs.com/posts/free-shipp ... pencart-3x

New member

Posts

Joined
Thu Nov 09, 2017 8:22 pm

Post by michosa » Sun Feb 25, 2018 6:59 pm

thanks very much guys :) brandblusser your solution worked perfect !!! Be well.

Newbie

Posts

Joined
Sun Feb 18, 2018 12:19 am
Who is online

Users browsing this forum: No registered users and 43 guests