[TYPO3-shop] General dicount with tt_products 2.8.0
Sacha Vorbeck
Vorbeck at moduleBox.com
Wed Feb 18 01:51:49 CET 2009
Hi,
I would like to set up a general discount with tt_products 2.8.0. If
more than 10 products with a price of EUR 11.5 are put into the basket,
their price should be reduced to EUR 7,- each.
I have 3 different products that have the value 11.5 stored in the price
field. And when I put 12 pieces of one of those products into the
basket, the price just won`t reduce to 7.
I can`t get this to work and I tried the example from the manual and all
variants I could find via google. You can find my setup below and I`d be
very happy if someone could tell me what I`m doing wrong here.
plugin.tt_products {
templateFile = {$plugin.tt_products.file.templateFile}
}
plugin.tt_products.pricecalc >
plugin.tt_products.pricecalc {
10 {
sql.where =
type = count
field = price
prod.1 = 11.50
prod.10 = 7
}
}
plugin.tt_products.getDiscountPrice = 1
plugin.tt_products.discountprice >
plugin.tt_products.discountprice {
10 {
sql.where =
type = count
field = price
prod.1 = 11.50
prod.10 = 7
}
}
plugin.tt_products.payment >
plugin.tt_products.payment {
useAsterisk = 0
radio = 1
TAXpercentage = 19
10 >
10.title = Lastschrift
10.accounts = 1
10.useAsterisk = 0
#10.addRequiredInfoFields = owner_name, ac_number, bic
10.price =
20 >
20.title = Vorauskasse
20.price =
30 >
30.title = Barzahlung bei Selbstabholung
30.price =
40 >
50 >
}
plugin.tt_products.shipping {
TAXpercentage = 19
10 >
10.title = Versand Deutschland
10.image.file =
10.image.params =
10.excludePayment = 30
10.price.type = count
10.price.1 = 0
10.price.25 = 5
10.percentOfGoodstotal = 0
20 >
20.title = Selbstabholung
20.excludePayment = 10,20
20.price.1 = 0
20.percentOfGoodstotal = 0
30 >
30.title = Versand Europa
30.image.file =
30.image.params =
30.excludePayment = 10,30
30.price.type = count
30.price.1 = 5
30.price.2 = 6.6
30.percentOfGoodstotal = 0
40 >
40.title = Versand weltweit
40.image.file =
40.image.params =
40.excludePayment = 10,30
40.price.type = count
40.price.1 = 8.7
40.price.2 = 13
40.percentOfGoodstotal = 0
}
--
thank you - all the best,
Sacha
More information about the TYPO3-project-tt-products
mailing list