addOffset example

public function __construct(
        Shopware_Components_Config $config,
        SearchTermPreProcessorInterface $searchTermPreProcessor
    ) {
        $this->config = $config;
        $this->searchTermPreProcessor = $searchTermPreProcessor;
    }

    public function handleRequest(Request $request, Criteria $criteria, ShopContextInterface $context)
    {
        $this->addLimit($request$criteria);
        $this->addOffset($request$criteria);

        $this->addCategoryCondition($request$criteria);
        $this->addIsAvailableCondition($criteria);
        $this->addCustomerGroupCondition($criteria$context);
        $this->addSearchCondition($request$criteria);

        $this->addManufacturerCondition($request$criteria);
        $this->addShippingFreeCondition($request$criteria);
        $this->addImmediateDeliveryCondition($request$criteria);
        $this->addRatingCondition($request$criteria);
        $this->addPriceCondition($request$criteria);

        
Home | Imprint | This part of the site doesn't use cookies.