diff --git a/plugin/buycourses/src/buycourses.ajax.php b/plugin/buycourses/src/buycourses.ajax.php
index 936824efbe..23ac5bca7b 100644
--- a/plugin/buycourses/src/buycourses.ajax.php
+++ b/plugin/buycourses/src/buycourses.ajax.php
@@ -37,7 +37,6 @@ switch ($action) {
}
break;
-
case 'saleInfo':
if (api_is_anonymous()) {
break;
@@ -75,9 +74,7 @@ switch ($action) {
$html .= '';
echo $html;
-
break;
-
case 'stats':
if (api_is_anonymous()) {
break;
@@ -114,7 +111,6 @@ switch ($action) {
$stats['canceled_total_amount'] = number_format($stats['canceled_total_amount'], 2);
}
-
$html = '
'. get_plugin_lang("VerifyTotalAmountToProceedPayout", "BuyCoursesPlugin") .'
';
$html .= ''
. ''
@@ -174,7 +168,6 @@ switch ($action) {
echo $html;
break;
-
case 'proceedPayout':
if (api_is_anonymous()) {
break;
@@ -196,9 +189,7 @@ switch ($action) {
$payouts = isset($_POST['payouts']) ? $_POST['payouts'] : '';
if (!$payouts) {
-
echo Display::return_message(get_plugin_lang("SelectOptionToProceed", "BuyCoursesPlugin"), 'error', false);
-
break;
}
@@ -207,23 +198,16 @@ switch ($action) {
}
$currentCurrency = $plugin->getSelectedCurrency();
-
$isoCode = $currentCurrency['iso_code'];
-
-
$result = MassPayment($allPayouts, $isoCode);
-
if ($result['ACK'] === 'Success') {
foreach ($allPayouts as $payout) {
$plugin->setStatusPayouts($payout['id'], BuyCoursesPlugin::PAYOUT_STATUS_COMPLETED);
}
echo Display::return_message(get_plugin_lang("PayoutSuccess", "BuyCoursesPlugin"), 'success', false);
-
} else {
-
echo Display::return_message(''.$result['L_SEVERITYCODE0'].' '.$result['L_ERRORCODE0'].' - '.$result['L_SHORTMESSAGE0'].'
";
if ($response) {
@@ -595,8 +549,6 @@ switch ($action) {
$html .= "location.reload();";
$html .= "});";
$html .= "";
-
echo $html;
-
break;
}
diff --git a/plugin/buycourses/src/configure_course.php b/plugin/buycourses/src/configure_course.php
index 04a6c25b15..16fca99a3a 100644
--- a/plugin/buycourses/src/configure_course.php
+++ b/plugin/buycourses/src/configure_course.php
@@ -1,12 +1,11 @@
getPlatformCommission();
- $form->addHtml( ''
+ $form->addHtml(''
. '
'
. '