PDA

View Full Version : Adding a field


captjim
May 22nd, 2005, 01:24 PM
HI,

How do I add a field in the order notification e-mail sent to me the merchant.

I want to add the billing fax but cannot locate it

Also I have the fax numbers marked as NOT required.

mhough
May 23rd, 2005, 07:18 PM
I think it already does that.

captjim
May 24th, 2005, 06:36 AM
It does not

Rich
July 21st, 2005, 03:29 PM
Jim is correct. The cart does not include the Fax number in the notification email. You can, however add this yourself if you wish.

The following line numbers refer to Squirrelcart v1.6.2. Line numbers in older versions will likely be different, and the function file you will be modifying has changed a great deal in v2.0.0.

In squirrelcart/functions/checkout/email_order.func.php, add the following:

Around line 185

$message_text = str_replace('<?=$Billing_Fax?>',$billing['Fax'],$message_text);Around line 208

$message_text = str_replace('<?=$Shipping_Fax?>',$shipping['Fax'],$message_text);In squirrelcart/themes/[yourtheme]/order_notification_email.php

Around line 29

Fax: <?=$Billing_Fax?>Around line 41

Fax: <?=$Shipping_Fax?>If you want the email sent to your customer to contain the same information, you would need to make similar changes to the squirrelcart/themes/[youtheme]/order_confirmation_email.php file.As always, we do not recommend that you make modifications to the cart's core files (templates and themes excluded) and we cannot support any modifications that you make. Please keep in mind that any modifications that you do make to any of the cart's core files will likely be wiped out by an upgrade.

christopherO
March 2nd, 2006, 02:12 PM
Rich

I have been wanting to receive the customer telephone number so that we could telephone in case of a problem. For the moment we will continue to do a look up on the customer record but it would be very helpful if this could be an option in future releases.

thrive
December 12th, 2007, 02:43 PM
I would like to be able to add specifically phone numbers to the conf. email, how would this be done in v2.xx

Jamie
December 12th, 2007, 02:48 PM
Any field shown on the order record in your control panel can be added to an order email. To add a customer's phone number, you would use these fields:

<?=$Ship_Phone?>
<?=$Bill_Phone?>

thrive
December 12th, 2007, 03:21 PM
THanks for the response jamie, but its a no go on the working part. Am I missing something?

I changed the squirrelcart/functions/checkout/email_order.func.php
and squirrelcart/themes/[mySUPERstinkingAWESOMEtheme]/order_notification_email.php

but still nothing.

Jamie
December 12th, 2007, 03:38 PM
The only way we could determine why it's not working for you is by connecting to your site and looking at your files. If you want us to do that you'll need to open a helpdesk ticket.

thrive
December 12th, 2007, 03:41 PM
I will, but in the meantime, can you post the code as it should appear in v2.4.2?

And does it have to be in both files?