0

我需要在具有不同域的 prestashop 多商店中获取某个产品的产品 url 链接。

我知道我可以通过以下方式获得产品链接:getProductLink($id_product)

但这会从主商店返回 url,我需要能够获取特定 id_store 的产品链接

4

1 回答 1

1

您需要将 getProductLink 与参数一起使用。第6个参数是id shop。利用

$link = new Link();
$link->getProductLink(1, null, null, null, null, 'your_shop_id_here');

在 php 中,或

{$link->getProductLink(1, null, null, null, null, 'your_shop_id_here')}

聪明内

于 2018-03-29T06:22:57.820 回答