My bad... I assumed, since:
" id*, rewrite, ean13, category, categories, reference, meta_keywords, meta_title, manufacturer, supplier, price, tags "
became
id, rewrite*, ean13, category, categories, reference, meta_keywords, meta_title, manufacturer, supplier, price, tags
It would only look by rewrite instead of ID. Just tested, even tho {id} is not required as identifier but {rewrite} TB has ability to search for products by id_product.
Didn't investigate code untill now... and here is this small diamond 💎💎💎💎
if ($route['controller'] === 'product') {
if (isset($m['id']) && $m['id']) {
$idProduct = (int) $m['id'];
} else {
$idProduct = $this->productID($m['rewrite'], $uri); // <<<<<<<<<<<<<<<<<<<<
if (!$idProduct) {
$idProduct = in_array('id_product', $m) ? (int) $m['id_product'] : 0;
if (!$idProduct) {
continue;
}
}
}
$_GET['id_product'] = $idProduct;
}
Even with performance consideration from dev ❤️❤️❤️❤️
PS: Not sure why rewrite is required and not "either require or id is required", but it none of concern then 😉
@wakabayashi Thx for making me dig into code 🙂