-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB-1027 - PXM/Studio dynamic variables #84
Open
johughes1204
wants to merge
9
commits into
main
Choose a base branch
from
DB-1027
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
aeee9b0
first draft
9161adf
first draft
98e4cbb
first draft
3337dd4
Merge branch 'main' into DB-1027
2b94765
first draft
b0fe228
Merge branch 'main' into DB-1027
8416d6c
first draft
e8d1a4a
first draft
2accb77
first draft
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
253 changes: 253 additions & 0 deletions
253
docs/studio/developers/eCommerce/pxm-dynamic-variables.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,253 @@ | ||
--- | ||
title: Dynamic Variables for Product Experience Manager | ||
nav_label: Dynamic Variables for Product Experience Manager | ||
sidebar_position: 110 | ||
--- | ||
|
||
You can dynamically set up your product detail (PDP) and product listing pages (PLP) using data from Product Experience Manager. | ||
|
||
The following table describes how the attributes in Product Experience Manager map to the dynamic variables in Studio that you can use to populate your PDPs and PLPs. | ||
|
||
# Product Experience Manager Products | ||
|
||
The following tables describe how the Product Experience Manager product attributes map to Studio dynamic variables. For more information on Product Experience Manager product attributes, see [Create a Product](/docs/api/pxm/products/create-product). | ||
|
||
## Products | ||
|
||
Product Experience Manager products have the following attributes. For more information on Product Experience Manager product attributes, see [Create a Product](/docs/api/pxm/products/create-product). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
| --- |----------------------------------------------| | ||
| ID | {{product.id}} | | ||
| external_ref | {{product.attributes.external_ref}} | | ||
| name | {{product.attributes.name}} | | ||
| description | {{product.attributes.description}} | | ||
| slug | {{product.attributes.slug}} | | ||
| sku | {{product.attributes.sku}} | | ||
| status | {{product.attributes.status}} | | ||
| commodity_type | {{product.attributes.commodity_type}} | | ||
| upc_ean | {{product.attributes.upc_ean}} | | ||
| mpn | {{product.attributes.manufacturer_part_num}} | | ||
|
||
<!--- | ||
|
||
Not working right now | ||
|
||
### Locales | ||
|
||
Product Experience Manager supports localization of products. For more information on Product Experience Manager localization attributes, see [Create a Product](/docs/api/pxm/products/create-product). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|--------------------------------------| | ||
| property name | {{product.attributes.property_name}} | | ||
| name | {{product.attributes.name}} | | ||
| description | {{product.attributes.description}} | | ||
|
||
---> | ||
|
||
|
||
<!--- | ||
|
||
Waiting for the bug to be fixed that means a value can not be a list or an array | ||
|
||
### Tags | ||
|
||
You can use product tags to store or assign a key word against a product. The product tag can then be used to describe or label that product. For more information on Product Experience Manager tag attributes, see [Create a Product](/docs/api/pxm/products/create-product). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|----------------------------| | ||
| tags | {{product.attributes.tags}} | | ||
|
||
---> | ||
|
||
### Build Rules | ||
|
||
Product Experience Manager allows you to build a combination of child products associated with a product, based on build rules that you specify. For more information on Product Experience Manager variation attributes, see [Create a Product](/docs/api/pxm/products/create-product). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|------------------------------| | ||
| default | {{product.attributes.default}} | | ||
| include | {{product.attributes.include}} | | ||
| exclude | {{product.attributes.exclude}} | | ||
|
||
### Custom Inputs | ||
|
||
Product Experience Manager allows your shoppers to add custom text to a product when adding product items to a cart. For more information on Product Experience Manager custom attributes, see [Create a Product](/docs/api/pxm/products/create-product). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| property name | {{product.attributes.custom_inputs._<property_name>_}} where _<property_name>_ is the name for the custom text field that was specified when the product was [personalized](/docs/api/pxm/products/create-product#personalizing-products). | | ||
| name | {{product.attributes.<property_name>.name}} | | ||
| validation_rules | {{product.attributes.<property_name>.validation_rules.length}} | | ||
| type | {{product.attributes.type}} | | ||
| options | {{product.attributes.options}} | | ||
| max_length | {{product.attributes.max_length}} | | ||
| required | {{product.attributes.required}} | | ||
|
||
### Components | ||
|
||
Product Experience Manager allows you to create and manage bundles. A bundle is a purchasable product, comprising of one or more products that you want to sell together. You can create multiple components within a bundle. Each component must have at least one or more options. Each option is a product and a quantity. For more information on Product Experience Manager bundle attributes, see [Create a Product](/docs/api/pxm/products/create-product). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|---------------------------------------| | ||
| property name | {{product.attributes.property_name}} | | ||
| name | {{product.attributes.name}} | | ||
| min | {{product.attributes.validationrules}} | | ||
| max | {{product.attributes.type}} | | ||
| sort_order | {{product.attributes.options}} | | ||
|
||
#### Options | ||
|
||
Each bundle component must have at least one or more options. Each option is a product and a quantity. For more information on Product Experience Manager bundle attributes, see [Create a Product](/docs/api/pxm/products/create-product). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|----------------------------------| | ||
| id | {{product.attributes.id}} | | ||
| type | {{product.attributes.type}} | | ||
| quantity | {{product.attributes.quantity}} | | ||
| sort_order | {{product.attributes.sort_order}} | | ||
| default | {{product.attributes.default}} | | ||
|
||
## Product Experience Manager Hierarchies | ||
|
||
The following tables describe how the Product Experience Manager hierarchy and node attributes map to Studio dynamic variables. For more information on Product Experience Manager hierarchy attributes, see [Create a hierarchy](/docs/api/pxm/products/create-hierarchy). | ||
|
||
### Hierarchies | ||
|
||
Product Experience Manager hierarchies have the following attributes. For more information on Product Experience Manager hierarchy attributes, see [Create a hierarchy](/docs/api/pxm/products/create-hierarchy). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|----------------|-------------------------------------| | ||
| ID | {{category.id}} | | ||
| name | {{category.attributes.name}} | | ||
| description | {{category.attributes.description}} | | ||
| slug | {{category.attributes.slug}} | | ||
|
||
<!--- | ||
|
||
Not working right now | ||
|
||
### Locales | ||
|
||
Product Experience Manager supports localization of hierarchies. For more information on Product Experience Manager hierarchy localization attributes, see [Create a hierarchy](/docs/api/pxm/products/create-hierarchy). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|---------------------------------------| | ||
| property name | {{category.attributes.property_name}} | | ||
| name | {{category.attributes.name}} | | ||
| description | {{category.attributes.description}} | | ||
|
||
---> | ||
|
||
### Relationships | ||
|
||
A hierarchy can have parent and child nodes. Relationships allow you to move between requests and includes links to the child nodes associated with a hierarchy or node. For more information on Product Experience Manager hierarchy relationship attributes, see [Create a hierarchy](/docs/api/pxm/products/create-hierarchy). | ||
|
||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|-----------------------------------------| | ||
| data | {{category.attributes.data}} | | ||
| related | {{category.attributes.related}} | | ||
|
||
### Meta | ||
|
||
A hierarchy can have meta data. For more information on Product Experience Manager hierarchy meta data, see [Create a hierarchy](/docs/api/pxm/products/create-hierarchy). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|------------------------------------| | ||
| created_at | {{category.attributes.created_at}} | | ||
| updated_at | {{category.attributes.updated_at}} | | ||
| owner | {{category.attributes.owner}} | | ||
|
||
### Nodes | ||
|
||
A hierarchy can have parent and child nodes. For more information on Product Experience Manager hierarchy parent/child nodes attributes, see [Create a node](/docs/api/pxm/products/create-node). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|----------------|--------------------------------------| | ||
| id| {{node.id}} | | ||
| name | {{node.attributes.name}} | | ||
| description | {{node.attributes.description}} | | ||
| slug | {{node.attributes.slug}} | | ||
| curated_products | {{node.attributes.curated_products}} | | ||
|
||
<!--- | ||
|
||
Not supported yet | ||
|
||
### Locales | ||
|
||
Product Experience Manager supports localization of nodes. For more information on Product Experience Manager node localization attributes, see [Create a node](/docs/api/pxm/products/create-node). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|-----------------------------------| | ||
| property name | {{node.attributes.property_name}} | | ||
| name | {{node.attributes.name}} | | ||
| description | {{node.attributes.description}} | | ||
|
||
---> | ||
|
||
### Relationships | ||
|
||
A hierarchy can have parent and child nodes. Relationships allow you to move between requests and includes links to the child/parent nodes and products associated with a node. For more information on Product Experience Manager node relationship attributes, see [Create a hierarchy](/docs/api/pxm/products/create-hierarchy). | ||
|
||
#### Children | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|-----------------------------| | ||
| data | {{node.attributes.data}} | | ||
| related | {{node.attributes.related}} | | ||
|
||
#### Parent | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|-----------------------------| | ||
| data | {{node.attributes.data}} | | ||
| related | {{node.attributes.related}} | | ||
|
||
#### Products | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|-----------------------------| | ||
| data | {{node.attributes.data}} | | ||
| related | {{node.attributes.related}} | | ||
|
||
### Meta | ||
|
||
A hierarchy can have meta data. For more information on Product Experience Manager hierarchy meta data, see [Create a hierarchy](/docs/api/pxm/products/create-hierarchy). | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|---------------------------------| | ||
| created_at | {{node.attributes.created_at}} | | ||
| updated_at | {{node.attributes.updated_at}} | | ||
| parent_name | {{node.attributes.parent_name}} | | ||
| owner | {{node.attributes.owner}} | | ||
|
||
## Contacts | ||
|
||
Studio identifies a person when a form is a submitted. If you configure a form in Studio that is then submitted by a shopper on your site, you can use the following dynamic variables to populate other pages on your site with the shoppers contact details. | ||
|
||
| PXM Attribute | Studio Dynamic Variable | | ||
|---------------|--------------------------| | ||
| id | {{contact.id}} | | ||
| type | {{contact.type}} | | ||
| persona | {{contact.persona}} | | ||
| first_name | {{contact.first_name}} | | ||
| last_name | {{contact.last_name}} | | ||
| title | {{contact.title}} | | ||
| email | {{contact.email}} | | ||
| phone | {{contact.phone}} | | ||
| organization | {{contact.organization}} | | ||
| website | {{contact.website}} | | ||
| address1 | {{contact.address1}} | | ||
| address2 | {{contact.address2}} | | ||
| city | {{contact.city}} | | ||
| state | {{contact.state}} | | ||
| zip | {{contact.zip}} | | ||
| country | {{contact.country}} | | ||
| params | {{contact.params}} | | ||
|
||
|
||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These names don't seem to match up