Magento Core: Remove shipping methods from frontend

Send Snippet To: Save this snippet to Code Collector Pro -- view all tamburra's snippets
language: Other
license: Other

Code for Snippet:

                
---------------
Note:
---------------
 
These instructions are for the "Store Pickup Shipping Module" extension
 
 
---------------
Open:
---------------
 
/app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml
 
 
---------------
Find:
---------------
 
<?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
 
 
---------------
Add Above:
---------------
 
<? $shipNotShown=array("storepickupmodule"); ?>
 
 
---------------
Find:
---------------
 
    <?php $_sole = count($_shippingRateGroups) == 1; foreach ($_shippingRateGroups as $code => $_rates): ?>
 
 
---------------
Add Below:
---------------
 
	<? if (in_array($code,$shipNotShown)) continue; ?>
 
 
---------------
Open:
---------------
 
/app/design/frontend/base/default/template/checkout/cart/shipping.phtml
 
 
---------------
Find:
---------------
 
<?php
/**
 * @see Mage_Checkout_Block_Cart_Shipping
 */
?>
 
 
---------------
Add Below:
---------------
 
<? $shipNotShown=array("storepickupmodule"); ?>
 
 
---------------
Find:
---------------
 
                <?php foreach ($_shippingRateGroups as $code => $_rates): ?>
 
 
---------------
Add Below:
---------------
 
				<? if (in_array($code,$shipNotShown)) continue; ?>
comments powered by Disqus

Info

Tags: Core CE 1.6

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 1039
Date Added: 2012-01-24 06:13:46
Last Modified: 0000-00-00 00:00:00

Web Analytics