Skip to content

Loaders does not work on the Shopify Narrative theme #55

@gvisniuc

Description

@gvisniuc

Describe the bug
Hi there,
I have recently implemented the load more button on a Brooklyn theme and worked perfectly.

However when implemented on a new Narrative theme it fails to load the new objects (the request does succeed it's just the visual part not working).

I investigated a bit and seems to be the cardManager object in theme.js responsible for loading the new content.

I would really appreciate some assistance or guidance if possible.

The section responsible for rendering:


    <div class="card-list grid" data-desktop-columns="{{ desktopColumns }}" data-mobile-columns="{{ mobileColumns }}" data-grid-style="{{ section.settings.grid_style }}">
      <div class="card-list__column{% if totalProducts == 1 %} card-list__column--center{% endif %} grid grid__item {{ gridClasses }}">
        <div id="ajaxinate-loop" >
        {% for product in collection.products %}
          {% include 'product-card', product: product, grid_style: section.settings.grid_style %}
        {% endfor %}
        </div>
      </div>
    </div>

To Reproduce
Steps to reproduce the behavior:

  1. Create narrative theme
  2. Add load more button and script
  3. Click load more

Screenshots

ajaxinate

Desktop (please complete the following information):

  • OS: macOS Catalina
  • Browser: Chrome
  • Version 80

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions