driven22 Posted July 12, 2018 Share Posted July 12, 2018 Hi, I can't find how to remove brackets in email confirmation order when there is no "model name" after product name ex: ------------------------------------------------------------------------------------------------- 1 x Gynostemma 250ml () = 38,00$ ------------------------------------------------------------------------------------------------- I have OSC 2.3.4.1 Please help me i looking for this whole day :( Link to comment Share on other sites More sharing options...
driven22 Posted July 12, 2018 Author Share Posted July 12, 2018 Solved: checkout_process.php this line: $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n"; change to this: $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n"; Link to comment Share on other sites More sharing options...
MrPhil Posted July 12, 2018 Share Posted July 12, 2018 Even better, remove it only if the model is empty: $products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . (is_empty($order->products[$i]['model'])? '': ' (' . $order->products[$i]['model'] . ')'). ' = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n"; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.