Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit a5dd128

Browse files
committed
Updating custom attributes
1 parent dbefe27 commit a5dd128

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/recommendations/customize.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,7 @@ For example, if your store sells some organic products, you might have a custom
107107
108108
To make sure a custom product attribute is available when you render the recommendation unit on the page, set the `Used in Product Listing` property to `Yes` in the [Product Attributes](https://docs.magento.com/user-guide/stores/attribute-product-create.html#step-4-describe-the-storefront-properties) page in the Admin.
109109
110-
When this property is set, that custom product attribute value is included in the JSON payload when the recommendations service fetches the product metadata. You can then apply custom storefront styling based on this attribute value.
110+
When this property is set, the JSON payload includes an `attributes` object that contains an array of attribute codes and values. You can then apply custom storefront styling based on these attribute values.
111+
112+
{:.bs-callout-info}
113+
Product attribute changes can take up to an hour to appear in the JSON payload.

0 commit comments

Comments
 (0)