Skip to content

Commit e2d489d

Browse files
committed
fix: sort variant selections
1 parent e7afdcd commit e2d489d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/html/HTMLTemplate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ ${HTMLTemplate.metaProperty('product:price.currency', product.prices.final.curre
286286
<div>${v.inStock ? 'inStock' : ''}</div>
287287
${this.renderVariantPrices(v.prices)}
288288
<div>${this.renderVariantImages(v.images)}</div>
289-
<div>${v.selections.join(', ')}</div>
289+
<div>${(v.selections ?? []).sort().join(', ')}</div>
290290
</div>`).join('\n')}
291291
</div>`;
292292
}

0 commit comments

Comments
 (0)