[*] FO : combination link from product page are now the same as the combination link from blocklayered

// Cart is now accepting the combination link
This commit is contained in:
vChabot
2011-11-10 10:45:19 +00:00
parent 4846333250
commit 95cde12b84
10 changed files with 261 additions and 45 deletions
+2 -1
View File
@@ -375,7 +375,8 @@ class ProductControllerCore extends FrontController
{
$attributes_combinations = Product::getAttributesInformationsByProduct($this->product->id);
foreach ($attributes_combinations as &$ac)
$ac = array_map('Tools::str2url', $ac);
foreach ($ac as &$val)
$val = str_replace('-', '_', Tools::link_rewrite($val));
$this->context->smarty->assign('attributesCombinations', $attributes_combinations);
}