ilusm.dev

ecom

E-commerce: cart, inventory, pricing, orders, products, checkout.

Load with: use ecom

Quick example

use ecom

result = ecmne(10, "value")
prn(result)

Functions

Store

ecmne(nm, cur)

Creates a new instance. Takes nm, cur.

Products

ecmp1(sku, nm, pr)

Performs the operation. Takes sku, nm, pr.

ecmpr(st, p)

Processes or prints. Takes st, p.

ecmp0(st, sku)

Performs the operation. Takes st, sku.

ecmp2(st, sku)

Performs the operation. Takes st, sku.

Inventory

ecmn3(st, sku, qty)

Performs the operation. Takes st, sku, qty.

ecmn0(st, sku)

Performs the operation. Takes st, sku.

ecmnv(st, sku, delta)

Performs the operation. Takes st, sku, delta.

ecmn2(st, sku, qty)

Performs the operation. Takes st, sku, qty.

ecmn1(st, sku, qty)

Performs the operation. Takes st, sku, qty.

Categories

ecmc9(id, nm, par)

Performs the operation. Takes id, nm, par.

ecmct(st, c)

Performs the operation. Takes st, c.

Cart

ecmc6()

Performs the operation.

ecomd()

Performs the operation.

ecmc0(cart, sku, qty, opts)

Performs the operation. Takes cart, sku, qty, opts.

ecmc7(cart, idx)

Performs the operation. Takes cart, idx.

ecmc5(cart, idx, qty)

Performs the operation. Takes cart, idx, qty.

ecmc1(cart)

Performs the operation. Takes cart.

ecmc2(cart)

Performs the operation. Takes cart.

ecmcr(cart, addr, meth)

Creates a new instance. Takes cart, addr, meth.

ecmcl(cart, addr, meth)

Closes or clears. Takes cart, addr, meth.

ecmc3(cart, st)

Performs the operation. Takes cart, st.

ecmc4(cart, st)

Performs the operation. Takes cart, st.

Coupons/Discounts

ecmca(cd, ty, val)

Performs the operation. Takes cd, ty, val.

ecmcp(cpns, sub)

Performs the operation. Takes cpns, sub.

Checkout

ecmch(cart, cust, st)

Checks a condition. Takes cart, cust, st.

Payment

ecmp3(ord, meth)

Performs the operation. Takes ord, meth.

ecmpy(pay, proc)

Performs the operation. Takes pay, proc.

Order management

ecrdp(st, id, up)

Performs the operation. Takes st, id, up.

ecmr1(st, id, trk)

Performs the operation. Takes st, id, trk.

ecmr0(st, id)

Performs the operation. Takes st, id.

ecmrd(st, id, amt)

Reads data. Takes st, id, amt.

Customer management

ecmc8(email)

Performs the operation. Takes email.

ecmcs(st, c)

Performs the operation. Takes st, c.

Wishlist

ecmwl(cust, sku)

Performs the operation. Takes cust, sku.

ecmw0(cust, sku)

Performs the operation. Takes cust, sku.

Reviews

ecmrv(sku, cust, rt, txt)

Performs the operation. Takes sku, cust, rt, txt.

Search/Filter

ecmsr(st, q, flt)

Performs the operation. Takes st, q, flt.

Recommendations

ecmrc(st, cust, ty)

Performs the operation. Takes st, cust, ty.

Analytics

ecmst(st, per)

Sets a value or starts a process. Takes st, per.

Export/Import

ecm2j(st)

Performs the operation. Takes st.

ecmfr(j)

Creates from another format. Takes j.

Abandoned cart recovery

ecbnd(st)

Performs the operation. Takes st.

Subscription/Recurring

ecms0(cust, items, per)

Performs the operation. Takes cust, items, per.

ecmsb(st, sub)

Performs the operation. Takes st, sub.

Notes

  • E-commerce helpers - cart, orders, pricing, discount logic.