View Source ExCatalog (ex_catalog v1.5.2)
Documentation for ExCatalog
.
Link to this section Summary
Functions
Change the status active or disabled, this controls which products the user can see, (by default only the active products are displayed)
List all the categories (the index).
List product with preloads by sku and optional currency conversion.
List all products with preloads and optional currency conversion..
List product with preloads by category and optional currency conversion.
List version.
Link to this section Functions
Change the status active or disabled, this controls which products the user can see, (by default only the active products are displayed)
examples
Examples
iex> id = "1111-2222-3333-4444"
iex> ExCatalog.active(:category, id)
iex> ExCatalog.active(:product, id)
index(limit \\ 25, metadata \\ nil, cursor \\ nil, deleted \\ false)
View SourceList all the categories (the index).
examples
Examples
iex> ExCatalog.index(25)
List product with preloads by sku and optional currency conversion.
examples
Examples
iex> ExCatalog.product("2242", :USD)
List all products with preloads and optional currency conversion..
examples
Examples
iex> ExCatalog.products(25)
iex> ExCatalog.products(25,:USD)
products_by_category(slug, limit \\ 25, currency \\ :USD, deleted \\ false)
View SourceList product with preloads by category and optional currency conversion.
examples
Examples
iex> ExCatalog.products_by_category("test_category", "2242", :USD)
products_by_category(slug, limit, metadata, cursor, currency, deleted)
View SourceList version.
examples
Examples
iex> ExCatalog.version()