wutend Posted November 4, 2014 Share Posted November 4, 2014 (edited) Hello dear community ! For some products I 've created Discounts.These are neatly displayed in your shopping cart.But I also like to display the price without discount and discount rate in the order confirmation. Prestashop 1.6Please help!!! Edited November 4, 2014 by wutend (see edit history) Link to comment Share on other sites More sharing options...
thierry75 Posted November 4, 2014 Share Posted November 4, 2014 I Wutend,I have the same question since One month (without success).So, coming together...In PaymentModule.php :foreach ($order->product_list as $product) { $price_original = Product::getPriceWithoutReduct((int)$product['id_product'].............................The variable return the last original price of list of product for each row in confirmation e-mail !I don't understand, I don't understand Thank's to the community !!ThierryPS 1.6 Link to comment Share on other sites More sharing options...
wutend Posted November 4, 2014 Author Share Posted November 4, 2014 Hi Thierry, I have just tested with $price_original = Product::getPriceWithoutReduct((int)$product['id_product']................... It does not work. But try this: $price_original = Product::getPriceStatic((int)$product['id_product'], true, ($product['id_product_attribute'] ? (int)$product['id_product_attribute'] : null), 6, null, false, false); You have to become your price without reduct! 1 Link to comment Share on other sites More sharing options...
thierry75 Posted November 4, 2014 Share Posted November 4, 2014 Re Wutend,Thank's a lot for your solution, you're open my eyes !!! I have a lot of discount by quantities and customer group, so for me the solution is :$original_price = Product::getPriceStatic((int)$product['id_product'], false, ($product['id_product_attribute'] ? (int)$product['id_product_attribute'] : null), 6, null, false, false, $product['cart_quantity'], false, (int)$order->id_customer, (int)$order->id_cart, (int)$order->{Configuration::get('PS_TAX_ADDRESS_TYPE')});I don't all understand but it's ok...Thierry 1 Link to comment Share on other sites More sharing options...
Recommended Posts