Closed aimeric closed 6 years ago
I've upgraded to Sylius 1.1.0-DEV and everything is ok. I'll investigate to see if I can reproduce it.
Can you try to access to one of your order in front (customer account) with an URI like this : http://{domain}/app_dev.php/{locale}/account/orders/{order_number}/invoice
The same path as viewing an order with just /invoice at the end
I have tried with the following url : http://127.0.0.1/sylius/web/app_dev.php/fr_FR/account/orders/000000061/invoice
and I have the following error:
Symfony\Component\HttpKernel\Exception\BadRequestHttpException:
Order not fulfilled
at vendor/behappy/invoice-plugin/src/Controller/InvoiceController.php:68
at Behappy\InvoicePlugin\Controller\InvoiceController->renderAction(object(Request))
at call_user_func_array(array(object(InvoiceController), 'renderAction'), array(object(Request)))
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:153)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:169)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/app_dev.php:42)
Yeah ok. That's not a bug. In order to see an invoice, the order has to be in the state : OrderInterface::STATE_FULFILLED
Try to put an order in this state, and the blocks will appear.
It works, It wasn't showing because my order was in STATE_NEW
. Thank you so much Roshyo.
Hi,
I'm using Sylius 1.1.0-DEV , I have install and configure your bundle, but the new block in BackOffice and the new button in customer's account are not showing up.
config.yml
routing.yml
Do you can any idea how to fix this issue ?