// fix issue on ajax querie on adding product

// clean code
This commit is contained in:
aFolletete
2011-12-21 09:23:31 +00:00
parent be45f9f0d5
commit f6d8f403da
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));