Is it possible to have all contact info the complete address all fields and phone/fax numbers included in the Order notification email?
If so how please tell me how ideally it would just be a matter of checking boxes in the store set up.
Is it possible to have all contact info the complete address all fields and phone/fax numbers included in the Order notification email?
If so how please tell me how ideally it would just be a matter of checking boxes in the store set up.
On our shipping info I have edited to show the following:
Order Number
Billing Phone Number
Shipping Phone Number
Email Address
Order Date
I find that this is important info so it is printed as part of the invoice... Also, did you notice that I put all that info into a separate info box?
If this is what you're looking for - I'll post the code... let me know...
Image is attached...
Glad you could work out how to do it, get the hidden fields. I want all the address fields often overseas address are more than 3 lines long also I want the phone and email.
I looked at order_notification_email.php and order_notification_email.tpl.php both seened to have all the data fileds But email_order.func.php just looked very complicated.
You don't need to (and shouldn't) modify that file for this.
That template is for the plain text version of the order email. Unless you have your email preference on your admin account set to plain text, you shouldn't modify this template either....and order_notification_email.tpl.php
That's a function file. It shouldn't be modified....But email_order.func.php just looked very complicated.
*The template file you need for this is order_email_merchant_html.tpl.php in v3.x, and order_notify_email_htm.tpl.php in v2.x.
Instructions
- If you haven't already, read this:
http://squirrelcart.com/help/?Modifying%20Templates.html
- If you don't have a custom theme, create one:
http://squirrelcart.com/help/?Creating%20a%20Custom%20Theme.html
and set it as your store's default theme:
http://squirrelcart.com/help/?Changing%20the%20Default%20Theme.html
- Open any order in edit mode:
http://squirrelcart.com/help/?Viewing%20Orders.html
- Write down the names of the fields that you want to add to your order emails
- Put a copy of the template file listed above (in the line with the *) in your custom theme folder squirrelcart/themes/CUSTOM_THEME_NAME
- Open that copy in an editor
- Add any variable you like in this format:
Field names should match what you wrote down, but with underscores in place of spaces.PHP Code:<?=$Bill_Phone?>
<?=$Ship_Company?>
etc...- Save the file
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
Thanks your fix works fine apart from <?=$Bill_Country ?> the country shows as a number ie 180 for the US.
How can I fix this?
Use Bill_Country_Name or Ship_Country_Name. You can also use Bill_Country_Abbrev if you happen to have all the country abbreviations memorized.
Bill_State_Name, Ship_State_Name, Bill_State_Abbrev, and Ship_State_Abbrev may also be useful.
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
Thanks its now working just fine. V
You're welcome
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
when the order_notify_email is printed its too wide it cuts of the right hand edge. I tried to adjust the template box width but it did not work is there a css setting to be changed?
The order emails print fine by default. It sounds like you might need to change your printer settings.
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
When the email is oped to see it all requires you to scroll. You see about 90% of the email width however you have the program browser set in this case thunderbird. I assume this is the same reason why there is a problem printing. Other emails print just fine.
I'm trying to get this to work. I've added:
I keep getting php errors though when checking out.<table class="address_block" cellspacing="0" cellpadding="4" align="left">
<tr class="header_row">
<td colspan="2"> Shipping Info</td>
</tr>
<tr>
<td style="text-align: left">
<?=$Order_Number?>
<br />
<?php /*DO NOT MODIFY THIS LINE!*/ if ($Bill_Phone) { ?>
<?=$Bill_Phone?>
<br />
<?php /*DO NOT MODIFY THIS LINE!*/ if ($Ship_Phone) { ?>
<?=$Ship_Phone?>
<br />
<?=$Ship_Email_Address?>
<br />
<?=$Order_Date?>
</td>
</tr>
</table>
Any ideas??
designwerks, can you please paste the code you have in your order_notify_email_htm.tpl file? php gives me a headache!
Thank you.
I'll have to do it when I return to the office. Can you send me a reminder email later this evening.
John
wetjet550:
You have if statements, and aren't ending them which will cause parse errors. This is a better version of the code you pasted without parse errors:PHP Code:<table class="address_block" cellspacing="0" cellpadding="4" align="left">
<tr class="header_row">
<td colspan="2"> Shipping Info</td>
</tr>
<tr>
<td style="text-align: left">
<?=$Order_Number?>
<br />
<?php /*DO NOT MODIFY THIS LINE!*/ if ($Bill_Phone) { ?>
<?=$Bill_Phone?>
<br />
<?php /*DO NOT MODIFY THIS LINE!*/ if ($Ship_Phone) { ?>
<?=$Ship_Phone?>
<br />
<?=$Ship_Email_Address?>
<br />
<?=$Order_Date?>
</td>
</tr>
</table>
PHP Code:<table class="address_block" cellspacing="0" cellpadding="4" align="left">
<tr class="header_row">
<td colspan="2"> Shipping Info</td>
</tr>
<tr>
<td style="text-align: left">
<?php print $Order_Number ?><br />
<?php if (!empty($Bill_Phone)) print "$Bill_Phone<br/> "; ?>
<?php if (!empty($Ship_Phone)) print "$Ship_Phone<br/> "; ?>
<?php print $Ship_Email_Address ?><br />
<?php print $Order_Date ?>
</td>
</tr>
</table>
Thanks,
Jamie
PHP shopping cart software - Squirrelcart
Please rate or review us!![]()
Hotscripts ● PHP Resource Index
There are currently 1 users browsing this thread. (0 members and 1 guests)