Results 1 to 10 of 10

Thread: IndexU Invoice System addon

  1. #1
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default IndexU Invoice System addon

    It's finally here!

    It took me a while to get the readme done and hopefully it is complete enough that anyone can install/use the IndexU Invoice System.

    Please keep any questions to this thread for now so I can help you if there are problems.

    You can download the addon for free at A-V Tronics - Winnipeg Web Design And Hosting

    As a side note, NiceCoder should have a section where only registered users can download addons such as these. I know it's a basic addon, but with enough addons/mods it may entice people to be registered users and/or to stop using pirated copies of the software.

    You can see a demo of this script running at GoWinnipeg.ca - Directory of Winnipeg businesses online. NOTE that is a live site, so please do not submit links to it!
    Last edited by Bruceper; 06-13-2007 at 12:45 AM. Reason: URL of download changed

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    IndexU Invoice System

    This is the readme file for the IndexU Invoice System written by Bruce Peresky (A-V Tronics).

    This addon will allow users to view and print an invoice as a method of upgrading their link. This link upgrade can be done after a link is added to the directory or at the time of adding a new link. In the case of adding a new link the link will be suspended until such point in time as payment is received. Then the admin will validate the link and unsuspend it. This addon even includes the ability to charges taxes!

    Note that the generated invoice is only seen on the users browser, it does not generate a copy that you as an administrator will see.

    The only files you need to edit are upgrade_form.html (part of IndexU) and invoice.include.php (included within this archive).

    In upgrade_form.html find the matching text below

    <tr class="tbl_normal">
    <td valign="top">Payment Gateway</td>
    <td><%$available_payment_systems%></td>
    </tr>
    <tr class="tbl_caption">
    <td colspan="2">
    <center>
    <input type="submit" name="submit" value="Submit" />
    Add the following right after the last line
    <input type="hidden" name="title" value="<%$title%>" />
    <input type="hidden" name="url" value="<%$url%>" />
    <input type="hidden" name="name" value="<%$contact_name%>" />
    <input type="hidden" name="linkid" value="<%$link_id%>" />

    Before you upload any files, you will need to edit invoice.include.php in a text editor. Below are the settings used and a description of each line.

    Settings
    $domain = "yourdomain.com"; <- Your domain name with no http://www
    $company = "Company Name"; <- Your company name
    $myaddress1 = "address"; <- Your address
    $myaddress2 = "address"; <- Your address
    $myaddress3 = "address"; <- Your address
    $myaddress4 = "address"; <- Your address
    $phone = "1.123.123.1234"; <- Your phone number
    $terms = "xx days"; <- how long they have from generating the invoice to pay it. Note that you don't see the invoices so this doesn't matter to you, but some companies take a long time to pay for their invoices. This is a way to push them to pay faster.
    $currency = "Your Currency"; <- enter your currency here, ie Canadian Funds, US Dollars, Florins or whatever
    $payto = "Your name or company name"; <- who they make the payment out to, careful or they'll write the check out to the domain name and you may not be able to cash it
    $tax1name = "Tax1Name"; <- a tax system! If you must chage tax, enter the tax name here
    $tax2name = "Tax2Name"; <- a tax system! If your country has two taxes, enter the second one here
    $tax1value = ".06"; <- tax value that matches Tax1Name, in decimal format only!
    $tax2value = ".00"; <- tax value that matches Tax2Name, in decimal format only!

    Blank values will simply return blank entries. For example if you do not enter in a Company Name then none will be shown.

    Uploading
    After invoice.include.php has been edited upload the three files into to payment directory.

    CHMOD
    After uploading, CHMOD invoice.inc.php to 666

    Enable/Disable
    In the IndexU control panel go to Invoice and Configure. Note that under the Available Payment Systems you will see "invoice" is now enabled.

    To disable this payment method click on Configure and change $enable = "1"; to $enable = "0";

    License/Cost
    Provided free of charge within the limits of the included license file

    Troubleshooting/Problems
    Please leave me a message at the Nicecoder forum. Note that I will not respond to private messages unless there is a security issue with the provided script.

    Credits
    IndexU Invoice System written by Bruce Peresky (A-V Tronics - Web design and hosting win Winnipeg Manitoba Canada)

  3. #3
    Join Date
    May 2007
    Location
    Pontianak City
    Posts
    27

    Thumbs up

    thank a lot. i will try to install it.
    The Greatest Of Our Strength and Weakness, is Our HOPE

  4. #4
    Join Date
    Feb 2004
    Location
    Slovakia
    Posts
    72

    Default

    Hello!
    This is a great mod, but I am missing an e-mail function - e-mail should be send to directory owner and link owner.
    Is it possible to add it some way?
    Thanks.
    Vsevedko
    Vsevedko - Slovak Directory - Indexu Deluxe 1.4.2, Catalog of slovak blogs - Indexu 5.4.0

  5. #5
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I'll look into it, but I won't promise anything

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I took a quick look, and see an issue with email notifications to the user.

    On a link that is already in the database, the user must update their link to include their email address before they can upgrade it. This just causes user annoyance and will make you lose sales.

    I could make the script work without requiring the user email address however, that should work fine. I'll dip deeper into it shortly.

  7. #7
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It's there. Extract the file using a good compression program such as winrar.

  8. #8
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default How can I round up or down the total?

    Hi,

    How can I round up or down the total?
    At the present I get some thing like this;
    $78.253
    so I need to change it so it shows as;
    $78.25

    http://www.idobride.com.au
    Regards
    Mitchell

  9. #9
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You'd need to change the code and add a new routine for round, or change your pricing so it comes out even which is probably easier.

    I have no idea how to do it, but you can look at Google for "php math round" for some ideas.

  10. #10
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by Bruceper View Post
    You'd need to change the code and add a new routine for round, or change your pricing so it comes out even which is probably easier.

    I have no idea how to do it, but you can look at Google for "php math round" for some ideas.
    in invoice.php use number_format. see http://us2.php.net/manual/en/function.number-format.php (you could use others but...)

    $tax1 = $price * $tax1value;
    $tax2 = $price * $tax2value;
    $total = $price + $tax1 + $tax2;



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. custom work(addon)
    By soundofvtec in forum Blocks and Modification
    Replies: 1
    Last Post: 06-27-2006, 01:06 AM
  2. Include your static pages into Indexu template system
    By armadinina in forum Blocks and Modification
    Replies: 25
    Last Post: 06-06-2006, 11:34 AM
  3. [5.0.1/Addon] Google sitemap
    By dody in forum Blocks and Modification
    Replies: 0
    Last Post: 01-22-2006, 11:09 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
  •