[TYPO3-shop] Different Discounts for different products?

Juan Pablo Villaverde jpablo at omnisciens.com
Sat Jun 7 16:51:51 CEST 2008


Thanks Franz, but 2.8.0 is paid, using the UID will work on the free 
version,  something like this will do the trick:

discountprice {
10.type = count
10.field = price
10.uid = 8
10.additive = 1
10.where =
10.prod.1 = 4.99
10.prod.100 = 2.49
10.prod.1050 = 2.39
}

This works only for product with ID 8.

I hope this helps someone else :)

Juan Pablo Villaverde
jpablo at omnisciens.com
http://www.omnisciens.com

"Franz Holzinger" <franz at fholzinger.com> escribió en el mensaje 
news:mailman.1.1212832037.31465.typo3-project-tt-products at lists.netfielders.de...
> Hello Juan Pablo,
>
>> The docs are including this example:
>>
>> discountprice {
>> 10.type = count
>> 10.field = price
>> 10.additive = 1
>> 10.where =
>> 10.prod.1 = 4.99
>> 10.prod.100 = 2.49
>> 10.prod.1050 = 2.39
>> }
>>
>> But.. is a common need to have different discount for different
>> products, how can we indicate the discount in a per product basis? This
>> discount range for a product and ANOTHER discount range for another 
>> product.
>>
>> In practice: Product A is $10, but it is $9 if the customer buys 12
>> items A. Product B is $25, but it is $20 if the customer buys 12 items B.
>> Current documentation is not very clear about it, or I am unable to
>> guess it :(
>
> Starting with tt_products 2.8.0 you can also add a simple where clause.
> 10.sql.where = uid IN (12, 13, 14, 35)
>
> Then you can repeat the discounts with more lines and give other where
> conditions to them.
>
> - Franz
>
>
>
> 




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