ampsalesfunnels-products
v1.1.3
Published
https://ampsalesfunnels.com - lib to handle products - Build blazingly fast sales funnels, learn coding, and get rich
Downloads
3
Readme
ampsalesfunnels-products
Functions
Typedefs
getProducts(dirname) ⇒ Array.<Product>
Kind: global function
| Param | Type | Description | | --- | --- | --- | | dirname | string | path to the directory containing the products.json file |
getProduct(sku, dirname) ⇒ Product
Kind: global function
Returns: Product - the product
| Param | Type | Description | | --- | --- | --- | | sku | string | unique identifier for the product (stock-keeping unit) | | dirname | string | path to the directory containing the products.json file |
ProductType : "PHYSICAL" | "DIGITAL" | "SERVICE"
Kind: global typedef
Product : object
Kind: global typedef
Properties
| Name | Type | Description | | --- | --- | --- | | sku | string | unique identifier for the product (stock-keeping unit) | | currency_code | string | the code for the currency to pay in, e.g. USD | | amount | number | price of the product | | name | string | product name | | [description] | string | product description (optional) | | type | ProductType | the type of product: PHYSICAL | DIGITAL | SERVICE | | [image_url] | string | Url of product image | | [home_url] | string | Url of the product page | | [email] | string | Name of the Mailgen email file for the product | | [email_subject] | string | Email subject for the product |
© 2021 Dellariva Solutions