Internal Structure
Class ProductsQuery
ProductsQuery
Description: A general product and product-list query declaration. Read more: Query controller, TypedQuery
Namespace: ShopifyProducts/Api/Products/Query/ProductsQuery
Method _getProductFields
_getProductFields
Description: A function which returns an array of product fields. Read more: Extending Query controllers
Method getProductByHandleField
getProductByHandleField
Description: General product field getter (by handle) [returns node]
Method getProductsField
getProductsField
Description: General product list field getter [returns edges]
Function processProduct
processProduct
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
processProductByHandleResponse
Description: The single product query response processor
Namespace: ShopifyProducts/Api/Products/Processor/processProductByHandleResponse
Function processProductsResponse
processProductsResponse
Description: 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_PRODUCTS
Description: A type of ProductsQuery
associated with getProductsField
function.
Usage examples:
Variable SINGLE_PRODUCT
SINGLE_PRODUCT
Description: A type of ProductsQuery
associated with getProductByHandleField
function.
Usage examples:
Class ProductCardComponent
ProductCardComponent
Description: The product card (preview) component
Namespace: ShopifyProducts/Component/ProductCard/Component/ProductCardComponent
Member sortedRenderMap
sortedRenderMap
Description: A list of render methods used by product card. Read more: SortedRenderMap
Class ProductCardContainer
ProductCardContainer
Description: The product card (preview) container, used to provide a product context to all children components
Namespace: ShopifyProducts/Component/ProductCard/Container/ProductCardContainer
Function ProductFallbackPage
ProductFallbackPage
Description: A component used as fallback while the product page is loading
Namespace: ShopifyProducts/Component/ProductFallbackPage/Index/ProductFallbackPage
Class ProductHeroComponent
ProductHeroComponent
Description: The product hero (summary) component (usually on the top of Product page)
Namespace: ShopifyProducts/Component/ProductHero/Component/ProductHeroComponent
Class ProductMediaComponent
ProductMediaComponent
Description: Product media (gallery) component
Namespace: ShopifyProducts/Component/ProductMedia/Component/ProductMediaComponent
Class ProductPageComponent
ProductPageComponent
Description: Product page component
Namespace: ShopifyProducts/Component/ProductPage/Component/ProductPageComponent
Member sortedRenderMap
sortedRenderMap
Description: The list of sections to be displayed on the product page. Read more: SortedRenderMap
Function ProductsFallbackPage
ProductsFallbackPage
Description: A component used as fallback while the product-list page is loading
Namespace: ShopifyProducts/Component/ProductsFallbackPage/Index/ProductsFallbackPage
Class ProductsPageComponent
ProductsPageComponent
Description: Product listing page component
Namespace: ShopifyProducts/Component/ProductsPage/Component/ProductsPageComponent
Class ProductsProvider
ProductsProvider
Description: The product context
Namespace: ShopifyProducts/Context/Products/Provider/ProductsProvider
Method getContextValue
getContextValue
Description: A product context value
🔮 Common extension point: Inject additional fields and methods into context
Last updated