Commerce: Don't include CP assets in email preview

Created on 16 Sep 2020  路  2Comments  路  Source: craftcms/commerce

Description
In Email Preview, control panel assets are included. This can cause problems because the email template inherit CP's styles, showing an incorrect graphic result.

This is the source of a email preview:

Schermata 2020-09-16 alle 14 26 03

To Reproduce
How, and what happened?

  1. In the CP, create a new email in Commerce > System Settings > Emails
  2. Set an empty template
  3. In Email list, click on preview button

Expected behavior
Email Preview must not inherit the styles from the control panel.

Additional info

  • Craft version: 3.5.10.1
  • Commerce version: 3.2.6
  • PHP version: 7.4.9
馃悶 bug 馃摤 emails

Most helpful comment

To get the fix early, change your craftcms/commerce requirement in composer.json to:

"require": {
  "craftcms/commerce": "dev-develop#16c619bf440e77c77d7ba8d84ac8a94ab18d6adf as 3.2.6",
  "...": "..."
}

Then run composer update.

All 2 comments

Thanks fixed for the next release.

To get the fix early, change your craftcms/commerce requirement in composer.json to:

"require": {
  "craftcms/commerce": "dev-develop#16c619bf440e77c77d7ba8d84ac8a94ab18d6adf as 3.2.6",
  "...": "..."
}

Then run composer update.

Was this page helpful?
0 / 5 - 0 ratings