From 9bf6871e8dfe643e42e6fcf4c252597d06472efc Mon Sep 17 00:00:00 2001 From: jeromenadaud Date: Tue, 30 Jul 2013 17:50:36 +0200 Subject: [PATCH] [-] FO : FixBug #PSCFV-9766 All products in products list for email confirmation with multi-shipping --- classes/PaymentModule.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 9b4994ee6..beedc734e 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -348,7 +348,8 @@ abstract class PaymentModuleCore extends Module // Construct order detail table for the email $products_list = ''; $virtual_product = true; - foreach ($products as $key => $product) + + foreach ($order->product_list as $key => $product) { $price = Product::getPriceStatic((int)$product['id_product'], false, ($product['id_product_attribute'] ? (int)$product['id_product_attribute'] : null), 6, null, false, true, $product['cart_quantity'], false, (int)$order->id_customer, (int)$order->id_cart, (int)$order->{Configuration::get('PS_TAX_ADDRESS_TYPE')}); $price_wt = Product::getPriceStatic((int)$product['id_product'], true, ($product['id_product_attribute'] ? (int)$product['id_product_attribute'] : null), 2, null, false, true, $product['cart_quantity'], false, (int)$order->id_customer, (int)$order->id_cart, (int)$order->{Configuration::get('PS_TAX_ADDRESS_TYPE')});