Jump to content

Admin email doesn't include everything ordered


Guest speak2stv

Recommended Posts

Guest speak2stv

Running Killer_Silver-blue, ver. 3.0.5

If a customer orders multiple items, only one shows up in the email to the admin:

A sample is included below. You can see at the top that $13 worth of product was ordered, but only one shows at the bottom (the last one, I think) :rolly: . Any ideas?

***

Dear CubeCart Store Administrator,

New Order Number: 051103-101500-8849 placed on Nov 03 2005, 10:15 AM

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

Name: first last

E-Mail: xxx

Subtotal: $13.00

Postage & Packaging:

Tax: $0.00

Grand Total: $13.00

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

Invoice Address:

first last

street

city

state

zip

United States

Shipping Address:

first last

street

city

state

zip

United States

Payment Method: Print Order Form

Shipping Method: Free Shipping

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

Order Inventory:

Product: Roasted Potato and Onion Bread

Quantity: 1

Product Code: ROA83

Price: $4.00

****

Thanks in advance!

Link to comment
Share on other sites

The thread is here: http://www.cubecart.com/site/forums/index....showtopic=11940

Man I hate finding bugs in my work.  I left out one stinkin period!  Anyway guys, on line 113 of /includes/content/gateway.inc.php the assignment needs to concatenated, not strictly assigned.

So instead of this:

$prodtext = sprintf($lang['front']['gateway']['admin_email_body_4'],

   	 $basket['invArray'][$i+1]["name"]);




It needs to read this:


$prodtext .= sprintf($lang['front']['gateway']['admin_email_body_4'],

   	 $basket['invArray'][$i+1]["name"]);

Otherwise, you'll only get one product listed in the admin e-mail.  This fixes that.  One darned little dot.  Oh well, at least I found it.  ;)

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