diff --git a/classes/controller/FrontController.php b/classes/controller/FrontController.php index 4e85b8a05..ab743d8e4 100755 --- a/classes/controller/FrontController.php +++ b/classes/controller/FrontController.php @@ -315,6 +315,7 @@ class FrontControllerCore extends Controller 'base_dir' => _PS_BASE_URL_.__PS_BASE_URI__, 'base_dir_ssl' => $protocol_link.Tools::getShopDomainSsl().__PS_BASE_URI__, 'content_dir' => $protocol_content.Tools::getHttpHost().__PS_BASE_URI__, + 'base_uri' => $protocol_content.Tools::getHttpHost().__PS_BASE_URI__.(!Configuration::get('PS_REWRITING_SETTINGS') ? 'index.php' : ''), 'tpl_dir' => _PS_THEME_DIR_, 'modules_dir' => _MODULE_DIR_, 'mail_dir' => _MAIL_DIR_, diff --git a/modules/blockcart/ajax-cart.js b/modules/blockcart/ajax-cart.js index f6f447aed..4a2f664ed 100644 --- a/modules/blockcart/ajax-cart.js +++ b/modules/blockcart/ajax-cart.js @@ -122,7 +122,7 @@ var ajaxCart = { //send the ajax request to the server $.ajax({ type: 'GET', - url: baseDir + 'index.php', + url: baseUri, async: true, cache: false, dataType : "json", @@ -196,7 +196,7 @@ var ajaxCart = { //send the ajax request to the server $.ajax({ type: 'POST', - url: baseDir + 'index.php', + url: baseUri, async: true, cache: false, dataType : "json", @@ -253,7 +253,7 @@ var ajaxCart = { //send the ajax request to the server $.ajax({ type: 'POST', - url: baseDir + 'index.php', + url: baseUri, async: true, cache: false, dataType : "json", @@ -351,7 +351,7 @@ var ajaxCart = { } var removeLinks = $('#cart_block_product_' + domIdProduct).find('a.ajax_cart_block_remove_link'); if (!product.hasCustomizedDatas && !removeLinks.length) - $('#' + domIdProduct + ' span.remove_link').html(' '); + $('#' + domIdProduct + ' span.remove_link').html(' '); if (parseInt(product.price_float) <= 0) $('#' + domIdProduct + ' span.remove_link').html(''); }, @@ -445,7 +445,7 @@ var ajaxCart = { content += '' + name + ''; if (parseFloat(this.price_float) > 0) - content += ' '; + content += ' '; else content += ''; @@ -524,7 +524,7 @@ var ajaxCart = { // If the customization is already displayed on the cart, no update's needed if ($("#deleteCustomizableProduct_" + customizationId + "_" + productId + "_" + productAttributeId).length) return (''); - content += '