PrestaShop $link ->getProductLink($product) 给出不正确的 URL
PrestaShop $link ->getProductLink($product) gives incorrect URL
我正在使用 $link -> getProductLink($product)
在自定义 ajax 驱动模块中生成我的产品链接
它正在生成一个 URL 像 http://example.com/prestashop/2-blouse.html
抛出错误
[Debug] This page has moved Please use the following URL instead:
http://example.com/prestashop/blouses/2-blouse.html
如何避免在 config/defines.inc.php.
中将 _PS_MODE_DEV_ 设置为 false
谢谢
P.S: 我正在使用 prestashop 1.7
试用 this(免费)模块。
但是要回答你的问题 {$link->getProductLink($smarty.get.id_product, $smarty.get.id_product.link_rewrite)|escape:'htmlall':'UTF-8'}
我正在使用 $link -> getProductLink($product)
它正在生成一个 URL 像 http://example.com/prestashop/2-blouse.html
抛出错误
[Debug] This page has moved Please use the following URL instead: http://example.com/prestashop/blouses/2-blouse.html
如何避免在 config/defines.inc.php.
中将 _PS_MODE_DEV_ 设置为 false谢谢
P.S: 我正在使用 prestashop 1.7
试用 this(免费)模块。
但是要回答你的问题 {$link->getProductLink($smarty.get.id_product, $smarty.get.id_product.link_rewrite)|escape:'htmlall':'UTF-8'}