[Typo3-shop] inStock must be different from 0

Franz Holzinger franz at fholzinger.com
Wed Dec 15 15:32:22 CET 2004


What should be done with the   	
inStock   	int(11)  	   	Non   	0
from the tt_products table?

In
function products_display($theCode, $memoItems="")
the database select has been changed to

$begin_at=t3lib_div::intInRange(t3lib_div::_GP("begin_at"),0,100000);
			if (($theCode!="SEARCH" && !t3lib_div::_GP("swords")) || $where)	{
		$this->initRecursive($this->config["recursive"]);
				$this->generatePageArray();
				// Get products
				$selectConf = Array();
				$selectConf["pidInList"] = $this->pid_list;
				$selectConf["where"] = "1=1 AND (inStock<>0) ".$where;


... so (inStock<>0) has been added in zk_products and seems to be correct.

How should be this handled?

Franz



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