Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2008
    Posts
    19
    Plugin Contributions
    0

    Default How to send a second email after paypal payment?

    I'm using Zen Cart 139H with PayPal IPN (Basic PayPal service).

    I'm selling information, so the user who buys something will receive a PDF file, that has a password on it.
    Also I'm giving free PDFs that password are not required.

    My issue is that when user buy a PDF and pay using paypal, he/she should receive the password for the PDF immediately, but I don't know how to do it.
    I know how to change the paypal payment received email, but how to attached a password specific for that PDF the user bought?

    The process is like this:
    1) user go to the zen cart and 'buy' a free pdf.
    2) The link is imedialty send to the user and he/she can donwload it.

    or
    1) the user go and buy a PDF type A
    2) I have to manually check for it, and send to that user the password for the PDF A

    or
    1) the user bo and buy a PDF type B
    2) I have to manually check for it, and send to that user the password for the PDF A

    Is there any way I can automatic send the correct password for the PDF the user bought?

    I'm only using Paypal as payment.

    Thank you.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to send a second email after paypal payment?

    First, you will give your customers better experience if you use the PayPal Express Checkout module instead of the IPN module.

    Second, you can trigger additional content to appear in the emails that the store sends, by intercepting the order process with custom code. Much like adding a software serial number to an order. This works easily when your customer is purchasing an item that they'll download from your site. ie: a downloadable product, not something you email to them after they buy.

    So, set your products up as downloadable items, and your customers will receive a download link automatically.

    Next, add your own custom code to issue a password/pin/serialnumber/whatever when the order email is generated.
    Best to hook into the NOTIFY_ORDER_PROCESSING_ATTRIBUTES_EXIST notifier point, but there are other ways you could tackle the same thing.
    There are several threads discussing this topic already, including these: www.zen-cart.com/forum/search.php?do=process&query=$custom_insertable_text plus others.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

 

 

Similar Threads

  1. v151 Send Address & Order Email to Me after Payment?
    By itskater in forum General Questions
    Replies: 4
    Last Post: 28 Aug 2013, 06:19 PM
  2. how to send different checkout email by payment?
    By webenjoy in forum General Questions
    Replies: 5
    Last Post: 30 Sep 2010, 05:06 PM
  3. How to send email after sale, no credit card payment?
    By moomo in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 6 Dec 2009, 07:05 PM
  4. How do I send BCC to myself when I Send Email to Customer?
    By Zinfandel in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2008, 01:55 PM
  5. I want to Confirm PayPal email address after payment
    By SonicE in forum PayPal Website Payments Pro support
    Replies: 0
    Last Post: 17 Apr 2008, 07:32 AM

Posting Permissions

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