Skip to content

Commit

Permalink
[-] FO : vouchers created in the backend order creation are not displ…
Browse files Browse the repository at this point in the history
…ayed in the frontend anymore
  • Loading branch information
Damien Metzger committed Dec 27, 2012
1 parent ebdb6fc commit 070a4b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions controllers/front/ParentOrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,19 @@ protected function _assignSummaryInformations()
$available_cart_rules = CartRule::getCustomerCartRules($this->context->language->id, (isset($this->context->customer->id) ? $this->context->customer->id : 0), true, true, true, $this->context->cart);
$cart_cart_rules = $this->context->cart->getCartRules();
foreach ($available_cart_rules as $key => $available_cart_rule)
{
if (strpos($available_cart_rule['code'], 'BO_ORDER_') === 0)
{
unset($available_cart_rules[$key]);
continue;
}
foreach ($cart_cart_rules as $cart_cart_rule)
if ($available_cart_rule['id_cart_rule'] == $cart_cart_rule['id_cart_rule'])
{
unset($available_cart_rules[$key]);
continue 2;
}
}

$show_option_allow_separate_package = (!$this->context->cart->isAllProductsInStock(true) && Configuration::get('PS_SHIP_WHEN_AVAILABLE'));

Expand Down

0 comments on commit 070a4b0

Please sign in to comment.