Skip to content

Conversation

@ede-somogyi-algolia
Copy link
Collaborator

@ede-somogyi-algolia ede-somogyi-algolia commented Dec 8, 2025

Created new site preference AttributeSlicedRecordModel_GroupingAttribute which takes the place of the hardcoded 'color' value for the grouping variation attribute for the "Attribute-sliced" record model.

The Algolia BM module was updated in such a way that the value of the new site preference is only editable if the user selectes the "Attribute-sliced" record model.

The code throws an error and returns if the user selected the "Attribute-sliced" record model but haven't set AttributeSlicedRecordModel_GroupingAttribute as well.

image image

Testing notes

  • In order to test, import system-objecttype-extensions.xml first!
  • the chosen variation attribute needs to be a proper variation attribute, not just any attribute, otherwise variationModel.getProductVariationAttribute('<attribute>') won't return anything and indexing falls back to the master-type record (all variations in the same record).
  • testing with 'size', the variants are grouped by size, storing the different color variations for a specific size in the same record. In order to make use of other variation attributes, the user will need to define their desired variation attribute in BM and creating variants for that variation attribute before using one.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ede-somogyi-algolia ede-somogyi-algolia force-pushed the feat/vargroup-model/sfcc-468-1-rename-variation-group-level-record-type branch from 9629378 to 3cd937e Compare December 23, 2025 14:04
@ede-somogyi-algolia ede-somogyi-algolia force-pushed the feat/vargroup-model/sfcc-468-2-expose-variation-attribute-as-site-preference branch from 73ffb11 to 3a8c8d0 Compare December 23, 2025 16:34
@ede-somogyi-algolia ede-somogyi-algolia force-pushed the feat/vargroup-model/sfcc-468-2-expose-variation-attribute-as-site-preference branch from 86930e2 to e6a7634 Compare December 23, 2025 17:07
Base automatically changed from feat/vargroup-model/sfcc-468-1-rename-variation-group-level-record-type to feat/sfcc-450 December 23, 2025 21:09
@ede-somogyi-algolia ede-somogyi-algolia merged commit 1a7598d into feat/sfcc-450 Dec 23, 2025
3 of 5 checks passed
@ede-somogyi-algolia ede-somogyi-algolia deleted the feat/vargroup-model/sfcc-468-2-expose-variation-attribute-as-site-preference branch December 23, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants