Juice
Juice

Reputation: 3063

Shipping Methods are not working in magento 1.7

I activated flat shipping in the shipping options and whenever you do checkout it says “Sorry, no quotes are available for this order at this time.”Any one please help me since i am a beginner in magento.

EDIT

I have tried other shipping methods too its also showing the same. we have upgraded Magento ver. 1.4.1.1 to magento 1.7. Any help would be greatly appreciated..

EDIT 2 Folder structure in version 1.4

After upgrading community folder contains only Phoenix folder. After that i added Biebersdorffolder by seeing an error in checkout page. I don't the the purpose of folders AW and RocketWeb. Since i am not familiar with magento. If the image is not visible i have added the image in this url

http://i47.tinypic.com/14smix1.jpg

Upvotes: 5

Views: 13818

Answers (2)

Slayer Birden
Slayer Birden

Reputation: 3694

do you have any Checkout files modified on your project? Or maybe custom checkout. I will list the code locations you need to check to make sure your Shipping works correctly.

So to begin with: Magento has very special work process with Shipping rates - it's called "collectRates" and is some modification of pattern "composite".

To make sure that everything works correctly on the code basis you need to first check the Onepage.php model (app/code/core/Mage/Checkout/Model/Type/Onepage.php): lines 330, 341, 556, 616; There should be code

{address}->setCollectShippingRates(true)

where {address} is current address variable.

This code is significant for future "collectRates" processes, because just when the Onepage Checkout page is initializing the "collectRates" process has already been processed, and the flag "collect_shipping_rates" is set to "false". If it's not set back to true, the next "collectRates" process will not be performed.

After you check the location above, and it still doesn't work - you might want to add some logging to Mage_Checkout_Block_Onepage_Shipping_Method_Available::getShippingRates method. If method is properly executed and return some rates from $this->getAddress()->getGroupedAllShippingRates() call, there might be some issues with .phtml template on your locan theme (default path to .phtml is app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml).

Here's how you can log the outcome from $this->getAddress()->getGroupedAllShippingRates() call (Mage_Checkout_Block_Onepage_Shipping_Method_Available::getShippingRates method):

$groups = $this->getAddress()->getGroupedAllShippingRates();
$printGroupes = array();
    foreach ($groups as $code => $groupItems) {
        foreach ($groupItems as $item) {
            $printGroupes[$code][] = $item->getData();
        }
    }
Mage::log($printGroupes, null,'special.log');

Please note, that the result array with all rates will be logged into "special.log" under var/logs folder.

I wish I could be more of help, but the issue requires some digging into code, the debugger will be even more helpful than logging, if you can get hold of one.

Cheers!

Upvotes: 5

Great Indian Brain
Great Indian Brain

Reputation: 908

Price should be entered for Flat Rate shipping to work

The problem might be of the country selection

Ship to applicable countries is set to "Specific Country" and you selected "Canada".

So you will see this shipping method only if you select Canada on the frontend during the checkout.

Or

You can make this to All Countries and check whether its working or not.

Upvotes: 1

Related Questions