PrestaShop $link ->getProductLink($product) 给出了错误的 URL [英] PrestaShop $link -> getProductLink($product) gives incorrect URL
本文介绍了PrestaShop $link ->getProductLink($product) 给出了错误的 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 $link -> 在自定义 ajax 驱动模块中生成我的产品链接getProductLink($product)
它正在生成一个像 http://example.com/prestashop/2-blouse.html 这样的 URL
这是抛出一个错误说
[调试] 此页面已移动 请改用以下 URL:http://example.com/prestashop/blouses/2-blouse.html
[Debug] This page has moved Please use the following URL instead: http://example.com/prestashop/blouses/2-blouse.html
我如何避免相同的
谢谢
P.S:我使用的是 prestashop 1.6
P.S: I'm using prestashop 1.6
推荐答案
在 config/defines.inc.php
中将 _PS_MODE_DEV_
设置为 false
.
Set _PS_MODE_DEV_
to false
in config/defines.inc.php
.
这篇关于PrestaShop $link ->getProductLink($product) 给出了错误的 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文