Commit a623d7bf authored by Andy J's avatar Andy J

Article configuration finance box

parent cd8931e0
...@@ -9,7 +9,7 @@ $oPlugin = Plugin::getPluginById('jtl_paypal'); ...@@ -9,7 +9,7 @@ $oPlugin = Plugin::getPluginById('jtl_paypal');
require_once str_replace('frontend', 'paymentmethod', $oPlugin->cFrontendPfad) . '/class/PayPalFinance.class.php'; require_once str_replace('frontend', 'paymentmethod', $oPlugin->cFrontendPfad) . '/class/PayPalFinance.class.php';
$args_arr['io']->register('jtl_paypal_get_presentment', function($amount, $currency) use($oPlugin) { $args_arr['io']->register('jtl_paypal_get_presentment', function($amount, $currency) use($oPlugin) {
$amount = (float)$amount; $amount = (float) is_array($amount) ? $amount['price'] : $amount;
$currency = $currency !== null $currency = $currency !== null
? $currency ? $currency
: $_SESSION['Waehrung']->cISO; : $_SESSION['Waehrung']->cISO;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
$.evo.io().call('jtl_paypal_get_presentment', [amount, currency], this, function(error, data) { $.evo.io().call('jtl_paypal_get_presentment', [amount, currency], this, function(error, data) {
if (error) return; if (error) return;
$(data.options.selector) $(data.options.selector)
.replaceWith(data.response); .html(data.response || '');
}); });
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment