We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Shopify Section Rendering API not using Section Settings

Shopify Section Rendering API not using Section Settings

wpconsulate
Shopify Partner
1 0 0

Hi there,

I'm using the Shopify Section rendering API for collections page. in my collection-template for pagination I'm using limit as

{%- assign limit = section.settings.grid | times: section.settings.rows -%}

where my grid=4 and rows =6 so 24 products in total, per page. Next, I'm making AJAX call to load the other pages i.e. 

 

 

?page=2&sections=collection-template

 

 

But during this AJAX call the grid and rows values are reset to 4 and 4 and it's loading 16 products. while the section should take the section's setting values not some default values. From my POV this is a bug in Section rendering API

FYI: I'm only having these settings for default collection no other collection have individual settings.

Reply 1 (1)

Felix_Tellmann
Shopify Partner
8 0 0

Hey @wpconsulate ,
Unfortunately this isn't a bug, but by Shopify design.

 

Felix_Tellmann_0-1699380353173.png

You can read more about it here.