magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.37k stars 9.28k forks source link

Newsletter product widget wrong store view per send batch #38904

Open vandijkstef opened 4 days ago

vandijkstef commented 4 days ago

Preconditions and environment

Steps to reproduce

  1. Create a newsletter template containing a product widget ("Catalog Products List" used, made product selection based on specific SKU's) ánd other {{trans ""}} elements (albeit those are just to prove the point)
  2. Send (async + batched) out newsletter to multiple customers on different store views (languages)

Expected result

A nicely translated email with the products for the correct store-view/language

Actual result

While the header/footer, subject and {{trans ""}} element work fine the "catalog products list" widget is not always in the correct store-view/language

Additional information

I couldn't find a specific reason yet, however it isn't completely random.

It seems that the "catalog products list" widget is only being generated ONCE per batch. Batches contain multiple subscribers on different store view, but all will receive the catalog-product-list widget in the same language. I haven't been able if this is down to the first or last entry in the batch as async sending can trip up the order here, but the entire batch has that store-view/language while all other elements internationalize just fine. So while some batches are send out fine (100% same store-view subscribers in batch), others are 95% wrong. This needs to be tested where batches are containing mixed subscribers.

Technically you can work around this by queuing newsletters per store-view.

Release note

No response

Triage and priority

m2-assistant[bot] commented 4 days ago

Hi @vandijkstef. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 4 days ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down: