[TYPO3-seminars] Additional prices

"Dr. Susanna Künzl" sk at ambranet.de
Mon Aug 2 17:46:12 CEST 2010


Hello!

My problem was:
> I've added new prices to the tx_seminars_seminars table. They are 
> correctly displayed in backend and frontend as well, BUT:
>
> The registration form does not display the locallang values from 
> pi1/locallang.xml unless they are set and displayed on other occasions 
> (single view).
>
> I added the prices to the function getAvailablePrices() 
> (class.tx_seminars_seminar.php):
>
>         if ($this->hasPriceRegularRoom()) {
>             $result['regular_room'] = array(
>                 'value' => 'regular_room',
>                 'amount' => $this->getPriceRegularRoomAmount(),
>                 'caption' => $this->translate('label_price_regular_room')
>                     .': '.$this->getPriceRegularRoom()
>             );
>         }
>
> but the dropdown select displays:
>
> <option  value="regular_room">label_price_regular_room: € 255,00</option>
>
> The frontend translation function in oelib should not be the problem.

Found the solution myself: I edited the wrong locallang.xml. Should have 
been seminars/locallang.xml.

Susanna

-- 
a m b r a n e t - Websites mit TYPO3
Kundenorientierte Beratung&  Umsetzung

Dr. Susanna Künzl
Föhrenstr. 33
90542 Eckental b. Nürnberg
Tel.: 0 91 26 - 28 90 90
http://www.ambranet.de

Treffen Sie Ihre Kunden im Internet!



More information about the TYPO3-project-seminars mailing list