[Typo3-shop] Plz, fix Bug in tt_product - in class.tx_ttproducts.php

Pilot pilot at m-lan.ru
Sat Oct 1 21:00:57 CEST 2005


When i use Flexform and code in TStemplate - i can't set any like 
code=BASKET
becouse - as u can see below:


row 151:
  if 
($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXTkey]['useFlexforms'] 
== 1) {
   // Converting flexform data into array:
   $this->pi_initPIflexForm();
   $this->config['code'] = 
$this->pi_getFFvalue($this->cObj->data['pi_flexform'],'display_mode');
  }
  else {
   $this->config['code'] = 
strtoupper(trim($this->cObj->stdWrap($this->conf['code'],$this->conf['code.'])));
  }



then developers must fix it like:



row 151:

  $this->config['code'] = 
strtoupper(trim($this->cObj->stdWrap($this->conf['code'],$this->conf['code.'])));

  if (!trim($this->config['code']) && 
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXTkey]['useFlexforms'] 
== 1) {
   // Converting flexform data into array:
   $this->pi_initPIflexForm();
   $this->config['code'] = 
$this->pi_getFFvalue($this->cObj->data['pi_flexform'],'display_mode');
  }
 





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