[TYPO3-commerce] Invalid HTML (templates and some hardcoded values) + bugfix

Franz Koch typo.removeformessage at fx-graefix.de
Mon Sep 3 19:10:00 CEST 2007


> So the label-tag has to be changed in the template and the select-boxes 
> need to get an id in class.tx_commerce_pi2.php on lines:
> 
> 468:
> -----
> $select = '<select name="'.$this->prefixId.'[delArt]" 
> id="'.$this->prefixId.'_delArt" onChange="this.form.submit()">';
> 
> 524:
> -----
> $select = '<select name="'.$this->prefixId.'[payArt]" 
> id="'.$this->prefixId.'_payArt" onChange="this.form.submit()">';

Addon - the selected-state of the option values is also not valid XHTML. 
Simply change the following lines:

482 and 548:
------
$select .= ' selected="selected"';
------

--
Kind regards,
Franz Koch


More information about the TYPO3-project-commerce mailing list