Skip to content

feature: Category PLP Prerendering #261

@sirugh

Description

@sirugh

Feature Ask: Category / PLP Prerendering

The application is currently written to manage product detail page generation. We want to add the capability to manage product list page generation as well. The general approach may remain - get all categories (either automatically/programatically or by user input), generate markup for the categories, then monitor the categories for changes.

Implementation

We need to get the full list of available categories for the backend. There are two ways to do this:

  1. For ACO, we should use the navigation query.
  2. For ACCS, we should use the categories query, until ACO schema is merged into these services.

Considerations

  • Storefront may have more than one addressable category tree, will likely need to accept as input/config, the list of categories the merchant wants to prerender category pages for, and then iterate over that list during processing to generate. This list should probably be dynamic/changeable and not hardcoded in env vars.
  • The structured data is highly sensitive to catalog changes. We need to know the first page of products that is displayed. We need to know default sort. We need to monitor all of those products for changes that would trigger rerender of catalog page markup. We need to monitor new products incase they affect that first page (ie new product "pushes" all other products by 1). We need to monitor for product deletions that affect category pages.

Questions

  • Do we get a "lastModified" for a category?
  • What is the correlation between ACCS and ACO "family"? Is ACO concept of navigation family the same as ACCS categoryTree family? See below screenshots of attempt at getting consistent category info

ACCS:

Image

ACO

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions