@eaze/product-helpers

Product helpers for determining information about a given product

Usage no npm install needed!

<script type="module">
  import eazeProductHelpers from 'https://cdn.skypack.dev/@eaze/product-helpers';
</script>

README

Product-helpers Exports:

  • Product Type Ids && Product Subtype IDs

    • WARNING: all of these IDs have come from a production or development database, this means that any product additions or deletions, or any subtype/type additions or deletions in a production or development database have a good chance of breaking client side logic unless adding or removing these items are coordinated with the frontend the real fix for this solution will be endpoints from the backend where we can get the information we need to make these relationships.
  • Product Slug Types

  • transformCatalogItemToProduct()

  • catalogItemRoute()