toanloau Posted March 14, 2014 Share Posted March 14, 2014 (edited) how i get product link the same http://localhost/prestashop02/index.php?id_product=1&controller=product&id_lang=1#/disk_space-16gb/color-yellow i don't know to add #/disk_space-16gb/color-yellow after link. if this product has combination an attribute. Edited March 14, 2014 by toanloau (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 14, 2014 Share Posted March 14, 2014 you mean that you want to generate this link somehow from php? or what? Link to comment Share on other sites More sharing options...
webdev.nick Posted June 18, 2014 Share Posted June 18, 2014 you mean that you want to generate this link somehow from php? or what? Yes, how to generate a link on product with some attribute (like http://localhost/prestashop02/index.php?id_product=1&controller=product&id_lang=1#/disk_space-16gb/color-yellow) in php module or in template file. Link to comment Share on other sites More sharing options...
Michel (Ekimia SAS) Posted July 22, 2014 Share Posted July 22, 2014 (edited) Hi this is exactly what I'm trying to. We could copy this code from prestashop but it would be easier if there was a "getproductcombinatinlink in the prestashop API ? for (var i in attributesCombinations) for (var a in tab_attributes) if (attributesCombinations[i]['id_attribute'] === tab_attributes[a]) request += '/'+attributesCombinations[i]['group'] + '-' + attributesCombinations[i]['attribute']; request = request.replace(request.substring(0, 1), '#/'); Edited July 22, 2014 by ekimia (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts