ComponentPricing - Liquid Object Reference
On this page
Description
The ComponentPricing object represents special pricing for components when included in New Product Bundle. It allows for different pricing strategies and variable pricing options.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Component_Pricing__c Salesforce object. A theme writes it as component_pricing.
| Liquid attribute | Salesforce field |
|---|---|
deposit_amount |
s_c__Deposit_Amount__c |
earn_points |
s_c__Earn_Points__c |
sale_price |
s_c__Sale_Price__c |
unit_price |
s_c__Unit_Price__c |
variable_pricing_options |
s_c__Variable_Pricing_Options__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 component_pricing.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
anchor_product |
Product | Returns the anchor Product this pricing is specific to (if any) |
component_product |
Product | Returns the component Product this pricing applies to |
deposit_amount |
Number | Returns the deposit amount required for this component |
earn_points |
Number | Returns the earn points earned for purchasing this component |
enable_variable_pricing? |
Boolean | Returns true if variable pricing is enabled for this component |
id |
String | Returns the unique id of this ComponentPricing |
on_sale? |
Boolean | Returns true if this component is currently on sale |
sale_price |
Number | Returns the sale price for this component |
unit_price |
Number | Returns the base unit price for this component |
variable_pricing_options |
Map | Returns the variable pricing configuration options |
Available on
- ProductComponent - Liquid Object Reference —
component_pricing
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.