Displaying +100 Locations: Solutions for Liquid Limits?

Displaying +100 Locations: Solutions for Liquid Limits?

yuyar
Shopify Partner
6 1 0

Hello,

We're facing a challenge with displaying more than 100 locations on the storefront due to Liquid's limitation. The issue arises because the paginate tags are not compatible with customer.company_available_locations or customer.current_company.available_locations. Do you have any suggestions for displaying information for over 100 locations on the frontend?

 

 

I've also noticed that if a company location is not part of the first 100 accounts, no detail about it can be displayed on the frontend. 

Replies 2 (2)

yuyar
Shopify Partner
6 1 0

It appears that the limitation lies with the Shopify theme engine itself. The engine does not allow access to the data of company locations for customers who have more than 100 locations. We are only able to access the data of the first 100 locations. This limitation appears to be related to a restriction of the Shopify theme engine.

yuyar
Shopify Partner
6 1 0

It appears that the limitation lies with the Shopify theme engine itself. The engine does not allow access to the data of company locations for customers who have more than 100 locations. We are only able to access the data of the first 100 locations. This limitation appears to be related to a restriction of the Shopify theme engine.

 

I tested a company with 120 locations.

In Shopify Admin, the location count is shown as 8, yet it displays all 120 locations.

The Shopify Theme reports a count of 100 and displays only these 100 locations.

GraphQL also shows a count of 8 but renders results for all 120 locations.

 

GRAPHQL:
2024-04-25 at 15.54.54@2x.png

 

 

THEME:

2024-04-25 at 15.52.13@2x.png

 

ADMIN:

2024-04-25 at 15.49.58@2x.png