[Typo3-shop] Shipping costs related to weight

Franz Holzinger franz at fholzinger.com
Fri Jul 22 09:02:51 CEST 2005


Hello Robert,


> I know that the weight can be multiplied with a fixed factor and then 
> added to the shipping costs, but is it also possible to do something 
> like this?:
> < 500g = 1,00 Euro
> 500g - 1000g = 2,00 Euro
> 1000g - 2000g = 5,00 Euro
> 2000g - 29 kg = 6,00 Euro
> 

if someone has a bit time, he can adapt the function 
GetPaymentShippingData a little.

Now the prices are compared:

if ($confArr) {
		krsort($confArr);
		reset($confArr);

		while (list ($k1, $price1) = each ($confArr)) {
			if ($countTotal >= intval($k1)) {
				$priceShipping = $price1;
				break;
			}
		}
		$priceShippingTax = $this->getPrice($priceShipping,1,$tax);
		$priceShippingNoTax = $this->getPrice($priceShipping,0,$tax);
	}

Greetings,

Franz





More information about the TYPO3-project-tt-products mailing list