Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

confirmation email problem


2 replies to this topic

#1 sahilkumar1234

  • Community Member
  • 6 posts
  • Real Name:Sahil Kumar

Posted 20 November 2009, 09:28

Hi!
i have one problem with the confirmation mail after the checkout process.
I want that only the product name,id,date of purchase,billing address,shipping address will be in that email not the product price,total price.
So how can it be done?

Plz. help me.

#2 nicholaskoji

  • Community Member
  • 7 posts
  • Real Name:Nick

Posted 24 November 2009, 04:53

there are contributes to install and tutorials on how to do this. If you do not have the knowledge to program PHP then you should hire a web developer or contact me.

#3 multimixer

  • Community Sponsor
  • 3,437 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 24 November 2009, 06:18

View Postsahilkumar1234, on 20 November 2009, 09:28, said:

Hi!
i have one problem with the confirmation mail after the checkout process.
I want that only the product name,id,date of purchase,billing address,shipping address will be in that email not the product price,total price.
So how can it be done?

Plz. help me.
The file that creates the order confirmation email is the catalog/checkout_process.php.

Going there, you will see that the email creation starts at the line
// lets start with the email confirmation
  $email_order = STORE_NAME . "\n" . 
                 EMAIL_SEPARATOR . "\n" . 
.
.
.
.
The "order total" information, what you don't want comes from here
   for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
    $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
  }
If you don't want this info, change the above line to this
   for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
    // $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
  }

PS

View Postnicholaskoji, on 24 November 2009, 04:53, said:

there are contributes to install and tutorials on how to do this. If you do not have the knowledge to program PHP then you should hire a web developer or contact me.

Why do you need to be contacted in private? Thats a open forum here and somebody asks for help and information. If you know the answer, or if you want to say it, then do so. Thats the purpose of the whole thing here. And if somebody has not the knowledge to program PHP, then he will get it with the time, and reading this forum here is one of the best tools to learn

So, I wonder why you are willing to answer only in private....... Whats your purpose? Private lessons?

Edited by multimixer, 24 November 2009, 06:31.