SyliusGiftCardPlugin
SyliusGiftCardPlugin copied to clipboard
List of Orders payed with GiftCard
If balances not equal (so gift card used) - ability to click on Used at orders
link/button and see page with Orders list
where this GiftCard
was used.
- [x] For admin
- [ ] For customer?
I'm trying to display the list of orders, but I have this error: "Argument 1 passed to App\Repository\OrderRepository::createCompletedQueryBuilderByGiftCard() must be of the type string, object given" It is an implementation error or a known error ?
Shoud I try to override this request to fix it ?
Thanks for reporting, @sahnhi
https://github.com/Setono/SyliusGiftCardPlugin/commit/e80c1783421b3237df7484a6ff2802ea7d7781fb#diff-b6158aa28c380775c04f4a5a6e2ceb57802addf71ca99777287cefa67de1d7e9L10
I guess we need
giftCardId: $id
rather than
giftCard: $id
This should fix the issue.
@sahnhi, don't you mind to try that and make PR if this fix will work?