"myXOOPs"-Fortgeschrittener
Gepostet am:12.08.2006 15:24
#3
Re: CatAds - Kommastellen
12.08.2006 15:24 Hallo Sato-San.
Danke für die Antwort. Ich habe die entsprechenden Korrekturen vorgenommen.
- With phpmyadmin (i.e.) in the table ????_catads_ads, edit the field price and change the type :INT -> VARCHAR(12)
- In the file class/ads.php, search this line
$this->initVar('price', XOBJ_DTYPE_INT, 0, false);
and replace with
$this->initVar('price', XOBJ_DTYPE_TXTBOX, null, false)
Der Preis wird jetzt (halbwegs) richtig angezeigt. Störend ist nur, dass aus 39.50 € 39.5 € gemacht werden.
Hast Du evtl. einen Tipp???
Danke, Mrs Dirty