Error: the order does not exist
Closed this issue · 1 comments
mikedaviesweb commented
Description
On line 47 of ReorderController.php if ($customer !== null && $currentUser->id === $customer->userId)
is returning false
which results in the error "The order does not exist". I believe this is because either $currentUser->id
or $customer->userId
is a String and the other a Number.
Steps to reproduce
- Install plugin
- Add example code snippet to orders template
- Submit reorder
- Error flash message appears
Other information
- ReOrder version: 1.1.4
- Craft CMS version: 3.4.25
- Craft Commerce version: 3.2
ttempleton commented
Thanks for reporting this @mikedaviesweb, should now be fixed in ReOrder 1.1.5.