Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

(model) in email confirmation - how to remove ()


driven22

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...