-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Google Analytics throws Fatal Error #3435
Comments
I like the last implementation, @daboss84 would you create a PR? |
Good morning @fballiano , I created your requested pull request. |
Thanks @daboss84 , I’m out for a few days but I’ll check it out asap! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Possible Fix
The problem is, that the _categorieIds contains ALL its categories, of all its subshops. The poped category is not from the subshop from where it is added to the cart. Probably that's why the category is not loaded and its name is null.
These are just examples on the top of my head, but you are more into the whole OM code and its workflow
Adjust
Mage_GoogleAnalytics_Helper_Data::getLastCategoryName($product): string
to either allow null:
Adjust Mage_GoogleAnalytics_Helper_Data::getLastCategoryName($product): ?string
or loop through the categories until a valid one is found from
to
The text was updated successfully, but these errors were encountered: