The usage of this module in a multilingual site has some problems.
To reproduce the following problems add 2 languages to the website (EN and FR) and make both "Basic Cart Block" and "Basic Cart Count Block" visible.

1)
Create a node in EN, but don't translate to FR
Add the EN node to the cart
Change the site language
Result:
InvalidArgumentException: Invalid translation language (fr) specified. in Drupal\Core\Entity\ContentEntityBase->getTranslation() (line 783 of core/lib/Drupal/Core/Entity/ContentEntityBase.php).

2)
Create a node in EN and translate it to FR
Add the EN node to the cart
Change site language
Result:
- the EN node is displayed on "Basic Cart Block" (correct)
- when you checkout, is the FR node that is displayed in the order (incorrect)
- the placing the order relates to EN node (correct)

3)
Create a node in EN and translate it to FR
Add the FR node to the cart
Result:
- the EN node is displayed on "Basic Cart Block" (incorrect)
- when you checkout, is the FR node that is displayed in the order (correct)
- the placing the order relates to EN node (incorrect)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rmarques created an issue. See original summary.

karthikeyan-manivasagam’s picture

Status: Active » Fixed
FileSize
965 bytes

Fixed

karthikeyan-manivasagam’s picture

karthikeyan-manivasagam’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rutiolma’s picture

Version: 8.x-5.x-dev » 8.x-6.x-dev

Can you reopen this?
The patch provided doesn't fix the described issue.