Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2009
    Location
    Chicago, IL
    Posts
    45
    Plugin Contributions
    0

    Default Add Order ID# and Customer Name to PDF Download

    Hi all,
    I'm setting up a store with ZC 1.3.8a and I'm trying to create a coupon PDF download where the Customer's Order ID# and Name are added to the PDF and then the file is served up for download.

    I've created the downloadable PDF files and that's all working great, but I don't know where to begin to add the customer's information to it.

    I saw this on the v.2.0 thread:
    Download system now allows notifier hook to allow intercept if alternate handling is required. This can allow for other protocols and even alterations to download content before delivery.
    And it sounds a lot like what I'm trying to do. I have a ton of books that I'm trying to sort through, but my PHP kung fu is weak. Any help would be greatly appreciated.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Add Order ID# and Customer Name to PDF Download

    And it sounds a lot like what I'm trying to do. I have a ton of books that I'm trying to sort through, but my PHP kung fu is weak.
    As is my PDF knowledge
    If this was a programmable email would be simpler but as far as I am aware a PDF is not dynamically programmable
    But I have been incorrect many times
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2009
    Location
    Chicago, IL
    Posts
    45
    Plugin Contributions
    0

    Default Re: Add Order ID# and Customer Name to PDF Download

    Thanks for the reply kobra. I'll try to clarify what I'm talking about a little because I think my initial post might have made my aim confusing.

    I would like the result to be similar to what a PDF invoice generator does. You set up the background PDF file and then the cart combines it with the order info and creates a new PDF that the user can download. I've attached an example from the german rl_invoice3 mod. The first PDF is the background template and the second is the PDF invoice that was produced when I made a dummy order. I had to shrink the holy bejeezus out of the Invoice.pdf file to get to be small enough to attach, but I hope you can get the gist of what I'm saying.

    I need this to happen with the product download as the background template, though and I'm not sure how to make that work. There's also the issue syncing it to the customers account download link. I'm studying the rl_invoice3 class to try to figure it out, but I was hoping that this effect had already been achieved or someone with more knowledge of the subject could lend a hand.
    Attached Files Attached Files

  4. #4
    Join Date
    Apr 2009
    Location
    Chicago, IL
    Posts
    45
    Plugin Contributions
    0

    Default Re: Add Order ID# and Customer Name to PDF Download

    For any one who cares, I used the ezpdf class extension from http://www.ros.co.nz/pdf/ to get it done.

  5. #5
    Join Date
    Jan 2010
    Posts
    65
    Plugin Contributions
    0

    Default Re: Add Order ID# and Customer Name to PDF Download

    Quote Originally Posted by chrismarie View Post
    For any one who cares, I used the ezpdf class extension from http://www.ros.co.nz/pdf/ to get it done.
    This is exactly what I'm looking for but I have no idea how to go about doing this.

  6. #6
    Join Date
    Apr 2009
    Location
    Chicago, IL
    Posts
    45
    Plugin Contributions
    0

    Default Re: Add Order ID# and Customer Name to PDF Download

    We're kind of bouncing around in different threads, so let's work it out in this one.

    I'll try my best to help you get this set up for your cart, but first I need some specs:
    Exactly what are you trying to watermark? (how many pages, pictures, etc)
    What information do you want transferred from the store to the document?
    What version of PHP is your server running?
    What kind of security measures do you require for your document? Any other pertinent info?
    Feel free to PM me if you don't want to air your business, but I'd like to keep as much info as possible available to other browsers so that my helping you can help them too.

  7. #7
    Join Date
    Jan 2010
    Posts
    65
    Plugin Contributions
    0

    Default Re: Add Order ID# and Customer Name to PDF Download

    Quote Originally Posted by chrismarie View Post
    We're kind of bouncing around in different threads, so let's work it out in this one.

    I'll try my best to help you get this set up for your cart, but first I need some specs:
    Exactly what are you trying to watermark? (how many pages, pictures, etc)
    What information do you want transferred from the store to the document?
    What version of PHP is your server running?
    What kind of security measures do you require for your document? Any other pertinent info?
    Feel free to PM me if you don't want to air your business, but I'd like to keep as much info as possible available to other browsers so that my helping you can help them too.
    I like what you've done with the watermarking so far. It's great. I might use that for something else.

    As for this. I just need the customer order#, customer name and email addie in the header or footer.

    I sell fiction e-books in different formats, pdf being one of them so the pdf file is already on my server. I just need the above information stamped onto all the pages in the current pdf when the person downloads the pdf book. Obviously this needs to happen on the fly without changing the pdf on the server itself but only the one the customer receives. All pdfs are unprotected and should remain that way. The e-Books differ in lenght so I can't give an exact number of pages.

    MySQL version 5.0.89-community
    PHP version 5.2.8

    Let me know if there is anything else you need. Thanks a million!

 

 

Similar Threads

  1. Replies: 3
    Last Post: 19 Dec 2014, 01:16 PM
  2. v139h Add customer name to end of title of admin order email
    By dgent in forum General Questions
    Replies: 1
    Last Post: 13 Nov 2014, 11:11 AM
  3. Automatically Stamping Customer Name on PDF eBooks?
    By technologynow in forum General Questions
    Replies: 17
    Last Post: 28 Aug 2012, 06:56 PM
  4. add to customer order no download link showing up in their account
    By mydesignerstudio in forum Managing Customers and Orders
    Replies: 1
    Last Post: 21 Feb 2010, 05:58 PM

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