[TYPO3-commerce] using allArticles=0 and stock-handling

Sven Schumacher sschu at computerteam.de
Wed Sep 22 01:14:21 CEST 2010


Am 21.09.2010 18:03, schrieb Sven Schumacher:
> Hello,
>
> is there any switch or simple way to get dropdowns (like allArticles=0
> provides) but without nostock-articles?

First step to achieve what I wanted:
Instead of disabling not existing combinations, I switched to

style="display:none;"

instead of

disabled="disabled"

The "only" thing I still have to do is setting values to disabled if the 
item is out of stock...

The attached patch has an option via Constant-Editor in tx_commerce_pi1 
(DISPLAY) to switch between the old behaviour (disabled 
attribute-values) and my favorite one.

Any suggestions where to have a look for adding the
WHERE-CLAUSE " tx_comstockhandling >0" ?

There must be somewhere the part where a list of all used attribute 
values is built.

Thanks in advance for any suggestions

Sven


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patchForNotShowingArticlesOutOfStock.diff
URL: <http://lists.typo3.org/pipermail/typo3-project-commerce/attachments/20100922/cd6810ca/attachment.asc>


More information about the TYPO3-project-commerce mailing list