[Typo3-shop] Shipping costs related to weight

Franz Holzinger franz at fholzinger.com
Fri Jul 22 18:11:12 CEST 2005


Hello Christian,

> by accident, i need something similiar right now, so i adapted that 
> function as you proposed.
> 
> You have to set
> 
> plugin.tt_products.shipping.CalcShippingFromWeight = 1
> 
> in your SETUP and add the prices for the weight in GRAM like that:
> 
> plugin.tt_products.shipping {
>     10.title = Parcel
>     10.priceTax.1 = 1.5
>     10.priceTax.500 = 2.5
>     10.priceTax.1000 =3.5
>   }
> 
great! This was rather easy, wasn't it?
This will come in a modified way into the next tt_products version.

> 
> I need another thing as well:
> Do you have an idea, how to calculate the shipping costs depending of 
> from what categories the products come?
> For example: The shipping costs are calculated from weight, and if at 
> least one product from category xy is in the basket, the shipping costs 
> will be at least 5 €.
> 

The configuration for shipping prices needs again a modification.

plugin.tt_products.shipping {
10.priceTax.type = weight
10.where = category = 1
10.priceTaxWhere = 5
10.priceTax.1 = 4
10.priceTax.6 = 5.8
}

So modify the code again to use the where condition to get price1 = 5 if 
the condition is true.

Then calculate the price as before and after that use the highest price 
of both.

Even the PIDs can now be calculated using a where condition.
see function getPID



Franz


Franz



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