You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing an array of shopifyIds, the returned order does not match the order of the array of IDs passed. When adding fixedOrder(true), no results are returned.
This does not return products in the order the of the productIds array passed:
{% set products = craft.shopifyProducts.shopifyId(productIds).collect %}
This returns no results:
{% set products = craft.shopifyProducts.shopifyId(productIds).fixedOrder(true).collect %}
Steps to reproduce
Pass productIds in an order that is different to the default order products are stored in Craft.
Additional info
Craft version: 4.5.4
PHP version: 8.2
Database driver & version: mysql
Plugins & versions: craftcms/shopify 3.2.0
The text was updated successfully, but these errors were encountered:
Description
When passing an array of shopifyIds, the returned order does not match the order of the array of IDs passed. When adding
fixedOrder(true)
, no results are returned.This does not return products in the order the of the
productIds
array passed:{% set products = craft.shopifyProducts.shopifyId(productIds).collect %}
This returns no results:
{% set products = craft.shopifyProducts.shopifyId(productIds).fixedOrder(true).collect %}
Steps to reproduce
productIds
in an order that is different to the default order products are stored in Craft.Additional info
The text was updated successfully, but these errors were encountered: