Jump to content

Problem with order confirmation email


pat_ads

Recommended Posts

Hello all!

 

Whenever a client purchases more than one of the same item, the order confirmation email lists each item separately, yet totals the multiples in each listing.

 

Dear Bob Jones (ABC Company),

 

We have received your order and will be processing it shortly. The details of the order are below:

 

Order Number: 8116160554

 

Product/Service: Software - Pro

First Payment Amount: $39.00 USD

Recurring Amount: $39.00 USD

Billing Cycle: Monthly

Quantity: 2

Total: 78

 

Product/Service: Software - Pro

First Payment Amount: $39.00 USD

Recurring Amount: $39.00 USD

Billing Cycle: Monthly

Quantity: 2

Total: 78

 

Total Due Today: $78.00 USD

 

You will receive an email from us shortly once processing is complete. Please quote your order reference number if you wish to contact us about this order.

 

By reading the above, you can see that it appears at first glance to the customer, that they have purchased 2 quantities of the item, two separate times. What I think "should" happen is that the product should be listed 1 time, with the Quantity and total shown.

 

As another note, the "Total" listed at the bottom of each listing does not list the $XX.00 USD, it just lists XX, which looks rather unprofessional.

 

The order details are from the

{$order_details}

variable.

 

Any hints as to how to fix this?

Link to comment
Share on other sites

I think it must be a foreach loop that generates the text.

 

as an aside, the lack of a currency symbol and code occurs for me too (perhaps a bug)...

 

you could add a currency symbol by using the following code:-

 

{$order_details|replace:'Total: ':'Total: $'}

 

you can use multiple replace statements, so I think to get the "USD" at the end, you'd have to find out the name of the order_total variable and add USD using code similar to above.

 

i'm wondering if another way would be to disable the order confirmation email (would apply to all orders though), but send a welcome email instead (which you can either create new or edit an existing one) - that might give you a little more control over the layout.

Link to comment
Share on other sites

Thanks. Maybe I should report it as a bug. Same thing happens when WHMCS sends a New Order Notification. We bill for per transaction gateway fees, and when a customer has 1500 transactions, that email to the customer and to me gets LOOOONG.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated