diff --git a/classes/order/OrderDetail.php b/classes/order/OrderDetail.php index 3997acacc..3aaf685a2 100644 --- a/classes/order/OrderDetail.php +++ b/classes/order/OrderDetail.php @@ -515,9 +515,9 @@ class OrderDetailCore extends ObjectModel $this->product_id = (int)($product['id_product']); $this->product_attribute_id = (int)($product['id_product_attribute'] ? (int)($product['id_product_attribute']) : null); - $this->product_name = pSQL($product['name']. + $this->product_name = $product['name']. ((isset($product['attributes']) && $product['attributes'] != null) ? - ' - '.$product['attributes'] : '')); + ' - '.$product['attributes'] : ''); $this->product_quantity = (int)($product['cart_quantity']); $this->product_ean13 = empty($product['ean13']) ? null : pSQL($product['ean13']);