[-] FO : fix #PSCFV-548 - when ordering out of stock downloadable product, the download is not available in order history
This commit is contained in:
1 parent
35b4f42dd3
commit
7e7e932815
1 file changed
+1
-1
@@ -169,7 +169,7 @@ class OrderDetailControllerCore extends FrontController
|
|||||||
'currency' => new Currency($order->id_currency),
|
'currency' => new Currency($order->id_currency),
|
||||||
'order_state' => (int)($id_order_state),
|
'order_state' => (int)($id_order_state),
|
||||||
'invoiceAllowed' => (int)(Configuration::get('PS_INVOICE')),
|
'invoiceAllowed' => (int)(Configuration::get('PS_INVOICE')),
|
||||||
'invoice' => (OrderState::invoiceAvailable($id_order_state) && $order->invoice_number),
|
'invoice' => (OrderState::invoiceAvailable($id_order_state) && count($order->getInvoicesCollection())),
|
||||||
'order_history' => $order->getHistory($this->context->language->id, false, true),
|
'order_history' => $order->getHistory($this->context->language->id, false, true),
|
||||||
'products' => $products,
|
'products' => $products,
|
||||||
'discounts' => $order->getCartRules(),
|
'discounts' => $order->getCartRules(),
|
||||||
|
|||||||
Reference in new issue
Block a user