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

Add newsletter subscription data to Excel export #7488

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

aniket-sainii
Copy link

@aniket-sainii aniket-sainii commented Jan 9, 2025

This pull request adds the functionality to include the newsletter subscription status for each store in the Excel export of customer data. It ensures that for each store, the customer's subscription status is dynamically included in the export based on the existing logic in the system.

Changes:

  1. Fetches all stores:
    • The stores are fetched using the ( _storeService.GetAllStoresAsync ) method.
  2. Dynamically fetches subscription data:
    • The customer's subscription status is fetched for each store using the
      ( _newsLetterSubscriptionService.GetNewsLetterSubscriptionByEmailAndStoreIdAsync) method.
    • The subscription status is then displayed as a column for each store in the Excel export.

Attached File:
Customers Excel report.xlsx
A sample Excel export file is attached for your reference, showing the newly added subscription status column for each store.

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