[*] BO : #PSTEST-381 - Checkbox "Send available products first" must not be present if there is only product "out of stock", or to check states of virtual products

This commit is contained in:
mDeflotte
2012-02-03 09:46:34 +00:00
parent 6cb5edd08d
commit a2c991e20b
4 changed files with 35 additions and 7 deletions
@@ -292,6 +292,9 @@ class ParentOrderControllerCore extends FrontController
else
$product['is_discounted'] = $product['price_without_specific_price'] != $product['price_wt'];
}
$show_option_allow_sparate_package = !$this->context->cart->isAllProductsInStock(true)
&& Configuration::get('PS_SHIP_WHEN_AVAILABLE');
$this->context->smarty->assign($summary);
$this->context->smarty->assign(array(
@@ -310,6 +313,8 @@ class ParentOrderControllerCore extends FrontController
'currencyRate' => $this->context->currency->conversion_rate,
'currencyFormat' => $this->context->currency->format,
'currencyBlank' => $this->context->currency->blank,
'show_option_allow_sparate_package' => $show_option_allow_sparate_package,
));
$this->context->smarty->assign(array(