Manipulate Limit on Product Query

Question:

Is there a way to override the limit on a Product query or use our own value?

    /**
     * Optional limit, the default value is <b>24</b>, because it is divisible
     * by 2, 3, 4 & 6 – which are common numbers or products per row in
     * frontends.
     *
     * @var integer
     */
    public $limit = 24;
Answer:

There's a default limit of 24 in our Product Query implementation and unfortunately, there isn't currently a nice solution for this. You could use a Product API decorator in order to manipulate the query if you'd like to change this.


‹Back

FAQs

Still need help? Contact Us Contact Us