|
Autor: Matthias Brückner
|
Datum: 12-02-08 12:56:02
|
| |
So, hab es selber hinbekommen.
Die Datei ext\ttproducts\view\class.tx_ttproducts_basket_view.php folgendermaßen bearbeiten:
$max2_creditpoints = intval (($this->basket->calculatedArray['priceTax']['total'] - $this->basket->calculatedArray['priceTax']['voucher']) / $pricefactor );
ändern in
$max2_creditpoints = doubleval (($this->basket->calculatedArray['priceTax']['total'] - $this->basket->calculatedArray['priceTax']['voucher']) / $pricefactor );
$markerArray['###AMOUNT_CREDITPOINTS_MAX###'] = number_format( min ($max1_creditpoints,$max2_creditpoints),0);
ändern in
$markerArray['###AMOUNT_CREDITPOINTS_MAX###'] = number_format( min ($max1_creditpoints,$max2_creditpoints),2);
und
if ($this->basket->recs['tt_products']['creditpoints'] > number_format( min ($max1_creditpoints,$max2_creditpoints),0)) {
$this->basket->recs['tt_products']['creditpoints'] = number_format( min ($max1_creditpoints,$max2_creditpoints),0);
ändern in
if ($this->basket->recs['tt_products']['creditpoints'] > number_format( min ($max1_creditpoints,$max2_creditpoints),2)) {
$this->basket->recs['tt_products']['creditpoints'] = number_format( min ($max1_creditpoints,$max2_creditpoints),2);
Beste Grüße
Matthias Brückner
|
| |
|