Feature #14545
closedRFE: datatype range
0%
Description
For the latest tt_products I need a new datatype for TSRef. This is necessary to make the configuration more easy and possible from the Setup field.
Here an example:
-----
shipping {
radio = 1
10.title = Deutschland
10.image.params = align=absmiddle
10.priceTax.1 = 2.5
10.priceTax.20 = 4.8
10.priceTax.50 = 10
10.priceNoTax = 2.5
10.percentOfGoodstotal = 0
20.title = Europa (nicht Deutschland)
20.image.params = align=absmiddle
20.priceTax.1 = 8.8
20.priceTax.20 = 11.8
20.priceTax.50 = 11.8
20.priceNoTax = 8.8
20.percentOfGoodstotal = 0
}
pricecalc {
10.prod.1 = 4.99
10.prod.2 = 8.99
10.prod.5 = 19.99
20.prod.1 = 6.99
20.prod.2 = 13.98
20.prod.5 = 29.99
}
discountcalc {
10.prod.1 = 4.99
10.prod.100 = 2.49
20.prod.1 = 6.99
20.prod.100 = 2.59
}
--------------------------
10.priceTax.20 = 4.8
10.priceTax.50 = 10
This means that the shipping price for at least 20 articles will be 4.8 Euro, where 50 articles will cost 10 Euro.
pricecalc {
10.prod.1 = 4.99
10.prod.2 = 8.99
10.prod.5 = 19.99
...
this means that where 1 product costs 4.99 Euro, each pair of 2 products will cost 8.99 and all 5 products will cost 19.99 Euro.
discountcalc {
10.prod.1 = 4.99
10.prod.100 = 2.49
...
A logged in user belonging to a special group will get a special price of 2.49 for each product when he buys at least 100 products. From 1-99 articles he will have to pay 4.99 for each.
This will be coded in the tt_products, however I need this in the Document TSRef. Maybe someone has a better solution to this.
(issue imported from #M769)
Updated by Martin Kutschker almost 19 years ago
I don't get it. What excatly do you want to be extended? An extisting Typoscript object, a TS function (eg stdWrap)?
TSref = TypoScript Reference
Updated by Franz Holzinger almost 19 years ago
I do not want anything to get extended.
I only want to be the above solution of TypoScript configuration to be mentioned in TSref. By this other developers shall see the possibility which TypoScript offers to them.
Updated by Martin Kutschker almost 19 years ago
Why don't you use the annoation feature of typo3.org?
Anyway, the bug belongs then to projects "Documentation".
PS: I didn't get what was special about your TS. It doesn't seem to do something on its own.
Updated by Franz Holzinger almost 19 years ago
This is no special solution to the Setup of a range with TypoScript. There might be hundreds of better solutions out there.
But I just want that all TYPO3 developers will use the same solution to this in order if someone understands one extension configuration he will as well understand the other extension.
So if it would be written down in TSRef then I hope that others would use the same solution as in tt_products.
Updated by Benni Mack over 14 years ago
Hey Franz.
Coming back to this... it seems like there is no change in the core required. If you want to get this "standardized" way of handling things as a default way, please contact Francois Suter (francois@typo3.org) or in the documentation mailing list, in order to let this be approved for the core documentation. It clearly is not a bug that belongs into Mantis.