[TYPO3-shop] Problems after upgrade to 2.6.1

Felix Buenemann Felix.Buenemann at googlemail.com
Tue Oct 6 13:41:51 CEST 2009


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.

Anyways, I also tried with plugin.tt_products.alwaysInStock = 1 and it 
makes no difference.

>
> You could also use phpMyAdmin and run an update script to insert
> positive inStock values to all products.
>
>> plugin.tt_products.showNotinStock = 1 which fixes the problem.
>>
>> Note the different case, but both seem to be valid looking at the
>> default setup.
> This only shows the products which are not in stock.
No it shows all products, in stock or not on 2.6.1.

>
>> Is this a bug in 2.6.1 or does it expect to have a stock quantity of
>> 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?

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.

>
> - Franz

- Felix




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