Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
14

collectRates() is called for each shipping module. It receives as parameter an object instance of Mage_Shipping_Model_Rate_Request. Let's call it $request. Your collectRates() method should start like this: if (!$this->getConfigFlag('active')) { return false; } This means 'do nothing if the shipping method is disabled'. Through the $request ...


8

You could also create a second flat rate shipping method with a module. First create app/etc/modules/Vendor_Module.xml <?xml version="1.0"?> <config> <modules> <Vendor_Module> <active>true</active> <codePool>local</codePool> <depends> <...


7

In the case where you want to have the customer choose from multiple options, I recommend using one of WebShopApps matrix plugins. Here's a good one: http://www.magentocommerce.com/magento-connect/webshopapps-matrixrate-1-multiple-table-rates-extension-certified-bug-free.html Otherwise, to get an automatic calculation based on value, use table rates to ...


6

I finally found a solution. Copy file Mage/Shipping/Model/Carrier/Tablerate.php to your local directory and add following code before //Free shipping by qty (around line 78) if (Mage::helper('tax')->priceIncludesTax()) { $taxableAmount = 0; foreach ($request->getAllItems() as $item) { $taxableAmount += $item->...


6

You can do the same without a rewrite using an observer: <sales_quote_collect_totals_before> <observers> <your_module> <type>singleton</type> <class>your_module/observer</class> <method>salesQuoteCollectTotalsBefore</method> </your_module> ...


5

There is open source extension which allows to setup multiple flat rates: https://github.com/thebod/Thebod_Shippingrates


5

Please follow these steps to resolve: 1) Check that the shipping_tablerate table is populated with same data as you expect (and in correct columns) 2) Check that the condition for those rows in shipping_tablerate matches the condition you want (i.e. price condition). If it is say imported as weight condition then you need to re-upload 3) Put a new csv ...


5

As per magento default, table rates are working but also some cart rule is applying on shipping rates. For Example when you add one product add to cart, table rates are working but when you add product qty 2 and total is greater than $50 shipping rates not working. for this check below cart price rule. There is one cart rule in admin which name is : ...


4

The only way to display a default shipping rate is to set the rate by default when the quote is created. There used to be a module that did this on Magento Connect that did this but was unmaintained by its creator and was only certified up to Magento 1.1 CE. I have verified that this works up to 1.11 EE / 1.6 CE. How it works When a product is added to ...


4

It's almost certainly a bug, since Magento is not sorting the condition values in any way. Rates are not sorted during import either (as you can see, entries are inserted in the same order they are found in the CSV using insertArray), so Magento is still able to load the correct rate if the order in the import is correct. This query you submitted can lead to ...


3

just found this article: http://www.danneh.org/2010/08/adding-shipping-costs-to-the-cart-automatically-in-magento/ it works perfectly!!


3

You can get the state/region code from directory_country_region table in database.


3

Go to Store >> Configuration >> Sales >> Shipping Methods >> Table Rates Export sample file that is already entered in Table Rates from export button. After exporting you can see rules something like below and you can enter as per your requirement. 1-3 business days(first 5kg) for this condition you have to write promotion rules ...


2

You cannot do that using the table rates. The table rates will always use the last available value if there is no record in the taabase for a specific configuration. What you can do is to create your own shipping method. This is not that hard. See a tutorial here on how to do it.. The only thing you need to customize is the collectRates method in the ...


2

You could write a custom carrier that allowed you to enter an extra field in here to store the qty multiplier. Then just take the table rates implementation and extend it to have that custom column and do the work. There are extensions out there that do this, we implement at WebShopApps with an algorithm column, in this scenario would be set to i=6@25, just ...


2

It seems that Magento doesn't provide natively this option. To achieve this, you can define a new product attribute and add it for those products whose weight is 0. Then go to "Promotions -> Shopping Cart Price Rules" and you can define a new rule of free shipping for matching items only (i.e. those with the new attribute). In the following link this idea is ...


2

The reason was in proccessAdditionalValidation function in Mage_Shipping_Model_Carrier_Abstract class: /** * Processing additional validation to check is carrier applicable. * * @param Mage_Shipping_Model_Rate_Request $request * @return Mage_Shipping_Model_Carrier_Abstract|Mage_Shipping_Model_Rate_Result_Error|boolean ...


2

Here's a sneak peak at the controller code you'd have. The design is up to you, you'd parse through the details using POST: $quote = Mage::getModel('sales/quote')->setStoreId(Mage::app()->getStore('default')->getId()); $product = Mage::getModel('catalog/product')->load($productId); $quote->addProduct($product, $qty); $quote->...


2

If you want to modify the shipping Rates according to the Price in the Shopping Cart, then you can use the default Table Rates options. System > Configuration > Shipping Methods > Table Rates You have to choose Price Vs Destination in condition option. Please refer a link for the above for the same. http://www.magentocommerce.com/knowledge-base/entry/how-...


2

My opinion is to use the default table rates shipping method. Even if you get 24k rows, it's not like all of them will be loaded at once. There is a select made based on the values you enter in the checkout and you only get one row. Searching in 24k rows is not that bad. The highest number of records I got so far for the table rates is somewhere around 10k ...


2

Basically you want to restrict shipping of packages with weight greater than 5kg. If you don't want to use shipping restriction module from the magento connect, then you need to extend the table rates class app\code\core\Mage\Shipping\Model\Carrier\Tablerate.php and update method collectRates like below: ... if ($request->getPackageWeight() > 5){ ...


2

Why don't you make bundle product with both physical and downloadable product? But if you like to activate shipping to work with only downloadable products, it is in: to show Shipping Information (Step 2) -> app/code/core/Mage/Checkout/Block/Onepage/Shipping.php -> public function isShow() -> change it to returns true. to show Shipping Method (Step 3) -> ...


2

the zipcode field is a from to field. so this means you have to do 673302-673302 Be aware if you add a * zipcode blow that, this will be overwritten. so you need to declare other zipcodes. 671000-673301 for example. hope this helps


2

AS i have seen in your reference link you can also see code for 1) table rates shipping method == flatrate_flatrate 2) cash on delivery" payment method. == cashondelivery EDIT class Mage_Shipping_Model_Carrier_Tablerate extends Mage_Shipping_Model_Carrier_Abstract implements Mage_Shipping_Model_Carrier_Interface { /** * code name ...


2

You can check out the following module, i believe it might seems helpful to your condition. Give it a try, there is the link of the module: MatrixRate or check this out i believe it suits you better than the module: Nl post code i am posting also one more module but the this one is not for free check it out: Dutch PostNL


2

we’re going to look at how to set up table rate shipping in Magento, giving you the ability to charge different shipping rates to individual customers based on their location–from the regional all the way down to the postcode level. Three ways to price shipping:- One thing to note, before we start, is that there are three main ways of setting up table rates–...


2

No. The table rates only use a single '*' for 'any', but do not allow expressions with wild cards. Source: Mage_Shipping_Model_Resource_Carrier_Tablerate // Render destination condition $orWhere = '(' . implode(') OR (', array( "dest_country_id = :country_id AND dest_region_id = :region_id AND dest_zip = :postcode", "dest_country_id ...


2

Changing the order in the CSV file doesn't matter, since Magento will sort it internally before processing it. You say it ignores prices between 1000 and 3000 and takes 210 as the shipping price. Well, this is expected behavior since the price you put in the 4th column is a 'From' price. That is why you should also add a row with a '0' value in the 4th ...


2

I saw these guys Cedcommerce have done many extensions on Magento2, but they on the development mode I asked them about the table rate extension in the live chat once, and they answer they need a couple of weeks to release it, here is the extension PREMIUM MATRIX RATE. So I guess we need to wait and see, cause in my company, we didn't find anyone did it, ...


2

Virtual products cannot have a shipping method, as they are intended to represent non-physical items such as a warranty or a membership. To achieve what you are describing, you would need to use a different product type such as simple products along with the default tablerates shipping, or if you needed a more complex setup perhaps WebshopApps MatrixRates ...


Only top voted, non community-wiki answers of a minimum length are eligible