GitHub

getShopifyRoutePath

Helper

import { getShopifyRoutePath } from '@daffodil/driver/shopify'

Generates a route path based on the Shopify resource type and handle.

function getShopifyRoutePath(
  type: string
  handle: string
): string

Parameters

Parametertype: string
Description

The Shopify resource type (COLLECTION, PRODUCT, PAGE, etc.)

Parameterhandle: string
Description

The resource handle/slug