EmicoEcommerce / Magento2Tweakwise-archived

Magento 2 module for Tweakwise integration
Other
9 stars 25 forks source link

Wrong crosssell and upsell templates of second Tweakwise environment #258

Closed JSeverein closed 1 year ago

JSeverein commented 2 years ago

Issue Brief

We have a Magento 2 environment that has multiple store views. Each store view uses their own Tweakwise Environment and therefor a different Catalog / Tweakwise / General / Authentication Key in the admin.

When we go to the second store view level in the admin, then we see the different authentication key. But when we scroll down to Catalog / Tweakwise / Default Crosssell template and Default Upsell template then we see the templates of our other storeview.

So we believe the wrong authentication key is used when loading these templates. Possibly the one that's set on the default level.

Environment

Steps to reproduce

  1. Have two store views in Magento 2 en two environments in Tweakwise.
  2. Set default and first store view Tweakwise authentication key to key number 1
  3. Set second store view Tweakwise authentication to key number 2
  4. Attempt to select crosssell and upsell templates under Catalog / Tweakwise / Default Crosssell template and Default Upsell template

Actual result

On default and both store view levels the selects show only the templates of environment number 1.

Expected result

On the default and first store view level, we expect to see templates of environment number 1. On the second store view level, we expect to see templates of environment number 2.