From e14664ee8ceb7647d97726a9e865de02ca399197 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Wed, 17 Apr 2024 11:26:01 +0200
Subject: [PATCH 01/29] Update personalization-variables.md
---
Publisher/en/personalization-variables.md | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index 8183ae263..847d406d4 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -141,6 +141,15 @@ The {$mailing} object has more properties, en contains some mailing settings:
* **{$mailing.snapshot.created}**: time when a snapshot of the document was created (YYYY-MM-DD hh:mm::ss format)
* **{$mailing.snapshot.subject}**: mailing subject line
+## Integrations
+
+You can use information from your integration in smarty. The available variables depend on the integration that you use.
+You can use the nickname of your integration as the variable name:
+
+ {$integrationNickname}
+
+For a full list of available variables for your integration see [Integration properties](./personalization-integration-variables).
+
## Extra personalization variables
When you're editing a template, you can add extra personalization variables.
From cc8b624c5490876425316f522885051d9fd65a95 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Wed, 17 Apr 2024 11:26:48 +0200
Subject: [PATCH 02/29] Create personalization-integration-variables
---
Publisher/en/personalization-integration-variables | 1 +
1 file changed, 1 insertion(+)
create mode 100644 Publisher/en/personalization-integration-variables
diff --git a/Publisher/en/personalization-integration-variables b/Publisher/en/personalization-integration-variables
new file mode 100644
index 000000000..2992576be
--- /dev/null
+++ b/Publisher/en/personalization-integration-variables
@@ -0,0 +1 @@
+# Integration variables
From f7243f039d5ec916f118b8e5397df1f3c492a18d Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Wed, 17 Apr 2024 11:28:19 +0200
Subject: [PATCH 03/29] Update and rename personalization-integration-variables
to personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables | 1 -
Publisher/en/personalization-integration-variables.md | 5 +++++
2 files changed, 5 insertions(+), 1 deletion(-)
delete mode 100644 Publisher/en/personalization-integration-variables
create mode 100644 Publisher/en/personalization-integration-variables.md
diff --git a/Publisher/en/personalization-integration-variables b/Publisher/en/personalization-integration-variables
deleted file mode 100644
index 2992576be..000000000
--- a/Publisher/en/personalization-integration-variables
+++ /dev/null
@@ -1 +0,0 @@
-# Integration variables
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
new file mode 100644
index 000000000..991338d69
--- /dev/null
+++ b/Publisher/en/personalization-integration-variables.md
@@ -0,0 +1,5 @@
+# Personalization tntegration variables
+
+This is a list of all the available personalization variables per integration
+
+## Magento 2
From 6c9b4c24e71d5891a5e755b1b82ff19c2cdab73c Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Wed, 17 Apr 2024 11:38:10 +0200
Subject: [PATCH 04/29] Add personalization integration variables document
---
.../en/personalization-integration-variables.md | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 991338d69..c4dfaa803 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -1,5 +1,14 @@
-# Personalization tntegration variables
+# Personalization integration variables
-This is a list of all the available personalization variables per integration
+This is a list of all the available personalization variables per integration.
## Magento 2
+
+You can see which properties are available on each variable by referencing the [Magento API documentation](https://developer.adobe.com/commerce/webapi/rest/quick-reference/)
+
+* **{$nickname.order.orderID}**: fetch an order by its ID
+* **{$nickname.orders}**: all the orders in the webshop
+* **{$nickname.product.sku}**: fetch a product by its SKU
+* **{$nickname.products}**: all the products in the webshop
+* **{$nickname.cart.cartID}**: fetch a cart by its ID
+* **{$nickname.carts}**: all the carts in the webshop
\ No newline at end of file
From 311d2253a56759f03c611a0bcf5ce7ecae5ebca0 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Wed, 17 Apr 2024 11:44:28 +0200
Subject: [PATCH 05/29] change text slightly
---
Publisher/en/personalization-variables.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index 847d406d4..30dcf58ba 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -143,8 +143,8 @@ The {$mailing} object has more properties, en contains some mailing settings:
## Integrations
-You can use information from your integration in smarty. The available variables depend on the integration that you use.
-You can use the nickname of your integration as the variable name:
+You can use information from your integration in a template. The available variables depend on the integration that you use.
+The nickname of your integration is the variable name:
{$integrationNickname}
From 0575885a17fa0c694d36d699cc3670a73d41527c Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 11:53:11 +0200
Subject: [PATCH 06/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index c4dfaa803..6a7ee73de 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -7,8 +7,7 @@ This is a list of all the available personalization variables per integration.
You can see which properties are available on each variable by referencing the [Magento API documentation](https://developer.adobe.com/commerce/webapi/rest/quick-reference/)
* **{$nickname.order.orderID}**: fetch an order by its ID
-* **{$nickname.orders}**: all the orders in the webshop
+* **{$nickname.order.orderID.items[].product}**: fetch the product from the order item
* **{$nickname.product.sku}**: fetch a product by its SKU
-* **{$nickname.products}**: all the products in the webshop
* **{$nickname.cart.cartID}**: fetch a cart by its ID
-* **{$nickname.carts}**: all the carts in the webshop
\ No newline at end of file
+* **{$nickname.cart.cartID.items[].product}**: fetch the product from the cart item
From 61b12c32ca7cea038c29e3712b6f1f6c8895fe29 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 11:54:16 +0200
Subject: [PATCH 07/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 6a7ee73de..6e6cf62fd 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -1,6 +1,6 @@
-# Personalization integration variables
+# Personalization for Native integration variables
-This is a list of all the available personalization variables per integration.
+This is a list of all the available personalization variables per native integration.
## Magento 2
From 4d154313ad6a5763c8a52c46cd67156b82caa0d8 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 11:54:59 +0200
Subject: [PATCH 08/29] Update personalization-variables.md
---
Publisher/en/personalization-variables.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index 30dcf58ba..642fb995e 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -141,14 +141,14 @@ The {$mailing} object has more properties, en contains some mailing settings:
* **{$mailing.snapshot.created}**: time when a snapshot of the document was created (YYYY-MM-DD hh:mm::ss format)
* **{$mailing.snapshot.subject}**: mailing subject line
-## Integrations
+## Native integrations
-You can use information from your integration in a template. The available variables depend on the integration that you use.
-The nickname of your integration is the variable name:
+You can use information from your native integration in a template. The available variables depend on the native integration that you use.
+The nickname of your native integration is the variable name:
{$integrationNickname}
-For a full list of available variables for your integration see [Integration properties](./personalization-integration-variables).
+For a full list of available variables for your integration see [Native integration properties](./personalization-integration-variables).
## Extra personalization variables
From 9a39c9202a973efa2ee5da22d22435c5579f18b2 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 11:58:13 +0200
Subject: [PATCH 09/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 6e6cf62fd..1ea5d6bc8 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -11,3 +11,11 @@ You can see which properties are available on each variable by referencing the [
* **{$nickname.product.sku}**: fetch a product by its SKU
* **{$nickname.cart.cartID}**: fetch a cart by its ID
* **{$nickname.cart.cartID.items[].product}**: fetch the product from the cart item
+
+### Foreach properties
+
+The following properties can be used in a foreach.
+
+* **{$nickname.products}**: can be used to loop over all the products in the webshop
+* **{$nickname.orders}**: can be used to loop over all the orders in the webshop
+* **{$nickname.carts}**: can be used to loop over all the carts in the webshop
From 5252f8555e1a57b39dd259b92d649b8c359e2e74 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 12:02:59 +0200
Subject: [PATCH 10/29] Update personalization.md
---
Publisher/en/personalization.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index 68841b01b..1ae02f075 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -89,6 +89,14 @@ If there are subprofiles
If there aren't’ any subprofiles
{/foreach}
```
+You can also loop over certain variables in a native integration.
+Here you can also add filters using the "filter", order using the "orderby" and limit the amount of items using the "limit" attribute.
+
+```text
+{foreach from=$nickname.products|filter:"price":"<":15|orderby:"price"|limit:1 item="product"}
+{$product.name}
+{/foreach}
+```
## Variables
From 8bc69d9ac9685bbfd9ef7163d0412c6b0c2919ad Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 12:03:52 +0200
Subject: [PATCH 11/29] Update personalization.md
---
Publisher/en/personalization.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index 1ae02f075..292a8b031 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -90,7 +90,10 @@ If there aren't’ any subprofiles
{/foreach}
```
You can also loop over certain variables in a native integration.
-Here you can also add filters using the "filter", order using the "orderby" and limit the amount of items using the "limit" attribute.
+Here you can also:
+* add filters using the "filter" attribute
+* order using the "orderby" attribute
+* limit the amount of items using the "limit" attribute
```text
{foreach from=$nickname.products|filter:"price":"<":15|orderby:"price"|limit:1 item="product"}
From f0450d67a9beea19e8cd868ea25c41ba2479c192 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 12:04:24 +0200
Subject: [PATCH 12/29] Update personalization.md
---
Publisher/en/personalization.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index 292a8b031..1f509f02c 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -89,6 +89,8 @@ If there are subprofiles
If there aren't’ any subprofiles
{/foreach}
```
+#### Native integrations
+
You can also loop over certain variables in a native integration.
Here you can also:
* add filters using the "filter" attribute
From 685e00b13cf134ad662d05f7bd14e9c6bc122120 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 12:05:10 +0200
Subject: [PATCH 13/29] Update personalization.md
---
Publisher/en/personalization.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index 1f509f02c..b6056b74b 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -91,8 +91,8 @@ If there aren't’ any subprofiles
```
#### Native integrations
-You can also loop over certain variables in a native integration.
-Here you can also:
+You can also loop over certain variables in a native integration.
+Available modifiers are:
* add filters using the "filter" attribute
* order using the "orderby" attribute
* limit the amount of items using the "limit" attribute
From 88fdeeba469c734df55384515211e1019d074a9a Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 12:06:39 +0200
Subject: [PATCH 14/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 1ea5d6bc8..7cd6499ed 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -14,7 +14,7 @@ You can see which properties are available on each variable by referencing the [
### Foreach properties
-The following properties can be used in a foreach.
+The following properties can be used in a foreach. You can find an [example usage here](./personalization#)
* **{$nickname.products}**: can be used to loop over all the products in the webshop
* **{$nickname.orders}**: can be used to loop over all the orders in the webshop
From 704e1536cf8265f2d0c7b9cee709d12eb30e5e28 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 12:07:04 +0200
Subject: [PATCH 15/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 7cd6499ed..3cdf9854c 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -14,7 +14,7 @@ You can see which properties are available on each variable by referencing the [
### Foreach properties
-The following properties can be used in a foreach. You can find an [example usage here](./personalization#)
+The following properties can be used in a foreach. You can find an [example usage here](./personalization#native-integrations)
* **{$nickname.products}**: can be used to loop over all the products in the webshop
* **{$nickname.orders}**: can be used to loop over all the orders in the webshop
From 9f43de97c20cbee628b9bbed0584e707a83d9b02 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 12:08:04 +0200
Subject: [PATCH 16/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 3cdf9854c..b2d386fc8 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -14,7 +14,7 @@ You can see which properties are available on each variable by referencing the [
### Foreach properties
-The following properties can be used in a foreach. You can find an [example usage here](./personalization#native-integrations)
+The following properties can be used in a foreach. You can find an [example on how to use them here](./personalization#native-integrations)
* **{$nickname.products}**: can be used to loop over all the products in the webshop
* **{$nickname.orders}**: can be used to loop over all the orders in the webshop
From acabbfecffb54cc6a6b7238828ea32a721af6fb5 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 13:02:01 +0200
Subject: [PATCH 17/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index b2d386fc8..de16eb55b 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -7,9 +7,11 @@ This is a list of all the available personalization variables per native integra
You can see which properties are available on each variable by referencing the [Magento API documentation](https://developer.adobe.com/commerce/webapi/rest/quick-reference/)
* **{$nickname.order.orderID}**: fetch an order by its ID
+* **{$nickname.order.orderID.customer}**: fetch the customer for this order
* **{$nickname.order.orderID.items[].product}**: fetch the product from the order item
* **{$nickname.product.sku}**: fetch a product by its SKU
* **{$nickname.cart.cartID}**: fetch a cart by its ID
+* **{$nickname.cart.cartID.customer}**: fetch the customer for this cart
* **{$nickname.cart.cartID.items[].product}**: fetch the product from the cart item
### Foreach properties
From 8d9403002194490fcc49c29621e84c63ccd351a7 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 13:02:17 +0200
Subject: [PATCH 18/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index de16eb55b..926aa44ac 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -16,7 +16,7 @@ You can see which properties are available on each variable by referencing the [
### Foreach properties
-The following properties can be used in a foreach. You can find an [example on how to use them here](./personalization#native-integrations)
+The following properties can be used in a foreach. You can find an [example on how to use them here](./personalization#native-integrations).
* **{$nickname.products}**: can be used to loop over all the products in the webshop
* **{$nickname.orders}**: can be used to loop over all the orders in the webshop
From 70062bf53b3162d6619ee8596292c39ad6d258eb Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 13:02:33 +0200
Subject: [PATCH 19/29] Update personalization-integration-variables.md
---
Publisher/en/personalization-integration-variables.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 926aa44ac..2c3882eb1 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -14,7 +14,7 @@ You can see which properties are available on each variable by referencing the [
* **{$nickname.cart.cartID.customer}**: fetch the customer for this cart
* **{$nickname.cart.cartID.items[].product}**: fetch the product from the cart item
-### Foreach properties
+### Foreach-able properties
The following properties can be used in a foreach. You can find an [example on how to use them here](./personalization#native-integrations).
From 66fa03f594b53d64cea20047f62857e9ebbc047c Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 13:03:09 +0200
Subject: [PATCH 20/29] Update personalization.md
---
Publisher/en/personalization.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index b6056b74b..2b8d275fa 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -91,7 +91,7 @@ If there aren't’ any subprofiles
```
#### Native integrations
-You can also loop over certain variables in a native integration.
+You can loop over certain variables in a native integration.
Available modifiers are:
* add filters using the "filter" attribute
* order using the "orderby" attribute
From c47da095c8f37eb64b3b6a7b772d519718216888 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 11:37:30 +0000
Subject: [PATCH 21/29] updates
---
.../personalization-integration-variables.md | 2 +-
Publisher/en/personalization.md | 22 ++++++++++++++++---
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 2c3882eb1..70a4b4b95 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -14,7 +14,7 @@ You can see which properties are available on each variable by referencing the [
* **{$nickname.cart.cartID.customer}**: fetch the customer for this cart
* **{$nickname.cart.cartID.items[].product}**: fetch the product from the cart item
-### Foreach-able properties
+### Iterable properties
The following properties can be used in a foreach. You can find an [example on how to use them here](./personalization#native-integrations).
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index 2b8d275fa..98b0d9149 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -93,9 +93,9 @@ If there aren't’ any subprofiles
You can loop over certain variables in a native integration.
Available modifiers are:
-* add filters using the "filter" attribute
-* order using the "orderby" attribute
-* limit the amount of items using the "limit" attribute
+* add filters using the "filter" modifier
+* order using the "orderby" modifier
+* limit the amount of items using the "limit" modifier
```text
{foreach from=$nickname.products|filter:"price":"<":15|orderby:"price"|limit:1 item="product"}
@@ -103,6 +103,22 @@ Available modifiers are:
{/foreach}
```
+##### Filter modifier
+
+The filter modifier has several variations:
+
+* filter:"price":">":15 - checks if price is greater than 15
+* filter:"sku":"test" - if operator is omitted, we assume an 'equals' comparison
+* filter:"sku" - if value is also omitted, we do a notnull check
+
+##### Orderby modifier
+
+The orderby modifier can be used ascending or descending
+
+orderby:"price" - sorts by price, by default in an ascending direction
+orderby:"price":"desc" - sorts by price in an descending direction
+
+
## Variables
You can also use variables. This can be useful, for example, if you have created a template that suddenly has to use other database fields.
From 54418d1ec80a2dc05ee8e7bbb9eead73815f82fc Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 13:41:40 +0200
Subject: [PATCH 22/29] Update personalization.md
---
Publisher/en/personalization.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index 98b0d9149..fc6a2ac73 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -98,7 +98,7 @@ Available modifiers are:
* limit the amount of items using the "limit" modifier
```text
-{foreach from=$nickname.products|filter:"price":"<":15|orderby:"price"|limit:1 item="product"}
+{foreach from=$nickname.products|filter:"price":"<":15|orderby:"price"|limit:5 item="product"}
{$product.name}
{/foreach}
```
@@ -115,7 +115,7 @@ The filter modifier has several variations:
The orderby modifier can be used ascending or descending
-orderby:"price" - sorts by price, by default in an ascending direction
+orderby:"price" - sorts by price, by default in an ascending direction
orderby:"price":"desc" - sorts by price in an descending direction
From 673e322a16bbf353ce78575232b0ffd9bb83d1de Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 14:27:46 +0000
Subject: [PATCH 23/29] make italic
---
.../personalization-integration-variables.md | 20 +++++++++----------
Publisher/en/personalization-variables.md | 4 ++--
Publisher/en/personalization.md | 2 +-
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 70a4b4b95..eea8d5d04 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -6,18 +6,18 @@ This is a list of all the available personalization variables per native integra
You can see which properties are available on each variable by referencing the [Magento API documentation](https://developer.adobe.com/commerce/webapi/rest/quick-reference/)
-* **{$nickname.order.orderID}**: fetch an order by its ID
-* **{$nickname.order.orderID.customer}**: fetch the customer for this order
-* **{$nickname.order.orderID.items[].product}**: fetch the product from the order item
-* **{$nickname.product.sku}**: fetch a product by its SKU
-* **{$nickname.cart.cartID}**: fetch a cart by its ID
-* **{$nickname.cart.cartID.customer}**: fetch the customer for this cart
-* **{$nickname.cart.cartID.items[].product}**: fetch the product from the cart item
+* **{$*identifier*.order.*orderID*}**: fetch an order by its ID
+* **{$*identifier*.order.*orderID*.customer}**: fetch the customer for this order
+* **{$*identifier*.order.*orderID*.items[].product}**: fetch the product from the order item
+* **{$*identifier*.product.sku}**: fetch a product by its SKU
+* **{$*identifier*.cart.*cartID*}**: fetch a cart by its ID
+* **{$*identifier*.cart.*cartID*.customer}**: fetch the customer for this cart
+* **{$*identifier*.cart.*cartID*.items[].product}**: fetch the product from the cart item
### Iterable properties
The following properties can be used in a foreach. You can find an [example on how to use them here](./personalization#native-integrations).
-* **{$nickname.products}**: can be used to loop over all the products in the webshop
-* **{$nickname.orders}**: can be used to loop over all the orders in the webshop
-* **{$nickname.carts}**: can be used to loop over all the carts in the webshop
+* **{$*identifier*.products}**: can be used to loop over all the products in the webshop
+* **{$*identifier*.orders}**: can be used to loop over all the orders in the webshop
+* **{$*identifier*.carts}**: can be used to loop over all the carts in the webshop
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index 642fb995e..78cee1804 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -144,9 +144,9 @@ The {$mailing} object has more properties, en contains some mailing settings:
## Native integrations
You can use information from your native integration in a template. The available variables depend on the native integration that you use.
-The nickname of your native integration is the variable name:
+The identifier of your native integration is the variable name:
- {$integrationNickname}
+ {$*integrationIdentifier*}
For a full list of available variables for your integration see [Native integration properties](./personalization-integration-variables).
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index fc6a2ac73..12aacf726 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -98,7 +98,7 @@ Available modifiers are:
* limit the amount of items using the "limit" modifier
```text
-{foreach from=$nickname.products|filter:"price":"<":15|orderby:"price"|limit:5 item="product"}
+{foreach from=$*identifier*.products|filter:"price":"<":15|orderby:"price"|limit:5 item="product"}
{$product.name}
{/foreach}
```
From c948c5eae44404c1e4d442316ed8a27d6f907b74 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 14:31:48 +0000
Subject: [PATCH 24/29] try bold
---
.../en/personalization-integration-variables.md | 14 +++++++-------
Publisher/en/personalization-variables.md | 4 +++-
Publisher/en/personalization.md | 4 ++--
3 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index eea8d5d04..86ed21a57 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -6,13 +6,13 @@ This is a list of all the available personalization variables per native integra
You can see which properties are available on each variable by referencing the [Magento API documentation](https://developer.adobe.com/commerce/webapi/rest/quick-reference/)
-* **{$*identifier*.order.*orderID*}**: fetch an order by its ID
-* **{$*identifier*.order.*orderID*.customer}**: fetch the customer for this order
-* **{$*identifier*.order.*orderID*.items[].product}**: fetch the product from the order item
-* **{$*identifier*.product.sku}**: fetch a product by its SKU
-* **{$*identifier*.cart.*cartID*}**: fetch a cart by its ID
-* **{$*identifier*.cart.*cartID*.customer}**: fetch the customer for this cart
-* **{$*identifier*.cart.*cartID*.items[].product}**: fetch the product from the cart item
+* **{$**identifier**.order.**orderID***}**: fetch an order by its ID
+* **{$**identifier**.order.**orderID***.customer}**: fetch the customer for this order
+* **{$**identifier**.order.**orderID***.items[].product}**: fetch the product from the order item
+* **{$**identifier**.product.sku}**: fetch a product by its SKU
+* **{$**identifier**.cart.**cartID**}**: fetch a cart by its ID
+* **{$**identifier**.cart.**cartID**.customer}**: fetch the customer for this cart
+* **{$**identifier**.cart.**cartID**.items[].product}**: fetch the product from the cart item
### Iterable properties
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index 78cee1804..7a9a796ec 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -146,7 +146,9 @@ The {$mailing} object has more properties, en contains some mailing settings:
You can use information from your native integration in a template. The available variables depend on the native integration that you use.
The identifier of your native integration is the variable name:
- {$*integrationIdentifier*}
+```html
+ {$integrationIdentifier}
+```
For a full list of available variables for your integration see [Native integration properties](./personalization-integration-variables).
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index 12aacf726..8b95115e1 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -97,8 +97,8 @@ Available modifiers are:
* order using the "orderby" modifier
* limit the amount of items using the "limit" modifier
-```text
-{foreach from=$*identifier*.products|filter:"price":"<":15|orderby:"price"|limit:5 item="product"}
+```html
+{foreach from=$identifier.products|filter:"price":"<":15|orderby:"price"|limit:5 item="product"}
{$product.name}
{/foreach}
```
From 7aae542ecb2aede83ab21a802113bc03348f8d05 Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Fri, 26 Apr 2024 14:37:41 +0000
Subject: [PATCH 25/29] use a dollar sign
---
.../personalization-integration-variables.md | 20 +++++++++----------
Publisher/en/personalization-variables.md | 4 ++--
Publisher/en/personalization.md | 4 ++--
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/Publisher/en/personalization-integration-variables.md b/Publisher/en/personalization-integration-variables.md
index 86ed21a57..4fdb607aa 100644
--- a/Publisher/en/personalization-integration-variables.md
+++ b/Publisher/en/personalization-integration-variables.md
@@ -6,18 +6,18 @@ This is a list of all the available personalization variables per native integra
You can see which properties are available on each variable by referencing the [Magento API documentation](https://developer.adobe.com/commerce/webapi/rest/quick-reference/)
-* **{$**identifier**.order.**orderID***}**: fetch an order by its ID
-* **{$**identifier**.order.**orderID***.customer}**: fetch the customer for this order
-* **{$**identifier**.order.**orderID***.items[].product}**: fetch the product from the order item
-* **{$**identifier**.product.sku}**: fetch a product by its SKU
-* **{$**identifier**.cart.**cartID**}**: fetch a cart by its ID
-* **{$**identifier**.cart.**cartID**.customer}**: fetch the customer for this cart
-* **{$**identifier**.cart.**cartID**.items[].product}**: fetch the product from the cart item
+* **{$identifier.order.$orderID}**: fetch an order by its ID
+* **{$identifier.order.$orderID.customer}**: fetch the customer for this order
+* **{$identifier.order.$orderID.items[].product}**: fetch the product from the order item
+* **{$identifier.product.sku}**: fetch a product by its SKU
+* **{$identifier.cart.$cartID}**: fetch a cart by its ID
+* **{$identifier.cart.$cartID.customer}**: fetch the customer for this cart
+* **{$identifier.cart.$cartID.items[].product}**: fetch the product from the cart item
### Iterable properties
The following properties can be used in a foreach. You can find an [example on how to use them here](./personalization#native-integrations).
-* **{$*identifier*.products}**: can be used to loop over all the products in the webshop
-* **{$*identifier*.orders}**: can be used to loop over all the orders in the webshop
-* **{$*identifier*.carts}**: can be used to loop over all the carts in the webshop
+* **{$identifier.products}**: can be used to loop over all the products in the webshop
+* **{$identifier.orders}**: can be used to loop over all the orders in the webshop
+* **{$identifier.carts}**: can be used to loop over all the carts in the webshop
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index 7a9a796ec..7d59fa6ba 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -146,8 +146,8 @@ The {$mailing} object has more properties, en contains some mailing settings:
You can use information from your native integration in a template. The available variables depend on the native integration that you use.
The identifier of your native integration is the variable name:
-```html
- {$integrationIdentifier}
+```text
+ {$integrationIdentifier}
```
For a full list of available variables for your integration see [Native integration properties](./personalization-integration-variables).
diff --git a/Publisher/en/personalization.md b/Publisher/en/personalization.md
index 8b95115e1..712d76d94 100644
--- a/Publisher/en/personalization.md
+++ b/Publisher/en/personalization.md
@@ -97,8 +97,8 @@ Available modifiers are:
* order using the "orderby" modifier
* limit the amount of items using the "limit" modifier
-```html
-{foreach from=$identifier.products|filter:"price":"<":15|orderby:"price"|limit:5 item="product"}
+```text
+{foreach from=$identifier.products|filter:"price":"<":15|orderby:"price"|limit:5 item="product"}
{$product.name}
{/foreach}
```
From cf95fc9ac5dc65fa1e032d040c2840157190383e Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Mon, 29 Apr 2024 16:09:04 +0200
Subject: [PATCH 26/29] Update personalization-variables.md
---
Publisher/en/personalization-variables.md | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index 7d59fa6ba..c6a22f403 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -143,12 +143,18 @@ The {$mailing} object has more properties, en contains some mailing settings:
## Native integrations
-You can use information from your native integration in a template. The available variables depend on the native integration that you use.
-The identifier of your native integration is the variable name:
+If you connect your platform with Copernica, your product and order information will become available as personalization variables in your templates.
+You can directly use this information in your mailings. When connecting your platform to Copernica you have to enter an identifier.
+This identifier is the name of the variable that you can use to fetch information from your platform.
-```text
- {$integrationIdentifier}
-```
+For example if you use the identifier "magento", you can personalize with variables such as:
+
+*{$magento.product.shoes.name}
+*{$magento.product.shoes.description}
+*{$magento.order.1.grand_total}
+
+All fields that are returned by the API are made available, so not only are fields such as "name" and "title" available, but also fields such as "price" and "product_links".
+You can check the API documentation of the connected platform to find out which fields are available.
For a full list of available variables for your integration see [Native integration properties](./personalization-integration-variables).
From 63a49090b4575da821055f5d7a05e5fd7208431a Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Mon, 29 Apr 2024 16:10:02 +0200
Subject: [PATCH 27/29] Update personalization-variables.md
---
Publisher/en/personalization-variables.md | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index c6a22f403..accb7eb3f 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -144,14 +144,16 @@ The {$mailing} object has more properties, en contains some mailing settings:
## Native integrations
If you connect your platform with Copernica, your product and order information will become available as personalization variables in your templates.
-You can directly use this information in your mailings. When connecting your platform to Copernica you have to enter an identifier.
+You can directly use this information in your mailings.
+
+When connecting your platform to Copernica you have to enter an identifier.
This identifier is the name of the variable that you can use to fetch information from your platform.
For example if you use the identifier "magento", you can personalize with variables such as:
-*{$magento.product.shoes.name}
-*{$magento.product.shoes.description}
-*{$magento.order.1.grand_total}
+* **{$magento.product.shoes.name}**
+* **{$magento.product.shoes.description}**
+* **{$magento.order.1.grand_total}**
All fields that are returned by the API are made available, so not only are fields such as "name" and "title" available, but also fields such as "price" and "product_links".
You can check the API documentation of the connected platform to find out which fields are available.
From b2941604fdb28b63d81bc2a26b17ef098154618e Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Mon, 29 Apr 2024 16:11:05 +0200
Subject: [PATCH 28/29] Update personalization-variables.md
---
Publisher/en/personalization-variables.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index accb7eb3f..14b67ba20 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -155,7 +155,8 @@ For example if you use the identifier "magento", you can personalize with variab
* **{$magento.product.shoes.description}**
* **{$magento.order.1.grand_total}**
-All fields that are returned by the API are made available, so not only are fields such as "name" and "title" available, but also fields such as "price" and "product_links".
+All fields that are returned by the API are made available, so not only are the fields "name" and "title" available, but also fields such as "price" and "product_links".
+
You can check the API documentation of the connected platform to find out which fields are available.
For a full list of available variables for your integration see [Native integration properties](./personalization-integration-variables).
From e0a82e40957017bf8639e90623fde5b42a5cc01a Mon Sep 17 00:00:00 2001
From: DamianWantzing <147159408+DamianWantzing@users.noreply.github.com>
Date: Mon, 29 Apr 2024 16:12:25 +0200
Subject: [PATCH 29/29] Update personalization-variables.md
---
Publisher/en/personalization-variables.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Publisher/en/personalization-variables.md b/Publisher/en/personalization-variables.md
index 14b67ba20..34e8d735d 100644
--- a/Publisher/en/personalization-variables.md
+++ b/Publisher/en/personalization-variables.md
@@ -155,7 +155,7 @@ For example if you use the identifier "magento", you can personalize with variab
* **{$magento.product.shoes.description}**
* **{$magento.order.1.grand_total}**
-All fields that are returned by the API are made available, so not only are the fields "name" and "title" available, but also fields such as "price" and "product_links".
+All fields that are returned by the API of your platform are made available, so not only are the fields "name" and "title" available, but also fields such as "price" and "product_links".
You can check the API documentation of the connected platform to find out which fields are available.