echo $promo_discount_percourse . " " . JText::_($character) . " (" . $discount . ")"; } } else { if ($currencypos == 0) { echo JText::_($character) . " " . "0 (0" . "%" . ")"; } else { echo "0 (0" . "%" . ")" . " " . JText::_($character); } } ?> </td> <td> <?php if ($promocodeid != "0") { if (in_array($value["id"], $courses_array)) { $total_new = $guruModelguruOrder->getPromoDiscountCourse($price, $promocodeid); $promo_discount_percourse = $guruModelguruOrder->getPromoDiscountCourses($price, $promocodeid); $totall_discount += $promo_discount_percourse; } else { $total_new = $price; } } else { $total_new = $price; if ($discount_details["0"]["typediscount"] == "0") { $totall_discount = JText::_($character) . " " . "0"; } else { $totall_discount = "0" . "%"; } } if ($currencypos == 0) { echo JText::_($character) . " " . round((double) $total_new, 2);