diff --git a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl index f5cc56a04..365736bbd 100644 --- a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl @@ -27,7 +27,7 @@ {block name="label"} {if $input.type == 'color'} -
- +
diff --git a/themes/default/js/cart-summary.js b/themes/default/js/cart-summary.js index f4477fec2..c1c0ac3c7 100644 --- a/themes/default/js/cart-summary.js +++ b/themes/default/js/cart-summary.js @@ -655,9 +655,9 @@ function updateCartSummary(json) location.reload(); if (priceDisplayMethod !== 0) - $('#total_discount').html(formatCurrency(json.total_discounts_tax_exc, currencyFormat, currencySign, currencyBlank)); + $('#total_discount').html('-' + formatCurrency(json.total_discounts_tax_exc, currencyFormat, currencySign, currencyBlank)); else - $('#total_discount').html(formatCurrency(json.total_discounts, currencyFormat, currencySign, currencyBlank)); + $('#total_discount').html('-' + formatCurrency(json.total_discounts, currencyFormat, currencySign, currencyBlank)); $('.cart_discount').each(function(){ var idElmt = $(this).attr('id').replace('cart_discount_',''); @@ -667,10 +667,12 @@ function updateCartSummary(json) if (json.discounts[i].id_discount == idElmt) { if (json.discounts[i].value_real !== '!') + { if (priceDisplayMethod !== 0) $('#cart_discount_' + idElmt + ' td.cart_discount_price span.price-discount').html(formatCurrency(json.discounts[i].value_tax_exc * -1, currencyFormat, currencySign, currencyBlank)); else $('#cart_discount_' + idElmt + ' td.cart_discount_price span.price-discount').html(formatCurrency(json.discounts[i].value_real * -1, currencyFormat, currencySign, currencyBlank)); + } toDelete = false; } if (toDelete) diff --git a/themes/default/js/order-opc.js b/themes/default/js/order-opc.js index c053b38c2..162f95553 100644 --- a/themes/default/js/order-opc.js +++ b/themes/default/js/order-opc.js @@ -265,6 +265,7 @@ function confirmFreeOrder() else $('#opc_account-overlay').fadeIn('slow'); $('#opc_delivery_methods-overlay, #opc_payment_methods-overlay').fadeOut('slow'); + $('#confirmOrder').attr('disabled', 'disabled'); $.ajax({ type: 'POST', headers: { "cache-control": "no-cache" }, @@ -275,6 +276,7 @@ function confirmFreeOrder() data: 'ajax=true&method=makeFreeOrder&token=' + static_token , success: function(html) { + $('#confirmOrder').attr('disabled', ''); var array_split = html.split(':'); if (array_split[0] == 'freeorder') { diff --git a/tools/profiling/Controller.php b/tools/profiling/Controller.php index 1b55dd0dd..923faccec 100644 --- a/tools/profiling/Controller.php +++ b/tools/profiling/Controller.php @@ -227,8 +227,8 @@ abstract class Controller extends ControllerCore // then using displayAjax[action] if ($this->ajax) { - $action = Tools::getValue('action'); - if (!empty($action) && method_exists($this, 'displayAjax'.Tools::toCamelCase($action))) + $action = 'displayAjax'.Tools::toCamelCase(Tools::getValue('action', true)); + if (!empty($action) && method_exists($this, $action)) $this->{'displayAjax'.$action}(); elseif (method_exists($this, 'displayAjax')) $this->displayAjax();