Closed WeizhengSap closed 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.
PR #2715
To test:
After personalization is enabled in the backend, observe that:
StorefrontModule.withConfig({
personalization: {
enabled: true,
},
Doc input provided in https://github.com/SAP/cloud-commerce-spartacus-storefront-docs/issues/50
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. Ifenabled=false
, the personalization related data saved in local storage should be cleared.