0

I am using this extension for extra fees collect from customer. This extension done with shopping cart pricing rule. Here i need to apply my condition.

My condition :

If shipping method is flate rate & website = 2 the extra fees option not showing to customer.

how can i apply the above condition in app/code/local/Voronoy/ExtraFee/Block/Sales/Order/Totals/Rule.php

Code for getting shipping method & set website = 2

$website_id = Mage::app()->getWebsite(2)->getDefaultGroup()->getDefaultStoreId();
Mage::app()->setCurrentStore($website_id);


$methods = Mage::getSingleton('shipping/config')->getActiveCarriers();
$shipMethods = array();

foreach ($methods as $shippigCode=>$shippingModel)
    {
        $shippingTitle = Mage::getStoreConfig('carriers/'.$shippigCode.'/title');
        $shipMethods[$shippigCode] = $shippingTitle;
    }

Mage::log($shipMethods, null, 'logfile.log');

Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.