spartacuse Posted March 14, 2018 Share Posted March 14, 2018 Bonjour, il y a quelque temps j'ai développé un module pour mon site, dans la Tpl je récupère les liens avec cette méthode <a href="{$link->getProductLink($ViewProduct.id_product,$ViewProduct.link_rewrite)}" style="text-decoration: none;"> <img src="{$link->getImageLink($ViewProduct.link_rewrite, $ViewProduct.id_image, {$img_def})}" alt="{$ViewProduct.name|escape:html:'UTF-8'}" title="{$ViewProduct.name|escape:html:'UTF-8'}" width="50"> </a> aujourd’hui je suis passer sur prestashop 1.7 le problème et quand j’ouvre un lien, le miens et de cette facon art/3-13-affiche-encadree-the-best-is-yet-to-come.html mais prestashop me propose une redirection sur art/3-13-affiche-encadree-the-best-is-yet-to-come.html sur la page seo de mon presta j'ai ceci Route vers les produits {category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13}.html voila pas envie de modifier je veux juste récupérer le liens exacte link_rewrite Merci d'avance Link to comment Share on other sites More sharing options...
WebPoint Posted March 15, 2018 Share Posted March 15, 2018 modifie ton code php pour récupérer le link_rewrite des catégories voila un exemple <a href="{$link->getProductLink($ViewProduct.id_product, $ViewProduct.link_rewrite, $ViewProduct.category_rewrite, null, null, null, $ViewProduct.id_lang)|escape:'html':'UTF-8'}" title="{$ViewProduct.name|escape:'html':'UTF-8'}" style="text-decoration: none;"> 1 Link to comment Share on other sites More sharing options...
spartacuse Posted March 15, 2018 Author Share Posted March 15, 2018 CA FONCTIONNE MERCI Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now