I would like to if order is above x amount then free shipping otherwise need to charge x amount.
In Free Shipping i already set X amount. In Flat Rate i set X amount.
But in frontend if order is above x amount then it display both Free Shipping & Flat Rate.
What i need if order if above X amount then it display only free shipping otherwise flat rate.
Here is a simple idea, return Flat Rate only if Subtotal amount is less then Free shipping
// catalog/model/shipping/flat.php
replace
return $method_data;
with
if ($this->cart->getSubTotal() < $this->config->get('free_total')) {
return $method_data;
}