'.$trk['title'].' by '.$trk['artist'].' On '.$trk['album'].'';
$total=$total+$trkprice;
echo ' X Delete';
echo '';
$trkcounter++;
}
echo ' '.count($_SESSION['cart']['album'] ?? Array()).' times '.htmlspecialchars($downloadCartCurrency.' '.$albprice).' (full albums) plus '.count($_SESSION['cart']['track'] ?? Array()).' times '.htmlspecialchars($downloadCartCurrency.' '.$trkprice).' (individual tracks)';
echo 'TOTAL: ';
$payment=true;
if (count($_SESSION['cart']['album'] ?? Array())>0 || count($_SESSION['cart']['track'] ?? Array())>0) {//we got more than 0 item in the cart, let's go
if ($isDownloadCartNameYourPrice){
echo 'Choose what you want to pay ';
echo '[--][-]';
echo htmlspecialchars($downloadCartCurrency). ' ';
echo' ';
echo '';
echo '[+][++] Name your price, no minimum remove decimals';
}
else{
echo htmlspecialchars($downloadCartCurrency). ' ';
echo htmlspecialchars($total);
}
}
else {//we got 0 item in the cart, display a warning
echo 'You got 0 items in your download cart. Please go back and browse the site to select songs or albums that you want to download, and try again then. ';
if ($isDownloadCartNameYourPrice){
echo '
The price is only a suggested donation. You pay what you want, including 0. It\'s "Name your price, no minimum".
';
}
$payment=false;
}
echo '';
if ($payment) {
?>