From c7f9b261c35142c602234405a7b2a44d2cf71edf Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Wed, 27 Jul 2016 19:29:09 +0200 Subject: [PATCH] modif url in cron --- modules/criteo_bbb/cron_flux_catalogue.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/criteo_bbb/cron_flux_catalogue.php b/modules/criteo_bbb/cron_flux_catalogue.php index ccd0586e..d7d70942 100644 --- a/modules/criteo_bbb/cron_flux_catalogue.php +++ b/modules/criteo_bbb/cron_flux_catalogue.php @@ -66,7 +66,8 @@ foreach(Db::getInstance()->ExecuteS(' if (!Configuration::get('WIC_CRITEO_URL_MODE')) { $s->addChildAuto('producturl', 'http://www.bebeboutik.com/'); } else { - $s->addChildAuto('producturl', $link->getProductLink((int)$product->id, $product->link_rewrite[$id_lang], $product->ean13)); + $category = Category::getLinkRewrite((int)$row['id_category_default'], (int)($id_lang)); + $s->addChildAuto('producturl', $link->getProductLink((int)$product->id, $product->link_rewrite[$id_lang], $category, $product->ean13)); } /* Image Cover */