shopify-taxonomy-ptbr
v1.1.1
Published
Shopify Taxonomy client in Brazillian Portuguese
Downloads
3
Readme
shopify-taxonomy-ptbr
shopify-taxonomy-ptbr
is a small client to get Shopify product categories aka taxonomy details in locale pt-BR
. Matched by ID, the data included is name
, full name
(Grandparent category > Parent category > Child category) as well as parent ID, when defined.
Install
yarn add shopify-taxonomy-ptbr
Usage
import taxonomy from "shopify-taxonomy-ptbr";
taxonomy.getCategory("ap-2"); // Returns taxonomy for animal products
taxonomy.getCategory("h"); // Throws error when ID is invalid/malformed
taxonomy.getCategory("hb-200"); // Returns null when category/taxonomy does not exist