mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
@@ -43,7 +43,11 @@ import {
|
||||
} from './queries/collection';
|
||||
import { getCustomerQuery } from './queries/customer';
|
||||
import { getMenuQuery } from './queries/menu';
|
||||
import { getMetaobjectQuery, getMetaobjectsQuery } from './queries/metaobject';
|
||||
import {
|
||||
getMetaobjectQuery,
|
||||
getMetaobjectsQuery,
|
||||
getOrderConfirmationQuery
|
||||
} from './queries/metaobject';
|
||||
import { getFileQuery, getImageQuery, getMetaobjectsByIdsQuery } from './queries/node';
|
||||
import getCustomerOrderQuery from './queries/order';
|
||||
import { getCustomerOrdersQuery } from './queries/orders';
|
||||
@@ -934,7 +938,7 @@ export async function getMetaobject({
|
||||
|
||||
export async function getOrderConfirmationContent(): Promise<OrderConfirmationContent> {
|
||||
const res = await shopifyFetch<ShopifyMetaobjectOperation>({
|
||||
query: getMetaobjectQuery,
|
||||
query: getOrderConfirmationQuery,
|
||||
variables: { handle: { handle: 'order-confirmation-pdf', type: 'order_confirmation_pdf' } }
|
||||
});
|
||||
|
||||
|
@@ -34,6 +34,21 @@ export const getMetaobjectQuery = /* GraphQL */ `
|
||||
... on Metaobject {
|
||||
id
|
||||
}
|
||||
}
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const getOrderConfirmationQuery = /* GraphQL */ `
|
||||
query getOrderConfirmation($handle: MetaobjectHandleInput) {
|
||||
metaobject(handle: $handle) {
|
||||
id
|
||||
type
|
||||
fields {
|
||||
reference {
|
||||
... on MediaImage {
|
||||
image {
|
||||
url
|
||||
|
Reference in New Issue
Block a user