diff --git a/blocks/product-details-custom/product-details-custom.js b/blocks/product-details-custom/product-details-custom.js index e9ae25826e..749072b3f5 100644 --- a/blocks/product-details-custom/product-details-custom.js +++ b/blocks/product-details-custom/product-details-custom.js @@ -23,7 +23,7 @@ async function getVariantDetails(variantIds, sku) { const result = await performCatalogServiceQuery( refineProductQuery, { - sku: sku.toUpperCase(), + sku, variantIds, }, ); @@ -57,9 +57,9 @@ async function setJsonLdProduct(product) { '@type': 'Brand', name: brand?.value, }, - url: new URL(`/products/${urlKey}/${sku.toLowerCase()}`, window.location), + url: new URL(`/products/${urlKey}/${sku}`, window.location), sku, - '@id': new URL(`/products/${urlKey}/${sku.toLowerCase()}`, window.location), + '@id': new URL(`/products/${urlKey}/${sku}`, window.location), }, 'product'); } diff --git a/blocks/product-details/product-details.js b/blocks/product-details/product-details.js index 1ba5d5d409..d7391824e3 100644 --- a/blocks/product-details/product-details.js +++ b/blocks/product-details/product-details.js @@ -48,9 +48,9 @@ async function setJsonLdProduct(product) { '@type': 'Brand', name: brand?.value, }, - url: new URL(`/products/${urlKey}/${sku.toLowerCase()}`, window.location), + url: new URL(`/products/${urlKey}/${sku}`, window.location), sku, - '@id': new URL(`/products/${urlKey}/${sku.toLowerCase()}`, window.location), + '@id': new URL(`/products/${urlKey}/${sku}`, window.location), }, 'product'); } @@ -99,10 +99,6 @@ function setMetaTags(product) { createMetaTag('og:image:secure_url', metaImage, 'property'); createMetaTag('og:product:price:amount', price.value, 'property'); createMetaTag('og:product:price:currency', price.currency, 'property'); - - createMetaTag('twitter:card', product.shortDescription, 'name'); - createMetaTag('twitter:title', product.metaTitle, 'name'); - createMetaTag('twitter:image', metaImage, 'name'); } export default async function decorate(block) { diff --git a/blocks/product-list-page-custom/ProductList.js b/blocks/product-list-page-custom/ProductList.js index 5fa1c33ab8..2b4b812cac 100644 --- a/blocks/product-list-page-custom/ProductList.js +++ b/blocks/product-list-page-custom/ProductList.js @@ -79,12 +79,12 @@ class ProductCard extends Component { return html`