0
votes

I am trying to change the view of shipping method in checkout page, this is what i have now :

enter image description here

I want to remove radio button and show free shipping if its free, other wise i want to show flat rate, its decided by the total purchase amount.

But i am not able to find the page where i can change this, I found some files related to shipping :

/app/design/frontend/base/default/template/checkout/onepage/shipping.phtml
/app/design/frontend/base/default/template/checkout/onepage/shipping_method.phtml

but shipping method content is not coming from these files.

1
How to remove the entire shipping, if it is free shipping i dont want to show the shipping rates method tab. how can i do that? - Naveenbos

1 Answers

3
votes

The available methods are rendered in /app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml

Look around line 34:

foreach ($_shippingRateGroups as $code => $_rates):

You can add your condition below that line to show free shipping or flat rate.

Edit: Alternatively, you can override Mage_Checkout_Block_Onepage_Shipping_Method_Available::getShippingRates() method so that shipping method of your choice is displayed.