BRD-1043-Surface-variant-URL-and-price-in-Shopify-search-index#68
Conversation
There was a problem hiding this comment.
Code Review
This pull request enhances the ShopifyAdapter to include localized product URLs and pricing information (price, basePrice) for product variants, ensuring variant-specific deep-linking by appending the variant ID to the URL. It also adds comprehensive tests for these changes, including logic for preserving existing query parameters like preview_key. Review feedback suggests using array_merge instead of the + operator for query parameters to ensure the variant ID correctly overrides existing values and recommends pre-calculating handle translations outside the variant loop to improve performance.
|
@claude review |
|
Claude finished @PauliusInvertus's task in 2m 13s —— View job Code Review: BRD-1043 — Surface variant URL and price in Shopify search indexTasks
The overall approach is solid — the design decision to omit 🔴 Bug:
|
|
@claude review |
|
Claude finished @PauliusInvertus's task in 2m 23s —— View job Code Review: BRD-1043 — Surface variant URL and price in Shopify search indexTasks
The implementation is solid and all issues raised in the previous review round have been addressed in commit ✅ Previous feedback — all addressed
🟡 Minor:
|
Per-variant productUrl_ with ?variant= deep-linking and the
locale prefix, plus price/basePrice/priceTaxExcluded fields. Variant
imageUrl is intentionally omitted so the parent's curated featuredImage
stays the search-row hero.
Indexes Shopify variants with their own locale-prefixed productUrl (using ?variant=) and price fields, so a search like "gloves xl" can deep-link to the matching variant via brad-search's variant enrichment. Variant imageUrl is intentionally left off — merchants want the curated featuredImage to remain the row hero regardless of which variant matched. (Greengoing case featuredImage)
BRD-1043
Screen.Recording.2026-05-07.at.14.40.10.mov