Apps, credit and payment terms
App blocks and what needs no app
Everything in Using the B2B features and Customer states works without an app. The cart, product, featured product, line sheet and saved lists sections accept “Apps” blocks from apps that ship theme app blocks; with none installed nothing extra shows. The recommended product spot is under Buy buttons.
Credit and payment terms (optional, data you supply)
The theme shows credit and terms from metafields in the namespace credit and never decides credit itself. It reads the company’s metafields first, then the customer’s. Keys:
| Key | Meaning |
|---|---|
status |
hold, over_limit, near_limit or within. Anything else is ignored. |
amount |
Text: overdue balance (hold) or the limit (over limit). |
limit, available |
Text such as “$5,000.00”. |
terms |
Text such as “Net 30”. Shown in the Payment terms row and Account band. |
currency |
Text, such as “USD”. |
available_amount, limit_amount |
Numbers in major units (1240.00). The cart strip shows “Within limit, X available after this order”. Not shown when the currency differs from the cart’s. |
checked_on (company only, a date) |
Company data counts only when this date is set and at most “Credit data freshness window” days old (default 2). Older company data is ignored. |
Effects: with hold or over_limit the product page shows “Ordering paused” (Credit status block), the buy button pauses and the cart holds Checkout. A header chip shows the status. Request sample and Add to line sheet stay available. Metafield definitions must be readable by the storefront.
Something missing or unclear? Contact support at souk-theme@takisoft.net.