SAP / spartacus

Spartacus is a lean, Angular-based JavaScript storefront for SAP Commerce Cloud that communicates exclusively through the Commerce REST API.
Apache License 2.0
744 stars 389 forks source link

Add config 'enabled' in personalization #2651

Closed WeizhengSap closed 5 years ago

WeizhengSap commented 5 years ago

personalization can be enabled in backend. In our current SPA, it always supports personalization (adding personalization request headers) even it is disabled in backend.

So, only when enabled=true, SPA supports personalization. If enabled=false, the personalization related data saved in local storage should be cleared.

WeizhengSap commented 5 years ago

Please check https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/1990 and https://github.com/SAP/cloud-commerce-spartacus-storefront/issues/2316 of how to enable personalization.

plabadie commented 5 years ago

PR #2715

plabadie commented 5 years ago

To test:

After personalization is enabled in the backend, observe that:

Xymmer commented 5 years ago

Doc input provided in https://github.com/SAP/cloud-commerce-spartacus-storefront-docs/issues/50