Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
  1. #21
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    DrByte if you're there...

    I've tried to use your auto loader/observer code to generate a 2nd email to a customer after an order is placed. This email would be generated based on the payment type. Here's the thread I've reviewed:

    http://www.zen-cart.com/showthread.p...l-Custom-Email

    Do you have any suggestions how to tweak it to get what I'm hoping for? Thank you!

  2. #22
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    Wait!! It worked! There was a significant lag - about 15 minutes, but it worked! I noticed that when I was working with the auto-loader/observer setup it was instantaneous. Also, I am still getting double emails on the order confirmation to admin. But at least it worked! Thank you so much again. I'll try to tweak this a bit more and update with the best fit. Thank you.

  3. #23
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    Ahhhh, I'm back. I ran a few more test orders and the lag is just not going to work. Sometimes the email was sent right away, others about 10-15 minutes after the order was placed and another that took over an hour. I don't know what determines this but from trial and error I am finding that the option of running an auto loader/observer command is smoother. Can anyone take a look at this thread:
    http://www.zen-cart.com/showthread.p...l-Custom-Email

    I'm trying to understand how I would be able to include details from the order such as customer name, customer order number and order total. Thank you.

  4. #24
    Join Date
    Jan 2004
    Posts
    58,283
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Can I send extra order confirmation emails based on payment method?

    Ajeh's instructions are correct.

    And as for the lag, you need to understand that the emails are sent RIGHT AWAY. The lag is NOT from Zen Cart. The lag is completely external, and is probably a one-time quirk and not an indicator of regular response.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #25
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    Dr.Byte! Thank you for your input. Yes I assume that the lag was external as it was hit and miss. However after doing many, many mock orders, 107 to be precise I do find that the auto loader/observer has a consistent response each time. I also like that these files are outside of the zen-cart files so that it makes for easy upgrading in the future.

    Also, my admin is getting duplicate order emails for the additional email command, no biggie but if it can be avoided that would be best.

    Is there a way that this can be made to reflect the order details such as customer name, order number and order total? Can it also be scripted so that it will only be run when a particular payment module is used at checkout?

  6. #26
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    Oh one more thing. If I just stick with the modified code to the order.php file under classes, I'm stick stuck trying to figure out how to incorporate the order details into that additional email, such as customer name, order number and order total.

    If I can get this going I can deal with the lag time and the duplicate admin emails. I haven't been able to figure that part out though. Thank you again.

  7. #27
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    Hi are there any zen-cart programmers willing to address this? I am more than willing to make a donation towards the development of zen-cart as I think this would be more beneficial than using a third party developer. Thank you.

  8. #28
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Can I send extra order confirmation emails based on payment method?

    Could you perhaps give an example of what you want the 2nd email to the customer to look like and for what payment module it is?

    What subject?

    What text in the email, including whatever from the order you want to see in it?

    Search your order.php for:
    zen_email

    What lines come up and what do they read?

    Do you have Notifiers sending emails out associated with the order.php class?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  9. #29
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    Ahhh, I wrote a long reply and then it didn't post. Here it goes again.

    Currently, my order.php file is the default file. I could not get the additional email to work the way I needed so I reverted back. Using the order.php method I was experiencing inconsistencies in the delivery time of the additional email. Some were instantly, others a few minutes later and even more with a bigger delay of over an hour. I did over 100 mock orders to test this out and repeatedly had conflicting results. I was also getting duplicates of the admin order confirmation with each message being sent. I would get the admin confirmation with the regular customer confirmation then I would receive it again once the additional email was sent. However with the observer method it was instantanous each time without any trouble.

    Here is the thread with the auto load/observer method that was provided by DrByte:
    http://www.zen-cart.com/showthread.p...l-Custom-Email

    Using this method I was able to acheive the additional email that was delivered instantly along with the customer order confirmation. However, i don't know how to incorporate the order details into the email. Here's what I would like the message to say:

    Dear $customer_name,

    Thank you so much for placing an order with us. Please submit your payment of $order_total for order number $order_number. You may use the following details to complete your Money Gram Money Transfer...

    Thank you again so much. I didn't think this would be this difficult.

  10. #30
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Can I send extra order confirmation emails based on payment method?

    You link does not work ...

    Can you try to post it again?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. shipping method based on payment method?
    By psr racing in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Apr 2011, 01:25 PM
  2. Payment method based on shipping type?
    By celticwebsolutions in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Dec 2010, 11:25 AM
  3. Shipping based on payment method
    By Prorad in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 30 Oct 2009, 01:43 PM
  4. CAN'T send Newsletters, CAN send emails
    By bethalicea in forum General Questions
    Replies: 0
    Last Post: 24 Feb 2009, 04:34 PM
  5. Payment based on shipping method?
    By Jeff G in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Nov 2008, 10:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •