Internal Structure
Class ProductsQuery
ProductsQueryimport {ProductsQuery} from '@scandipwa/shopify-products/src/api/Products.query.js'Description: A general product and product-list query declaration. Read more: Query controller, TypedQuery
Namespace: ShopifyProducts/Api/Products/Query/ProductsQuery
Method _getProductFields
_getProductFieldsDescription: A function which returns an array of product fields. Read more: Extending Query controllers
Method getProductByHandleField
getProductByHandleFieldDescription: General product field getter (by handle) [returns node]
Method getProductsField
getProductsFieldDescription: General product list field getter [returns edges]
Function processProduct
processProductimport {processProduct} from '@scandipwa/shopify-products/src/api/Products.processor.js'Description: The single product processor. Returns void, instead it modifies the passed argument.
Namespace: ShopifyProducts/Api/Products/Processor/processProduct
🔮 Common extension point: Great place to add some "calculated" field into product
Function processProductByHandleResponse
processProductByHandleResponseDescription: The single product query response processor
Namespace: ShopifyProducts/Api/Products/Processor/processProductByHandleResponse
Function processProductsResponse
processProductsResponseDescription: The product-list query response processor (from edges and nodes creates an array of products)
Namespace: ShopifyProducts/Api/Products/Processor/processProductsResponse
Variable PAGINATED_PRODUCTS
PAGINATED_PRODUCTSDescription: A type of ProductsQuery associated with getProductsField function.
Usage examples:
Variable SINGLE_PRODUCT
SINGLE_PRODUCTDescription: A type of ProductsQuery associated with getProductByHandleField function.
Usage examples:
Class ProductCardComponent
ProductCardComponentDescription: The product card (preview) component
Namespace: ShopifyProducts/Component/ProductCard/Component/ProductCardComponent
Member sortedRenderMap
sortedRenderMapDescription: A list of render methods used by product card. Read more: SortedRenderMap
Class ProductCardContainer
ProductCardContainerDescription: The product card (preview) container, used to provide a product context to all children components
Namespace: ShopifyProducts/Component/ProductCard/Container/ProductCardContainer
Function ProductFallbackPage
ProductFallbackPageDescription: A component used as fallback while the product page is loading
Namespace: ShopifyProducts/Component/ProductFallbackPage/Index/ProductFallbackPage
Class ProductHeroComponent
ProductHeroComponentDescription: The product hero (summary) component (usually on the top of Product page)
Namespace: ShopifyProducts/Component/ProductHero/Component/ProductHeroComponent
Class ProductMediaComponent
ProductMediaComponentDescription: Product media (gallery) component
Namespace: ShopifyProducts/Component/ProductMedia/Component/ProductMediaComponent
Class ProductPageComponent
ProductPageComponentDescription: Product page component
Namespace: ShopifyProducts/Component/ProductPage/Component/ProductPageComponent
Member sortedRenderMap
sortedRenderMapDescription: The list of sections to be displayed on the product page. Read more: SortedRenderMap
Function ProductsFallbackPage
ProductsFallbackPageDescription: A component used as fallback while the product-list page is loading
Namespace: ShopifyProducts/Component/ProductsFallbackPage/Index/ProductsFallbackPage
Class ProductsPageComponent
ProductsPageComponentDescription: Product listing page component
Namespace: ShopifyProducts/Component/ProductsPage/Component/ProductsPageComponent
Class ProductsProvider
ProductsProviderDescription: The product context
Namespace: ShopifyProducts/Context/Products/Provider/ProductsProvider
Method getContextValue
getContextValueDescription: A product context value
🔮 Common extension point: Inject additional fields and methods into context
Last updated
Was this helpful?