我正在使用 $link -> getProductLink($product) 在自定义 ajax 支持的模块中生成产品链接
它正在生成一个类似 http://example.com/prestashop/2-blouse.html 的 URL
它抛出一个错误,说
[Debug] This page has moved Please use the following URL instead: http://example.com/prestashop/blouses/2-blouse.html
如何避免同样的情况
谢谢
PS:我使用的是 prestashop 1.6
最佳答案
在 config/defines.inc.php
中将 _PS_MODE_DEV_
设置为 false
。
关于url - PrestaShop $link -> getProductLink($product) 给出了错误的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25528902/