Hi,
Change the line:
$infinite_scroll = !$enableCarousel && ((int)$this->params->get('infinite_scroll', 0) == 1) && ((int)$this->params->get('random', 0) == 0);
if(!function_exists('hikashop_isAmpPage')) {
function hikashop_isAmpPage() {
$isAmpPage = false;
if(class_exists('plgSystemWbamp') && method_exists('plgSystemWbamp', 'isAmpPage') && plgSystemWbamp::isAmpPage())
$isAmpPage = true;
return $isAmpPage;
}
}
$infinite_scroll = !$enableCarousel && ((int)$this->params->get('infinite_scroll', 0) == 1) && ((int)$this->params->get('random', 0) == 0) && !hikashop_isAmpPage();
Et cela devrait désactiver l'infinite scroll sur les pages AMP des listings de produits pour afficher la pagination normale à la place.