Jump to content

Help with order confirmation


Guest

Recommended Posts

Hello guys,

 

If have been searching the web for so long now, to find help with the order confirmation mail!

 

I know how to edit the email, and i've tried to delete the two order_conf templates. Nothing seems to help. I want prestashop to NOT send the order confirmation email upon an order. I have a separate program for that.

 

PLEASE help me!

 

Best regards

 

Mathias from Denmark 

Link to comment
Share on other sites

hi;

open this file classes/PaymentModule.php

and find and delete this code.

                        if (Validate::isEmail($this->context->customer->email))
                            Mail::Send(
                                (int)$order->id_lang,
                                'order_conf',
                                Mail::l('Order confirmation', (int)$order->id_lang),
                                $data,
                                $this->context->customer->email,
                                $this->context->customer->firstname.' '.$this->context->customer->lastname,
                                null,
                                null,
                                $file_attachement,
                                null, _PS_MAIL_DIR_, false, (int)$order->id_shop
                            );

i didn't tested , but will be works.

Link to comment
Share on other sites

hi;

open this file classes/PaymentModule.php

and find and delete this code.

                        if (Validate::isEmail($this->context->customer->email))

                            Mail::Send(

                                (int)$order->id_lang,

                                'order_conf',

                                Mail::l('Order confirmation', (int)$order->id_lang),

                                $data,

                                $this->context->customer->email,

                                $this->context->customer->firstname.' '.$this->context->customer->lastname,

                                null,

                                null,

                                $file_attachement,

                                null, _PS_MAIL_DIR_, false, (int)$order->id_shop

                            );

i didn't tested , but will be works.

Hello,

 

Than you for your response.

 

I've tried it not, but it did no work. Do you have anything else i can do?

Link to comment
Share on other sites

Hi,

 

solution from @safa should works, maybe you have override for this file, please check

 

Regards

Hello

 

I have two files, yes. Altho i've done what @safa said in both files. I've attached a photo for you to see that i've deleted it. You will see that in the document i am searching for "confirmation" which is a part of the code, and there is no result. Because i've deleted it.

 

http://gupl.dk/703083/

Link to comment
Share on other sites

and what about mailalerts module? just disable it ;)

Hello,

 

It already is... This is really killing me...

 

Thank you for your reply anyways.

Link to comment
Share on other sites

let's clarify:

 

you want to disable mail for you as merchant and shop owner

or maybe you want to disable mail to customers?

Thank you for your time.

 

I want to disable it for my customers, not for myself.

Link to comment
Share on other sites

now it's clear :)

 

well, in this case everything depends on "payment" modules that you use. some of them have got own "statuses"  defined with e-mail notifications.

 

you can disable e-mails for all "default" payment statuses (and for non-default too) under orders > statuses tab in your back office.

Link to comment
Share on other sites

hi;

i tested my solution on this shop

http://www.prestasource.info/demo/index.php

and works perfecty :) not coming order confirmation mail.

Payment accepted ,Preparation in progress‏ .. emails coming but order confirmation mail not coming.

 

 

 

Hello

 

I've attached a photo for you to see that i've deleted it. You will see that in the document i am searching for "confirmation" which is a part of the code, and there is no result. Because i've deleted it.

 

http://gupl.dk/703083/

Link to comment
Share on other sites

now it's clear :)

 

well, in this case everything depends on "payment" modules that you use. some of them have got own "statuses"  defined with e-mail notifications.

 

you can disable e-mails for all "default" payment statuses (and for non-default too) under orders > statuses tab in your back office.

Hello,

 

I've now disabled alle the statusses, and it doesnt help... The order confirmation is not a part of the statusses. 

 

Here is a screenshot of it.

http://gupl.dk/703093/

 

And even tho i've disabled all statusses, it still sends me the mails with "awaiting bank wire" etc... i really dont get this....

Edited by Guest (see edit history)
Link to comment
Share on other sites

  • 3 months later...

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
×
×
  • Create New...