Skip to content

Commit e2a976e

Browse files
committed
Merge branch 'feat/product_last-modified-at' of https://github.com/adobe-rnd/helix-commerce-api into feat/product_last-modified-at
2 parents 78edc89 + d63a6f9 commit e2a976e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/templates/html/HTMLTemplate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ ${HTMLTemplate.metaName('urlKey', product.urlKey)}
129129
${HTMLTemplate.metaName('externalId', product.externalId)}
130130
${HTMLTemplate.metaName('addToCartAllowed', product.addToCartAllowed)}
131131
${HTMLTemplate.metaName('inStock', product.inStock ? 'true' : 'false')}
132+
${HTMLTemplate.metaName('lastModifiedAtCS', product.lastModifiedAt)}
132133
${HTMLTemplate.metaProperty('product:availability', product.inStock ? 'In stock' : 'Out of stock')}
133134
${HTMLTemplate.metaProperty('product:price.amount', product.prices?.final?.amount)}
134-
${HTMLTemplate.metaProperty('product:price.currency', product.prices?.final?.currency)}
135-
${HTMLTemplate.metaProperty('product:lastModifiedAt', product.lastModifiedAt)}`;
135+
${HTMLTemplate.metaProperty('product:price.currency', product.prices?.final?.currency)}`;
136136
}
137137

138138
/**

test/fixtures/post-deploy/bella-tank.html

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<meta name="externalId" content="5068">
2323
<meta name="addToCartAllowed" content="true">
2424
<meta name="inStock" content="true">
25+
<meta name="lastModifiedAtCS" content="2024-12-16T06:25:43.024Z">
2526
<meta property="product:availability" content="In stock">
2627
<meta property="product:price.amount" content="29">
2728
<meta property="product:price.currency" content="USD">

0 commit comments

Comments
 (0)