You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In current version, an API call is there from method getTopLevelCategories in categories.service.ts to fetch top level categories to display on home page.
Actual Behavior
Mentioned call doesn't include personalized group parameters in URL (s)pgid. If I change line 47 of categories.service.ts file to include sendSPGID parameter as
return this.apiService.get('categories', { **sendSPGID: true**, params }).pipe(
spgid gets added to the request, but with undefined value.
Expected Behavior
Personalization parameter should be included in top level categories call with correct value.
Steps to Reproduce the Bug
Go to PWA homepage
Login with valid account.
Navigate to home page again and check top level categories call in developer console.
Notice URL is missing with personalization group (s)pgid parameter.
To me it seems pgid get set in store after the call to top level categories made. So for mentioned call pgid is always undefined. But for subsequent calls to sub-categories and products valid pgid is present in store and Urls.
Hi Kapil,
thank you for raising this bug. Currently we only support personalization of CMS content in PWA out of the box. Personalization of products, prices and categories is one of the next topics we want to address but currently it is not in progress. We are going to handle this issue once we work on personalization in a larger context.
In current version, an API call is there from method getTopLevelCategories in categories.service.ts to fetch top level categories to display on home page.
Actual Behavior
Mentioned call doesn't include personalized group parameters in URL (s)pgid. If I change line 47 of categories.service.ts file to include sendSPGID parameter as
return this.apiService.get('categories', { **sendSPGID: true**, params }).pipe(
spgid gets added to the request, but with undefined value.
Expected Behavior
Personalization parameter should be included in top level categories call with correct value.
Steps to Reproduce the Bug
To me it seems pgid get set in store after the call to top level categories made. So for mentioned call pgid is always undefined. But for subsequent calls to sub-categories and products valid pgid is present in store and Urls.
AB#74392
The text was updated successfully, but these errors were encountered: