извините за мой английский, могу ли я французского происхождения
Prestashop 1.7 getProductLink TPL некоторое время назад я разработал модуль для своего сайта, в Tpl я получаю ссылки этим методом
<a href = "{$link->getProductLink($ViewProduct.id_product, $ViewProduct.link_rewrite, null, null, null, null)|escape:'html':'UTF-8'}">
{$ViewProduct.name|escape:'html':'UTF-8'}
</a>
сегодня прохожу на prestashop 1.7 проблема и когда открываю ссылку, моя и таким образом
art / 3-affiche-encadree-the-best-is-still-to-come.html
но prestashop 1.7 предлагает мне перенаправление на
art / 3-13-affiche-encadree-the-best-is-still-to-come.html
на странице seo моей presta у меня есть это {Category: / {id}} {-: id_product_attribute} - {{rewrite} -: ean13} .html
здесь я не хочу редактировать я просто хочу получить точные ссылки link_rewrite
oui, mdr j'ai, mis le meme lien, voila le lien de mon module art / 3-affiche-encadree-the-best-is-still-to-come.html et celui que prestashop me propose art / 3-13 -affiche-encadree-the-best-is-still-to-come.html
j'essaye de récupérer le link_rewritecom prestashop mais je sais pas quoi faire pour l'adapter
Проблема в том, что функция getProductLink
возвращает URL-адрес art/3-affiche-encadree-the-best-is-yet-to-come.html
, но когда вы открываете этот URL-адрес, он перенаправляется на art/3-13-affiche-encadree-the-best-is-yet-to-come.html
?
да, именно так, я решил проблему благодаря вам <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; ">
(Я отвечаю по-французски, так будет удобнее) En français, simplement, les deux liens que vous proposez sont identity. Pouvez vous réexpliquer le problème en francais ci dessous?