# Copyright 2026 - Today Criptomart # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) from odoo import fields from odoo import models class Website(models.Model): _inherit = "website" shop_lazy_loading = fields.Selection( selection=[ ("off", "Pager (standard)"), ("button", "Load more button"), ("scroll", "Infinite scroll"), ], string="Shop Product Loading", default="scroll", required=True, help="How the /shop listing loads the pages after the first one.\n" "- Pager (standard): the visitor clicks the page numbers, each page " "is a full reload.\n" "- Load more button: the next page is appended when the visitor " "clicks the button.\n" "- Infinite scroll: the next page is appended when the visitor " "reaches the bottom of the listing.\n" "The page size is the 'Products per page' of the shop layout " "(website editor), so it is shared with the standard pager. Visitors " "without JavaScript always get the standard pager.", )