[Typo3-shop] Additional Features for tt_products 2.x - how to contribute?

Volker Graubaum vg_typo3 at e-netconsulting.de
Sun May 15 15:05:33 CEST 2005


Hi Joey,

> I've been thinking about some "universal" functions that could handle things
> like this:
> 
> function myNewFeature ($inputArray)
> {
>     # handle vars and arrays inside this function independently
>     # regardless of the plugin that is used to call the function
>     return $returnArray;
> }
> 
> Will you be able to work with something like that?

Yeap, we will have a hook konzept for different functions, so that it 
can be updated and extended easily.

So we will have the possibility to add functions into

   -- Pricehandling
   -- Produktdisplaying
   -- Offers
   -- CheckOut
   -- Payment

and some more :-).

The concept will be an API system, where you can add different 
userFunctions.

Something like:

  function priceHandling(){
	
	$this->returnPrice = $this->product->dbPrice;
	
	ksort($this->priceFunctions);
	while(list($key,$priceFunc) = each($this->priceFunctions)){
t3lib_div::callUserFunction($priceFunc,$this->conf['priceFunc.'][$key],$this);
	}		

   }

Where the userFunction override the price under you're own choosen wishes.

Greetings Volker



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