mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
add support for transfer case content
Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
parent
915403b6c4
commit
0fb7d0d3e5
@ -2,6 +2,7 @@ import PageContent from 'components/page/page-content';
|
||||
import { getMetaobject, getMetaobjectsByIds } from 'lib/shopify';
|
||||
import { Product } from 'lib/shopify/types';
|
||||
import { getSelectedProductVariant } from 'lib/utils';
|
||||
import kebabCase from 'lodash.kebabcase';
|
||||
|
||||
const AdditionalInformation = async ({
|
||||
product,
|
||||
@ -16,7 +17,7 @@ const AdditionalInformation = async ({
|
||||
|
||||
const pdpContent = await getMetaobject({
|
||||
handle: {
|
||||
handle: `${selectedVariant.condition}-${product.productType}`.toLowerCase(),
|
||||
handle: `${selectedVariant.condition}-${kebabCase(product.productType)}`.toLowerCase(),
|
||||
type: 'pdp_content'
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user