Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product String attribute and User Object not picked up in ACDL #146

Open
lothspei opened this issue Nov 10, 2022 · 2 comments
Open

Product String attribute and User Object not picked up in ACDL #146

lothspei opened this issue Nov 10, 2022 · 2 comments

Comments

@lothspei
Copy link

Client has implemented ACDL on their dev site, and in the products object - one attribute of "actualPrice" is not retrieved in the adobeDataLayer.getState(). The rest of the product attributes return and are working. There is also a node of "user" that does not return yet is set correctly.

Expected Behaviour - All product attributes should be picked up and "user" object should be picked up

Actual Behaviour - Product string is missing "actualPrice" and "user" object completely missing in data layer output

Reproduce Scenario (including but not limited to)

anytime a user views a product while logged in

Steps to Reproduce

Login to the client's dev site using following credentials:
Login: [email protected]
Password: Wesc0Password!
dev site URL: https://dev.eecol.com/content/eecol/ca/en/products/product-page.html/eecol-ltl-ledbar34-40k.html?page=1
Note: if you are not logged in, prices will not display and you will not be able to replicate the "actualPrice" issue described above. Navigate to a Product details page. In the console, view the adobeDataLayer object and note the user object and actualPrice are present and set correctly. Now view the adobeDataLayer.getState() object and note the actualPrice does not have a value and user object is missing.

Platform and Version

Launch, ACDL extension version 2.0.3

Sample Code that illustrates the problem

Logs taken while reproducing problem

@s10-steve
Copy link

The 'user' object is missing from getState() as you're overwriting it with a null object.
image
Not sure about 'actualPrice' though, as far as I can tell that should work as described.

@lothspei
Copy link
Author

We have solved for the User string issue, but the product price issue is still persisting. The client tried changing the name of the object and still the same result - everything else populates but not the price.
Screen Shot 2022-11-14 at 1 31 51 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants