diff --git a/classes/FrontController.php b/classes/FrontController.php index c86c9f5fc..77a84de68 100755 --- a/classes/FrontController.php +++ b/classes/FrontController.php @@ -644,9 +644,6 @@ class FrontControllerCore extends Controller 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => (int)Tools::getValue('content_only') )); - - - } public function initFooter() diff --git a/classes/Link.php b/classes/Link.php index 24b8384d0..929214a61 100644 --- a/classes/Link.php +++ b/classes/Link.php @@ -85,7 +85,15 @@ class LinkCore $url .= $this->getLangLink($id_lang); if (!is_object($product)) - $product = new Product($product, false, $id_lang); + { + if (is_array($product) && isset($product['id_product'])) + $product = new Product((int)$product['id_product'], false, $id_lang); + else if(is_numeric($product)) + $product = new Product((int)$product, false, $id_lang); + else + throw new PrestashopException('Invalid product vars'); + } + // Set available keywords $params = array(); diff --git a/modules/blockcart/blockcart.css b/modules/blockcart/blockcart.css index 341139b2b..6b7e2082b 100644 --- a/modules/blockcart/blockcart.css +++ b/modules/blockcart/blockcart.css @@ -39,7 +39,7 @@ #cart_block .quantity-formated { display:inline-block; margin-right:5px; - width:15px + min-width:18px; } #cart_block .cart_block_product_name {font-weight:bold} #cart_block .remove_link { diff --git a/modules/blockcart/blockcart.tpl b/modules/blockcart/blockcart.tpl index 9aaef9a6f..3d4a9776d 100644 --- a/modules/blockcart/blockcart.tpl +++ b/modules/blockcart/blockcart.tpl @@ -62,7 +62,7 @@ var removingLinkText = '{l s='remove this product from my cart' mod='blockcart' {assign var='productAttributeId' value=$product.id_product_attribute}