Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

excluding cheapest shipping from cheapest


Recommended Posts

I have installed the RFQ shipping module. Unfortuneately, it sets the shipping amount to $0.00 and therefore, this method gets selected by default.


Is there a way to make the shipping calculator skip shipping totals that equal 0.00 when determining the cheapest method.


I tried the following code in includes/classes/shipping.php. My edits are in bold


$cheapest = false;

for ($i=0, $n=sizeof($rates); $i<$n; $i++) {

if (is_array($cheapest)) {

if ($rates[$i]['cost'] < $cheapest['cost']
&& $rates[$i]['cost'] > 0
) {

$cheapest = $rates[$i];


} else {

$cheapest = $rates[$i];




return $cheapest;

Shaken! ... not stirred!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...