I've been trying to paginate some shoes for a store, I've been able to filter inside the loop but that causes gaps, example if one shoe is filtered out I would get 7 shoes on the page instead of the 8 I want.

{% paginate craft.commerce.products.type('footwear').relatedTo({
      element: "9",
      field: 'footwearmatrix.menShoeSize.numberSize.options'
}) as entries %}

I have tried element, sourceElement and targetElement, and with the 9 in quotes and out of quotes. I've also tried with and without the .options at the end of the field.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.