[TYPO3-english] Gettin the total of two typoscript objects

Ulrich Lorenz PHZ Luzern lorenz.ulrich at phz.ch
Fri Mar 5 18:39:00 CET 2010


Thanks, that helped! I was a quite stupid not to consider this simple
possibility.


Lorenz

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of JoH asenau
> Sent: Friday, March 05, 2010 6:30 PM
> To: typo3-english at lists.typo3.org
> Subject: Re: [TYPO3-english] Gettin the total of two typoscript
objects
> 
> > I have two typoscript objects containing an integer value, let's
call
> > them
> >
> > lib.price_normal and
> > lib.price_discount
> >
> > Is there any way to generate a third typoscript object
> >
> > lib.price_sum
> >
> > containg the sum of price_normal and price_discount?
> >
> > With typoscript calc functions I can calculate with one "dynamic"
> data
> > object with a "static" value, but I didn't find a way to calculate
> > with two "dynamic" objects.
> 
> Put them into a COA and use stdWrap.prioriCalc
> 
> lib.price_sum = COA
> lib.price_sum {
>     10 < lib.priceNormal
> 
>     20 = TEXT
>     20.value = +
> 
>     30 < lib.price_sum
> 
>     stdWrap.prioriCalc = 1
> }
> 
> Not tested but HTH
> 
> Joey


More information about the TYPO3-english mailing list