+ Reply to Thread
Results 1 to 8 of 8

Thread: How can i get the user profile data in payment script?

  1. #1
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421

    Question How can i get the user profile data in payment script?

    Hello Flynax Team,

    i have implement in my script a invoice pdf feature.
    After a successful payment a invoice.pdf will be generated for customer.
    The user must be registered and logged in for adding a listing or buying a package.

    I am missing only the user profile data.
    I need the follow user data separately

    - ID
    - Forename
    - Lastname
    - Address
    - Zip
    - City
    - Country

    Is there a global function for user profile data?
    How can i get the user data for my script?

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; October 20, 2013 at 09:13 PM.

  2. #2
    Dear Steffen,

    You can find the info into the file:
    includes/classes/rlListings.class.php

    PHP Code:
    Only registered members can view the code
    How get account info?
    PHP Code:
    Only registered members can view the code
    Or
    PHP Code:
    Only registered members can view the code
    If i can be of any further assistance don't hesitate to contact me.

    Other than that happy coding...
    Flynax Technical Department

  3. #3
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hello Alex,

    @first thanks for the fast response.
    now my invoice.pdf script get all data from user profil i need.

    But now, i have a other question.
    All customer invoice.pdf are stored in folder files/invoices/
    I have create a definition in config.inc.php.

    define('PDFDOCS', RL_FILES . 'invoices' . RL_DS);

    Now i want to create a link in transactions.tpl to the invoice.pdf.

    How can i do this?

    I have customized my transaction.tpl and add some new code...
    RE_Nr is stored indatabase table transactions.
    All this work fine... except the creation of download links

    PHP Code:
    Only registered members can view the code
    The PDF Filename is stored in database. It is the Invoice Number (RE_Nr).

    I have test the follow->

    PHP Code:
    Only registered members can view the code
    But this failed and i see a blank page in transactions.

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; October 24, 2013 at 06:22 AM.

  4. #4
    Steffen,


    Blank page after click to the link or?
    Sorry but I do not quite understand your thinking..


    PHP Code:
    Only registered members can view the code

    Other than that happy coding...
    Flynax Technical Department

  5. #5
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hello Alex,

    i mean the transaction table in Admin panel.
    Here is a picture from my modification.

    transaction_invoice.jpg

    PDF-Rechnung is the part i mean.
    You can see the invoice number and if the admin click this number (Link) then should open the invoice.pdf that stored in folder files. For example: Invoice number = 2013-AD130001-001 and file link is yourwebsite.com/files/invoices/2013-AD130001-001.pdf.
    I have stored a link in database, and there are a mystery effect.
    Flynax Script changed yourwebsite.com/files/ to yourwebsite.com/admin/files/ ... that caused Error 404...

    I hope you unterstand what i mean...
    Last edited by Steffen Buschkemper; October 25, 2013 at 05:30 AM.

  6. #6
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Thanks for your example, but after adding your code

    PHP Code:
    Only registered members can view the code

    the transaction table in Admin panel will not load.

  7. #7
    Hello Steffen,
    Your idea with the pdf invoice for the customers it is brilliant. Because the invoice plugin doesn't work with the bank transfer (my only payment method) I am not able to send them an fiscal invoice after their payment. So your pdf modification will be like a glove for me. Do you think you can share your work with us?
    Danke!
    Last edited by Spinu Alexandru; March 5, 2015 at 05:47 PM.

  8. #8
    Junior Member
    Join Date
    Mar 2015
    Location
    Germany
    Posts
    1
    Hallo Steffen, Hallo Spinu,
    we are also looking for a invoicing solution for the Flynax Script which makes it possible to create an invoice with several tax rates (depending on the Country --> Germany, European Coutries, International ... etc) It would be very helpful to share the experiences how to implement this in the flynax script.
    We don't use (and paid) at the moment for the invoice plugin. It seems that this Module is not able to cover all related Transfer Methods as you mentioned Spinu.
    So the question is now "How we get an invoice most automatically based on the selected Plan and Usera

+ Reply to Thread