[TYPO3-shop] Problems after upgrade to 2.6.1

Franz Holzinger franz at ttproducts.de
Tue Oct 6 13:58:51 CEST 2009


Felix Buenemann a écrit :
> Hi Franz,
> 
> Am 06.10.09 07:54, schrieb Franz Holzinger:
>> Felix Buenemann a écrit :
>>> Hi Bernd,
>>>
>>> Am 05.10.09 07:11, schrieb Bernd Schuhmacher:
>>>> Hi
>>>> Felix Buenemann schrieb:
>>>>> AND (products.inStock > 0)
>>>>>
>>>>> Is there a way to ingore stock quantity in products listing?
>>>> I think you have to set
>>>>
>>>> plugin.tt_products.alwaysInStock = 1
>>>> in the config of your template.
>>>
>>> plugin.tt_products.AlwaysInStock = 1 was already present, but I added
>> This must be a lower case 'a' : always...
> 
> I just checked, older version allowed both case variants (2.4.0 for 
> exp.), but the current one only has the alwaysInStock variant.

If you set alwaysInStock = 1, then all products are always on stock. You 
can buy them.
The other variant with negative numbers has not been documented. It did 
worked occasionally.

> Anyways, I also tried with plugin.tt_products.alwaysInStock = 1 and it 
> makes no difference.
This only means that the stock amount will not be reduced. But you must 
have a positive value there.

>>> at least 1 in 2.6.1 and just doesn not decrease it?
>>> At least it was working differently in older versions.
>> In older versions of tt_products there has been an undocumented trick to
>> insert -1 for inStock and these products have always been on stock. Now
>> you have a checkbox 'always on stock' instead of it.
>> Negative values now have the meaning that the shop admin should order
>> new products immediately because more of them have been ordered than
>> there have been available.
> 
> But if I set plugin.tt_products.alwaysInStock = 1, shouldn't the 
> products be displayed, even if they don't have 'always on stock' set for 
> each product?

No, this is not for the display.

> Looking at the source, it shows that alwaysInStock isn't checked for 
> list view in 2.6.1:
> 
> $wherestock = ($this->conf['showNotinStock'] || 
> !is_array(($TCA[$itemTable->table->name]['columns']['inStock'])) ? '' : 
> ' AND (inStock > 0) ');
> 
> This also shows that showNotInStock shows all products, not only those 
> that are not in stock, as you wrote above.

This might be only in your case but not on other sites with positive values.



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