site error: [add Commerce Currency Resolver]

Created on 29 February 2024, about 1 year ago

Problem/Motivation

current dev10 site has products in various states due to QA, this points out when mixing currentcy:

The website encountered an unexpected error. Try again later.

Drupal\commerce_price\Exception\CurrencyMismatchException: The provided prices have mismatched currencies: 41 CAD, 11 USD. in Drupal\commerce_price\Price->assertSameCurrency() (line 316 of modules/contrib/commerce/modules/price/src/Price.php).
Drupal\commerce_price\Price->add(Object) (Line: 465)
Drupal\commerce_order\Entity\Order->recalculateTotalPrice() (Line: 308)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada SKAUGHT

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024