Shipping based on quantity

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply

 

How do I setup shipping based on table rates to be calculated per quantity?

Shipping prices are based on the destination and that is configured correctly with the table rates everything is fine if there is just 1 product., However, each product is shipped individually so the shipping totals need to be be calculated based on the quantity of items/products in the cart.

Any ideas on how to set that up?

 Signature 

I’ve got more friends in /etc/hosts than on Facebook

 

Here’s an update on hacking this issue when using the table rates shipping method.
Copy:

/public_html/app/code/core/Mage/Shipping/Model/Carrier/Tablerate.php
to
/public_html/app/code/local/Mage/Shipping/Model/Carrier/Tablerate.php

Around line 123 change

if ($request->getFreeShipping() === true || ($request->getPackageQty() == $freeQty)) {
                $shippingPrice 
0;
            
else {
                $shippingPrice 
$this->getFinalPriceWithHandlingFee($rate['price']);
            
}

to

if ($request->getFreeShipping() === true || ($request->getPackageQty() == $freeQty)) {
                $shippingPrice 
0;
            
else {
                $shippingPrice 
$this->getFinalPriceWithHandlingFee($rate['price'])*$oldQty;
            
}

 Signature 

I’ve got more friends in /etc/hosts than on Facebook

`Reply Or Comment!
Please LogIn to Reply!