[Typo3-shop] always in stock questions

Franz Holzinger franz at fholzinger.com
Tue Sep 27 06:59:08 CEST 2005


Hello,

> I just upgraded tt_products to 2.2.9 and I am a bit confused regarding
> the always in stock situation with this version as it is different from
> the previous way I was doing it. I set all of the In Stock(pcs) fields
> to -1 previously and this would allow for that product to not get
> reduced in stock and would always be visible. With the new version this
> is very different because those with a stock of 1 or more are shown but
> not those with -1 as before. I get the idea that if stock is set to 1
> then it is not reduced buy this is not good for shops that have only 1
> of a particular item such as a specialty tobacco products retailer. How
> can I adjust this so that -1 shows those products that are always in
> stock, 0 is not in-stock/visible, and any positive number in stock is
> reduced by one per item sold until 0 or stock is replaced by the admin?
> 
Ths instock has to be a positive number or 0.

Set AlwaysInStock=1 and the stock will not get reduced. So you have to
build a separate TypoScript template setup for those products which are
always in stock.

Negative values will have special meanings in the future.
But you are right, negative stock values should never get reduced.

Franz



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