Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

brackets in confirmation e-mail


Guest

Recommended Posts

Hi

 

Does anyone have an idea how i can remove the brackets inthe confirmation e-mail after the product?

 

At the moment it looks like this:

**********************

Artikel

------------------------------------------------------

 

4 x Product1 () = CHF 196.00

1 x Product2 () = CHF 10.00

------------------------------------------------------

 

**********************

 

I would like to remove the brackets after teh product name.

Or can someone tell me, what should be in this brackets?

 

Thanks for your help

 

Joerg

Link to comment
Share on other sites

From looking at the code in /catalog/checkout_process.php it looks like the "model" is supposed to be there:

 

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

There is no "if" statement to skip it if no model is present.

 

BACKUP THE FILE AS IT IS.

 

Then change the line of code I posted 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";

Or, if you want to introduce a condition to test the "model" field and display it if present but NOT display empty parentheses if it isn't the code change would be:

 

	if ( tep_not_null($order->products[$i]['model']) ) {
  $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";
} else {
  $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";
}

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...