From 39fa6390f7cc24de3cdd90f442ab3de53beaa56b Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Fri, 29 Jul 2016 13:41:55 +0200 Subject: [PATCH] modif name in order summary --- modules/blockordersummary/blockordersummary.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/blockordersummary/blockordersummary.php b/modules/blockordersummary/blockordersummary.php index 42e1412b..a0746f63 100644 --- a/modules/blockordersummary/blockordersummary.php +++ b/modules/blockordersummary/blockordersummary.php @@ -63,11 +63,15 @@ class BlockOrderSummary extends Module { $order_address = nl2br(AddressFormat::generateAddress(new Address((int) $cart->id_address_delivery))); } - $carrier_name = Db::getInstance()->getValue(' - SELECT `name` - FROM `'._DB_PREFIX_.'carrier` - WHERE `id_carrier` = '.(int) $cart->id_carrier.' - '); + if ($cookie->id_lang == 3 && (int)$cart->id_carrier == 87) { + $carrier_name = "SEUR a domicilio"; + } else { + $carrier_name = Db::getInstance()->getValue(' + SELECT `name` + FROM `'._DB_PREFIX_.'carrier` + WHERE `id_carrier` = '.(int) $cart->id_carrier.' + '); + } $products_keys = array(); $products_delays = array();