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

Fix product view report #491

Merged
merged 4 commits into from
May 6, 2024
Merged

Fix product view report #491

merged 4 commits into from
May 6, 2024

Conversation

BobWez98
Copy link
Collaborator

@BobWez98 BobWez98 commented May 6, 2024

Magento reads from the report_event table to create it's reports. Rapidez currently only inserts the view events into the report_viewed_product_index table, hence the reports are not available.

The data is available so if we want to make this backwards compatible we can run this query in a database;

insert into report_event (`logged_at`, `event_type_id`, `object_id`, `subject_id`, `subtype`, `store_id`) 
	select `added_at`, 1, `product_id`, 0, 0, store_id from report_viewed_product_index

@royduin royduin merged commit 2c969d8 into 1.x May 6, 2024
9 of 22 checks passed
@royduin royduin deleted the feature/fix-product-view-report branch May 6, 2024 11:55
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

Successfully merging this pull request may close these issues.

2 participants