mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 15:36:58 +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 { getMetaobject, getMetaobjectsByIds } from 'lib/shopify';
|
||||||
import { Product } from 'lib/shopify/types';
|
import { Product } from 'lib/shopify/types';
|
||||||
import { getSelectedProductVariant } from 'lib/utils';
|
import { getSelectedProductVariant } from 'lib/utils';
|
||||||
|
import kebabCase from 'lodash.kebabcase';
|
||||||
|
|
||||||
const AdditionalInformation = async ({
|
const AdditionalInformation = async ({
|
||||||
product,
|
product,
|
||||||
@ -16,7 +17,7 @@ const AdditionalInformation = async ({
|
|||||||
|
|
||||||
const pdpContent = await getMetaobject({
|
const pdpContent = await getMetaobject({
|
||||||
handle: {
|
handle: {
|
||||||
handle: `${selectedVariant.condition}-${product.productType}`.toLowerCase(),
|
handle: `${selectedVariant.condition}-${kebabCase(product.productType)}`.toLowerCase(),
|
||||||
type: 'pdp_content'
|
type: 'pdp_content'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user