Merge branch 'fix/canonical' into develop

This commit is contained in:
Michael RICOIS 2017-12-12 17:04:53 +01:00
commit 12e70b0f98
2 changed files with 10 additions and 1 deletions

View File

@ -79,8 +79,16 @@ class Ant_Canonical extends Module
global $cookie;
$product = new Product($id);
return $this->getLinkRewriteCategory($product->id_category_default, true)
$link = $this->getLinkRewriteCategory($product->id_category_default, true)
.'/'.$id.'-'.$product->link_rewrite[$cookie->id_lang];
if (!empty($product->ean13)) {
$link .= '-' . $product->ean13;
}
$link .= '.html';
return $link;
}
/**

View File

@ -756,6 +756,7 @@ class AdminPhileaMagistor extends AdminTab {
WHERE `id_sale` = '.(int) $CRR['id_sale'] .'
AND `filename` LIKE "CRP%"
AND `report_data` IS NOT NULL
ORDER BY `report_date` DESC
');
$crr_report = Db::getInstance()->executeS('
SELECT `quantity_received`, `quantity_expected`, `status`, `date_upd`