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 12-13-2011 11:57:43

jensme
Member
Registered: 04-29-2010
Posts: 392

Testing a Display Include

I know this is going to seem like a dumb question, but I'd like to reformat my Order Summary text so the email is prettier.  However, I don't want to screw anything up and would like a way to test my changes somehow before changing the file for real.

How would I do that?

Offline

 

#2 12-14-2011 10:24:08

salesdesk
Member
Registered: 07-03-2008
Posts: 147

Re: Testing a Display Include

Assuming you're talking about the XHTML message, at the top of the file {private}/apps/ecom/ECOM/includes/ordersummaryxhtml.php, add this (after the opening PHP tag):

if ($this->globals('core_user.id') == 'SOME_EMAIL_ADDRESS') {

    include($this->globals('core.path_public') . '/utilities/ordersummaryxhtml.php');

     return 1;

} // End of if  statement.

Replace 'SOME_EMAIL_ADDRESS' with your email address.  Then upload a copy of ordersummaryxhtml.php to {public}/utililities.  Login as the email address you specified in the code above.  When you get the emails, they will be generated from the file in the {public}/utilities directory instead of the main file.  Everyone else will see the output from the main file.
###

Offline

 

#3 12-14-2011 13:27:42

jensme
Member
Registered: 04-29-2010
Posts: 392

Re: Testing a Display Include

Thank you, but all I'm getting is a blank page with no login option.  This is going to that directory in my site.

Offline

 

#4 02-15-2012 10:33:51

jensme
Member
Registered: 04-29-2010
Posts: 392

Re: Testing a Display Include

Is there a way to look at the file in a browser?

Offline

 

#5 02-15-2012 19:24:32

jj1987
Member
From: Orlando, FL
Registered: 07-14-2008
Posts: 502
Website

Re: Testing a Display Include

jensme wrote:

Is there a way to look at the file in a browser?

Not really-- browsers are much better at displaying things than email clients (webmail and client), so even if you could it would be of little use.



-James Garrett

Offline

 

#6 02-15-2012 23:00:50

jensme
Member
Registered: 04-29-2010
Posts: 392

Re: Testing a Display Include

The other way doesn't seem to be working either, so the only way to test it is to keep making false orders to myself?

Offline

 

#7 02-16-2012 15:46:51

jj1987
Member
From: Orlando, FL
Registered: 07-14-2008
Posts: 502
Website

Re: Testing a Display Include

jensme wrote:

The other way doesn't seem to be working either, so the only way to test it is to keep making false orders to myself?

Basically, yes.



-James Garrett

Offline

 

#8 02-16-2012 21:37:39

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Testing a Display Include

If your testing email you can always resend any email you want with the Post-Order Update section of a given order.

John

Offline

 

Board footer