{% spaceless %} {# @var obPromoBlock \Lovata\Shopaholic\Classes\Item\PromoBlockItem #} {% set obPromoBlock = PromoBlockPage.get() %} {# Get product collection #} {% set obProductList = ProductList.make().active().sort(ProductList.getSorting()).promo(obPromoBlock.id) %} {# Get array with pagination buttons #} {% set iPage = Pagination.getPageFromRequest() %} {# Apply pagination to product collection and get array with product items #} {% set arProductList = obProductList.page(iPage, Pagination.getCountPerPage()) %} {% if arProductList is not empty %}