[Typo3-shop] Work method
Franz Holzinger
franz at fholzinger.com
Wed Oct 26 11:42:11 CEST 2005
Hello Bill,
> they have 9 different stock types
>
> you can buy in 28 different quantities:
> 100
> 250
> 500
> 1000
> 1000 - 25,000 in increments of 1000
Usually Gradings should be used for this. However some coding in
tt_products still needs to be done for this.
>
> So we are setting up the paper stock types in articles and plan on using
> pricecalc to manage the quantities
>
> does that mean we should
> 1) change the quantity form field to selectable, and,
>
Without the usage of Gradings you need to write your own selectbox fro
the amount directly into the shop template.
> 2) use the article id for pricecalc -i.e.
> where Avery Sheet Label id = 325
> Avery Sheet Label, Stock Type (Grading), Blue = 16
>
> ...so...
>
> pricecalc {
> 16.prod.25000=1,000,000.99
> }
>
This pricecalc has a wrong syntax. ',' is not allowed.
pricecalc {
10.type = count
10.field = price
10.where =
10.prod.1 = 4.99
10.prod.2500 = 1000000.99
}
You cannot use article uids here, only products uids can be used for
this. But the correct price for the article in $this->itemArray has
already been filled in there.
Franz
More information about the TYPO3-project-tt-products
mailing list