Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 04-11-2014 12:41:13

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Internal Order confirmation e-mail

The Internal Order confirmation e-mail is sent with the headers set such that the customer's e-mail address is in the From field, however my hosts reject that as it appears to be an attempt to relay spam through their server.

So what I need to do is to change the routine that sends this to include my e-mail address so it won't be rejected.

Please can someone tell me where I can find this to enable me to get these e-mails correctly.

Thanks.

Offline

 

#2 04-11-2014 14:22:40

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1592
Website

Re: Internal Order confirmation e-mail

Don't you change that here:
Location: System Dashboard > System > Mail > Mail Messages

Select the message and then amend the sender and recipients


- Euorpacart 8

Offline

 

#3 04-12-2014 03:42:42

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

zanart wrote:

Don't you change that here:
Location: System Dashboard > System > Mail > Mail Messages

That is only "If a sender is not specified by the calling component".

The sender is being specified by the software, but it puts the customer's e-mail address, however, as mentioned, this is rejected as an attempt to relay spam.

I still get the Order Decryption e-mail because that's sent (in my case) from europacart@affordable-leather.co.uk ie from my domain.

What I need is to stop the software sending the e-mail with the From field as if it's from Fred_Bloggs@somedomain

Offline

 

#4 04-14-2014 09:39:43

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19232
Website

Re: Internal Order confirmation e-mail

Just enter the from email address you want to use there - as the component doesn't override it in this case.  Replace '{SESSION:email}' with whatever you want in the sender field, and that's who will be sending you the internal confirms.


Nick Hendler

Offline

 

#5 04-14-2014 11:42:16

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

webmaster wrote:

Just enter the from email address you want to use there - as the component doesn't override it in this case.  Replace '{SESSION:email}' with whatever you want in the sender field, and that's who will be sending you the internal confirms.

That hasn't worked.

I changed the Default Message Sender (FROM) field in System Dashboard > System > Mail > Mail Messages to customerorder@affordable-leather.co.uk but when I tried placing an order with a Hotmail address I didn't get the internal order confirmation message.

When I tried it with ccp8@affordable-leather.co.uk I got the internal confirmation message, but the From address was ccp8@affordable-leather.co.uk so it seems that it is over-riding what I put in System Dashboard > System > Mail > Mail Messages

How can I stop this happening so I get the internal confirmation message sent from customerorder@affordable-leather.co.uk?

Offline

 

#6 04-15-2014 09:12:27

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19232
Website

Re: Internal Order confirmation e-mail

Sorry.  Edit {private}/apps/ecom/ECOM_Order/ext/0900_mailinternal.php.  In there you will see:

Code:

'from'     => $order['order']['email'],

Remove that and your setting will work.


Nick Hendler

Offline

 

#7 04-16-2014 04:20:34

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

webmaster wrote:

Sorry.  Edit {private}/apps/ecom/ECOM_Order/ext/0900_mailinternal.php.  In there you will see:

Code:

'from'     => $order['order']['email'],

Remove that and your setting will work.

Ok, thanks for that, I do now get the internal order confirmation e-mail, however changing that seems to have broken something else because when I put an order through the checkout I get the message  "Thank you. Your order has been approved and completed. You can review and print a copy of your order below. You will receive an email message containing your order confirmation within a few minutes." but it is at the top of a blank page.

I have tried reverting to the original version of the  0900_mailinternal.php file also I've cleared cookies and the cache and made sure the permissions are -rwxrwx-, but nothing works.

This is the only change I have made recently, so I can't see why this has broken anything else, especially when I've reverted to the original version.

ADDENDUM - Additionally it shows https://secure1.namesco.net/affordable- … /index.php in the location bar but when I click on that and press return it goes to that page but still shows the item(s) I have "bought" in the shopping cart.

Last edited by Graham (04-16-2014 04:22:44)

Offline

 

#8 04-16-2014 09:43:22

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19232
Website

Re: Internal Order confirmation e-mail

It sounds like you have a PHP syntax error in the file.  Are you sure you just removed or commented out that single line?


Nick Hendler

Offline

 

#9 04-16-2014 11:37:38

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

As mentioned, I reverted to the original version of 0900_mailinternal.php, but I am still getting the same issue despite flushing the cache etc.

ADDENDUM: A correction to my post above, the permissions are -rwxrwxrwx

Last edited by Graham (04-16-2014 11:44:18)

Offline

 

#10 04-16-2014 13:06:54

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

Just for completeness, these are the other changes I made prior to this, but it was working ok after all of these:



Changed Secure Cookie URLs to .namesco.net and https://secure1.namesco.net/affordable- … o.uk/ccp8/  via installer



Edited /skins/MailMessage/skin.php

Commented out <div id="logo"><img src="<?php print $logourl; ?>" alt="Logo" /></div> to stop logo appearing in order confirmation e-mail.



Used:

UPDATE core_formfields SET type='HIDDEN-REG', defaultvalue='R' WHERE id LIKE '%rescom'

in Raw Database Admin to remove Residential/ Commercial* details from checkout page.



Exported core_country and core_stateprov and re-sorted so UK and UK counties are at the top of the lists then uploaded back to Europacart8.

Offline

 

#11 04-17-2014 08:36:50

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19232
Website

Re: Internal Order confirmation e-mail

Are you receiving your mails?  I want to be sure your edit to the mail skin worked.  A blank page is indicative of a PHP issue (usually syntax in a modified file), or could be indicative of a non-working mail server.


Nick Hendler

Offline

 

#12 04-17-2014 09:35:09

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

Yes, I'm receiving the mails.

I also tried reverting back to the unmodified mail skin, cleared cache and cookies etc, but still I only get the "Thank you. Your order has been approved and completed..." message without the rest of the page that it should have been part of.

If I do "View Source" all that I get is:

Code:

<p class="confirm">Thank you.  Your order has been approved and completed.  You can review and print a copy of your order below.  You will receive an email message containing your order confirmation within a few minutes.</p>

Offline

 

#13 04-17-2014 09:39:18

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

How do I switch on the Debugger so I can try to trace what's happening and where?

I've looked through the documentation and I can't find this.

Offline

 

#14 04-17-2014 09:43:49

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1592
Website

Re: Internal Order confirmation e-mail


- Euorpacart 8

Offline

 

#15 04-17-2014 10:07:59

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

Thanks.

Offline

 

#16 04-23-2014 05:03:01

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

Ok, this is weird. I've run through the shopping cart with the debugger on and it works fine up until I click on Process Order.

At this point it goes the page as mentioned above and all that it shows is the message "Thank you. Your order has been approved and completed. You can review and print a copy of your order below. You will receive an email message containing your order confirmation within a few minutes." with no debug information or anything else.

Viewing source gives just that message, nothing more.

It shows the URL https://secure1.namesco.net/affordable- … /index.php in the address bar at the top and if I click on that and press enter it goes back to the front page of the site (still will the item I've bought in the shopping cart) and the debugging information as it should.

I've looked through the files and I cannot see anything else I've changed which could affect this and I've even tried uploading the original 0900_mailinternal.php from my unmodified backup files, but it's not sorted the problem.

Please can someone suggest what is causing this and how I can fix it.

If you want to see what happens yourself go to http://www.affordable-leather.co.uk/ccp8/index.php and put an order through (apart from the Wartenburg Wheel offer on the splash page as that links to the current v7 site) NB my site deals in adult products, so it may be NSFW.

Alternatively, please can someone tell me how I can re-install just this part of the software without over-writing everything else because I need to get this site up and working but I can't whilst you can't place an order.

Last edited by Graham (04-23-2014 05:04:00)

Offline

 

#17 04-23-2014 09:54:28

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19232
Website

Re: Internal Order confirmation e-mail

Sounds like you edited either one of the files in the {private}/apps/ecom/ECOM_Order/ext directory or one of the order confirmation includes in the {private}/apps/ecom/ECOM/includes directory and you have a syntax error.  You could fix by running your installer; when you get to the component and module installation step, choose to overwrite all files.  If you're a version or two behind, run a proper update (https://central.kryptronic.com/public/n … 2013A.html).

This will pull the demo store back into your site, which you'll want to delete (http://wiki.kryptronic.com/CCP8DeletingTheDemoStoreData).


Nick Hendler

Offline

 

#18 04-23-2014 18:28:26

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

I had edited the 0900_mailinternal.php as mentioned, however even when I reverted to the original version it didn't sort the problem out.

I've just run the installer and over-written all the files in section 12, but it's not fixed the issue and when I look at the datestamps in the /web/ccp8-private/apps/ecom/ECOM_Order/ext file, 0900_mailinternal.php has the time stamp of 23/04/2014 at 18:31 which was earlier this evening when I tried reverting to the unmodified backup copy I took when I first installed the software.

All the other files in that folder have the datestamp of 28/10/2013 at 16:43 when I did the original install.

Also all of the files in /web/ccp8-private/apps/ecom/ECOM/includes are unmodified and have the datestamp of 28/10/2013 from the original install.

Is there anything else I can do to fix this short of doing a full re-install (which will mean I'll have to re-do all the other changes I've made to the site)?

Offline

 

#19 04-24-2014 10:01:22

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19232
Website

Re: Internal Order confirmation e-mail

I would re-run the install and this time make sure permissions on 0900_mailinternal.php are writable.  I have a feeling the installer couldn't overwrite the file.


Nick Hendler

Offline

 

#20 04-24-2014 11:01:13

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

The permissions on 0900_mailinternal.php and all the files in that folder are 777 so should be writable as far as I'm aware.

Offline

 

#21 04-25-2014 05:25:10

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

Ok, I got fed up with wasting time on this and, despite trying to re-install, it still didn't work, so I renamed my CCP8 folders to x-ccp8 and x-ccp8-private then copied a vanilla backup from my hard drive onto my hosts' system.

I then, of course, had to go through and re-apply *all* the changes I had made previously to get myself back to the position I had been in just before I tried to make this modification, a fortnight ago!

Everything worked fine right up until the point when, once again, I tried to modify 0900_mailinternal.php and once again it broke in exactly the same way.

* * * * *

At this point I should explain the process I undertake when I modify a file.

Firstly I make a copy of the file on the hosts' system ie copy it to eg "original 0900_mailinternal 2014-04-25.php" and also duplicate that on my hard drive.

I then make the modification on the local file on my hard drive and save it as "new 0900_mailinternal 2014-04-25.php"

Next I upload this to my hosts and rename it as 0900_mailinternal.php so I can always see which files have been modified and it gives me an original, unmodified file I can revert to if something goes wrong.

All simple and sensible and good programing practice and something I have done on EVERY OTHER modification I have made to Europacart v8 and, indeed, v7 when I was using that version.

Except that in this case it didn't work because even when I reverted to the original file it was still broken as I described above.

* * * * *

So when it broke again today, I decided to give up and not just revert to the original file, but also delete the original 0900_mailinternal 2014-04-25.php and new 0900_mailinternal 2014-04-25.php copies and just live with not getting my internal order confirmation mails.

WHEN SUDDENLY IT STARTED WORKING PROPERLY AGAIN!!!

So the problem was nothing to do with the changes to 0900_mailinternal.php that I had made, it was that, for some incomprehensible reason, Europacart v8 cannot cope with having extra files in the private/apps/ecom/ECOM_Order/ext/ folder EVEN THOUGH THEY ARE RENAMED AND DOING NOTHING!

And I've wasted two weeks finding this out.

Head -> Desk (repeatedly)

Offline

 

#22 04-25-2014 09:09:33

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1592
Website

Re: Internal Order confirmation e-mail

I would expect the problem is renaming the files with whitespace in the filename.

CCP can definitely cope with having renamed files in the same directory without any issues.


- Euorpacart 8

Offline

 

#23 04-25-2014 09:18:53

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19232
Website

Re: Internal Order confirmation e-mail

Graham- The software looks in /ext directories for classes to execute - in the ECOM_Order class' case, it looks for post order update scripts.  It seems you had two named similar enough where the software was trying to load your backup file as a class file and failing.


Nick Hendler

Offline

 

#24 04-25-2014 11:30:25

Graham
Member
Registered: 09-30-2004
Posts: 884
Website

Re: Internal Order confirmation e-mail

I just tried this again, renaming the file to original_09x00_mxilintxrnal_2014-04-25.php which I think is pretty different and has no white space.

It broke.

When I deleted the file which I would normally keep on my hosts system, it worked again.

Offline

 

#25 04-28-2014 09:14:51

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19232
Website

Re: Internal Order confirmation e-mail

If you really want the file on the host's system, make a directory called /ext-backups (or whatever) and put it there.


Nick Hendler

Offline

 

Board footer