Jump to content
Latest News: (loading..)
Sign in to follow this  
driven22

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

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 :(

Share this post


Link to post
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";

 

 

Share this post


Link to post
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"; 


If you are running the "official" osC 2.3.4 or 2.3.4.1 download, your installation is obsolete! Get (stable) Frozen or (unstable) Edge. See also the naming convention and the latest community-supported responsive "Edge" release

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×