Want to hide all other shipping methods when Free Shipping is active? In OpenCart versions 1.5.2 - 1.5.5, perform these core file modifications:
==============================================================================
IN BOTH:
Code: Select all
/catalog/controller/checkout/cart.php
/catalog/controller/checkout/shipping_method.php
Code: Select all
$this->session->data['shipping_methods'] = $quote_data;
Code: Select all
if (isset($quote_data['free'])) {
$free_only['free'] = $quote_data['free'];
$quote_data = $free_only;
}
Code: Select all
/catalog/controller/checkout/shipping.php
/catalog/controller/total/shipping.php
Code: Select all
/catalog/controller/checkout/guest_step_2.php
/catalog/controller/checkout/shipping.php