[Typo3-shop] Work method
Bill Alexy
bill at psiberware.com
Wed Oct 26 17:51:14 CEST 2005
Franz Holzinger wrote:
> 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
>
In other words it is best to set up 26,460 articles? Both quantity and
paper style affect price. Each article contains a style,a paper stock
(color variant field) and a quantity (gradings variant field). In other
words one article for each combination.
Artice 1 = CD Label
Yellow Permanent
Quantity 100
Price 10.00
Article 2 = CD Label
Yellow Permanent
Quantity 250
Price 17.00
Article 3 = CD Label
Yellow Permanent
Quantity 500
Price 25.00
and on and on it goes. 26,460 Articles x 5 Minutes per Article = 132,300
Minutes / 60 Minutes = 2,205 Hours. Am I missing something here? Of
course it won't take 5 minutes for all the articles, but you figure in
corrections and on and on it goes.
Best regards,
Bill
More information about the TYPO3-project-tt-products
mailing list