Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Empty "()" on products line in order email?


winedog

Recommended Posts

Hi,

 

OK yet another question on where/how to cleanup my orders as customers see them!

 

In the order email that goes out to customers there are an empty set of parentheses showing up on the product line. Why are they there and any suggestions on how I can get rid of them?

 

Products
------------------------------------------------------
1 x Case of Widgets () = 825.00NZD
------------------------------------------------------
GST: 91.67NZD
Total: 825.00NZD

Link to comment
Share on other sites

It's showing the products model. To change it, find (in checkout_process.php)

	$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";

try changing to

	$products_model_display = tep_not_null($order->products[$i]['model']) ? ' (' . $order->products[$i]['model'] . ')' : '';
$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . $products_model_display . ' = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

As always, backup first.

Always back up before making changes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...