ProductApproval - Liquid Object Reference
On this page
Description
The ProductApproval object contains information about any approvals an Account has to purchase restricted Products.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Permitted_Restricted_Product__c Salesforce object. A theme writes it as product_approval.
| Liquid attribute | Salesforce field |
|---|---|
approved_quantity |
s_c__Approved_Quantity__c |
purchased_quantity |
s_c__Purchased_Quantity__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from product_approval.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
account |
Account | Returns the Account that this approval belongs to |
approval_status |
String | Returns the approval status of the current customer for this Product. One of: approved, completed, expired, pending, or none. |
approved_from |
Timestamp | Returns the timestamp that the approval starts |
approved_quantity |
Number | Returns the maximum quantity that can be purchased using this approval |
approved_until |
Timestamp | Returns the timestamp that the approval ends |
id |
String | Returns the unique id for this ProductApproval |
order_items |
List[OrderItem] | Returns a list of OrderItems that were purchased with this approval |
path |
String | Returns the url path for this approval |
pending_quantity |
Number | Returns the quantity that has already been purchased via a submitted Order |
product |
Product | Returns the product that this approval is for |
product_category |
ProductCategory | Returns the product category that this approval is for |
purchased_quantity |
Number | Returns the quantity that has already been purchased with a completed Order |
remaining_quantity |
Number | Returns the unused quantity that can still be purchased |
unlimited? |
Boolean | Returns true if the quantity is unlimited for this ProductApproval |
url |
String | Returns the complete url for this ProductApproval |
Available on
- Account - Liquid Object Reference —
product_approvals
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.