dbl07 Posted December 21, 2006 Share Posted December 21, 2006 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; Quote Shaken! ... not stirred! Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.