// fix issue on ajax querie on adding product

// clean code

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11451 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2011-12-21 09:23:31 +00:00
parent a6f2e0f638
commit 083f1baf61
4 changed files with 33 additions and 28 deletions
@@ -1248,13 +1248,6 @@ class AdminOrdersControllerCore extends AdminController
$specific_price->add();
}
// Flush cache
// @TODO clean the following line used only in order to clean cache of getPriceStatic method
$specific_price_output = null;
Product::getPriceStatic($product->id, $use_taxes, isset($combination) ? $combination->id : null, 2, null, false, true, 1,
false, $order->id_customer, $cart->id, $order->{Configuration::get('PS_TAX_ADDRESS_TYPE')}, $specific_price_output, true, true, null,
true, true);
// Add product to cart
$cart->updateQty($product_informations['product_quantity'], $product->id, isset($combination) ? $combination->id : null, false, 'up', new Shop($cart->id_shop));