Jump to content

which file sends sale email confirmation


keat

Recommended Posts

Guys

A while ago, i successfully modified the sale email notification, so that it included the customer comments.

I now want to do the same, so that it includes the customers telephone numbers, but I cannot for the life of me remember which file I modified.

I thought it was ordersucces.inc.php, but no amount of modifcation will do what I want it to do, so I'm guessing it was a different file.

Foolishly, I didn't take notes.

Could someone remind me which file gererates and sends this email please.

Dear CubeCart Store Administrator,

New Order Number: DBO-100312-123801-8604 placed on Mar 12 2010, 12:38 PM

~~~~~~~~~~~~~~~~~~~~~~~~~~

Company: mr

Name: mr k r

E-Mail:

Subtotal: £1.50

Coupon Discount: £0.00

Postage & Packaging: £3.95

Tax: £0.95

Grand Total: £6.40

~~~~~~~~~~~~~~~~~~~~~~~~~~

Invoice Address:

mr

mr k r

1

1

1

1

1

United Kingdom

Shipping Address:

mr k r

1

1

1

1

1

United Kingdom

Payment Method: PayPal

Shipping Method:

Customer comments: zzzz

~~~~~~~~~~~~~~~~~~~~~~~~~~

Order Inventory:

Product: Maintenance Spray

Quantity: 1

Product Code: WC1

Price: £1.50

Link to comment
Share on other sites

The text is in the language file.

Hi Robsta

I'm looking for the actual php file which generates the email that we recieve when a customer places an order.

For some reason, it doesn't include the customer telephone number.

I'm looking to modify the script, so that it would.. making the job for the girls inputting into our system a little easier.

I've done this once, but can't rememeber which file I modified.

Link to comment
Share on other sites

Two parts to this:

/language/YOURLANG/land.inc.php at around line 1585, 'admin_email_body_1'

/includes/content/gateway.inc.php at around line 234, $text = sprintf($lang['front']['gateway']['admin_email_body_1'],

Edit the language file array element:

~~~~~~~~~~~~~~~~~~~~~~~~~~

Name: %s

E-Mail: %s

Phone: %s

Then add the customer data item to the sprintf function:

$ccUserData[0]['title']." ".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName'],

$ccUserData[0]['email'],

$ccUserData[0]['phone'],

That should do it.

Link to comment
Share on other sites

Two parts to this:

/language/YOURLANG/land.inc.php at around line 1585, 'admin_email_body_1'

/includes/content/gateway.inc.php at around line 234, $text = sprintf($lang['front']['gateway']['admin_email_body_1'],

Edit the language file array element:

~~~~~~~~~~~~~~~~~~~~~~~~~~

Name: %s

E-Mail: %s

Phone: %s

Then add the customer data item to the sprintf function:

$ccUserData[0]['title']." ".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName'],

$ccUserData[0]['email'],

$ccUserData[0]['phone'],

That should do it.

Sorted..

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...