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.
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
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
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
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.
Offline
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