Beispiel #1
0
            }
        }
        ?>
                </td>
				<td><?php 
        if (isset($subplans[$course_id_plan[$value["id"]]]) && $subplans[$course_id_plan[$value["id"]]] > 0) {
            echo $subplans[$course_id_plan[$value["id"]]]["name"];
        }
        ?>
</td>
				<td><?php 
        if ($promocodeid != "0") {
            if (in_array($value["id"], $courses_array) || count($courses_array) == 0) {
                $model_orders = new guruAdminModelguruOrder();
                $total_new = $model_orders->getPromoDiscountCourse($price, $promocodeid);
                $promo_discount_percourse = $model_orders->getPromoDiscountCourses($price, $promocodeid);
                $totall_discount += $promo_discount_percourse;
            } else {
                $total_new = $price;
            }
        } else {
            $total_new = $price;
            if (isset($discount_details["0"]) && $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);
        } else {
Beispiel #2
0
                echo "0 (0" . "%" . ")" . " " . JText::_($character);
            }
        }
        ?>
                </td>
				<td><?php 
        if (isset($subplans[$course_id_plan[$value["id"]]]) && $subplans[$course_id_plan[$value["id"]]] > 0) {
            echo $subplans[$course_id_plan[$value["id"]]]["name"];
        }
        ?>
</td>
				<td><?php 
        if ($promocodeid != "0") {
            if (in_array($value["id"], $courses_array)) {
                $total_new = guruAdminModelguruOrder::getPromoDiscountCourse($price, $promocodeid);
                $promo_discount_percourse = guruAdminModelguruOrder::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);
        } else {