[eidt] im header sollte warenkorb nicht kasse stehen, aber der fehler ist an der kasse immernoch da[/edit]
hallo zusammen: bekomme sobald ich mein warenkorb öffne folgende 2 fehlermeldungen:
Warning: Division by zero in /typo3_src-3.8.0/typo3/ext/tt_products/lib/class.tx_ttproducts_basket_div.php on line 787
Warning: Cannot modify header information - headers already sent by (output started at /typo3_src-3.8.0/typo3/ext/tt_products/lib/class.tx_ttproducts_basket_div.php:787) in /typo3_src
der Code in dieser Zeile ist folgender:
$oldprice_total_tot_units = ($actItem['totalNoTax']/$actItem['rec']['price2'])*$actItem['rec']['price'];
Heisst das ich darf den Preis(2) nicht leer lassen oder wodran liegt das? wo werden da header informationen bestimmt?
Danke für alle Hilfen!
Gruß
Nicklas
Du mußt den Code an dieser Stelle etwas abändern:
if ( ($actItem['rec']['price'] != '0.00') && doubleval($actItem['rec']['price2']) && ($actItem['rec']['category'] != $this->conf['creditsCategory']) ) {
$pricediscount_total_tot_units = "";
$oldprice_total_tot_units = ($actItem['totalNoTax']/$actItem['rec']['price2'])*$actItem['rec']['price'];
$pricediscount_total_tot_units = ($oldprice_total_tot_units - $actItem['totalNoTax']) * $actItem['rec']['unit_factor'];
$sum_pricediscount_total_totunits += $pricediscount_total_tot_units; }
vielen dank..
funzt einwandfrei...
was wär der shop nur ohne dich 😉
ne kurze andere frage wo ich (komischerweise?) keine antwort im forum gefunden hab:
wenn ich die anzahl der bilder von 1 auf 10 bilder erhöhe, werden auch in der list-darstellung alle bilder angezeigt. ich will aber im list nur ein bild haben und in den details dann alle...
danke