[TYPO3-project-seminars] BE field prices (length)

Oliver Klee typo3-german-01 at oliverklee.de
Fri Oct 20 14:25:26 CEST 2006


Hi Marco,

these are two separate issues.

Marco Bamert schrieb:
> I need to enter prices >10000 but the input field is limited to 4
> characters.

For the next release 0.4.7, I'll increase the limit of that input field:
https://bugs.oliverklee.com/show_bug.cgi?id=319

What is the biggest number of digits you need to enter?

As a workaround until 0.4.7 is released, you can change the file
tca.php. In the following lines, increase the values of "max", "size"
and "upper":

                'price_regular' => Array (
                        'exclude' => 0,
                        'label' =>
'LLL:EXT:seminars/locallang_db.php:tx_seminars_seminars.price_regular',
                        'config' => Array (
                                'type' => 'input',
                                'size' => '4',
                                'max' => '4',
                                'eval' => 'int',
                                'checkbox' => '0',
                                'range' => Array (
                                        'upper' => '9999',
                                        'lower' => '0'
                                ),
                                'default' => 0
                        )
                ),
                'price_special' => Array (
                        'exclude' => 0,
                        'label' =>
'LLL:EXT:seminars/locallang_db.php:tx_seminars_seminars.price_special',
                        'config' => Array (
                                'type' => 'input',
                                'size' => '4',
                                'max' => '4',
                                'eval' => 'int',
                                'checkbox' => '0',
                                'range' => Array (
                                        'upper' => '9999',
                                        'lower' => '0'
                                ),

> So also prices like 98.50 are not possible.

This is due to the fact that currently the price field is an integer.
That will change for the release after 0.4.7.

Regards,


Oliver



More information about the TYPO3-project-seminars mailing list