Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    608
    Plugin Contributions
    0

    Default Re: Print Invoice from FrontEnd

    This was originally released by Blindside. If you search this old archived thread for "print invoice" you'll find the version for 1.3.7.

    Brent

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Print Invoice from FrontEnd

    This thread shows what gems are sometimes hidden away in the forum.

    The 1.1 version posted by redmonds does appear to be the latest. I can't locate a version specifically for 1.3.7, but a quick check over the v1.1 code shows nothing obvious that would get inn the way of using that version with Zen Cart 1.3.7.1 or indeed any version from 1.3.0 onwards, though I haven't actually testing this.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    May 2006
    Posts
    134
    Plugin Contributions
    0

    help question Re: Print Invoice from FrontEnd

    Thanks Guys,

    This is awesome and a big help :)

    Now I just have to email this link to each customer. Any idea how I include this in the order confirmation email?
    index.php?main_page=popup_print_invoice&order_id=1649

    Also on the invoice it displays the column heading Tax and then “None!” is underneath it. I would like to remove both of these words, but have been fiddling around on includes/modules/print_invoice.php and can’t figure it. (I don't use the tax columns, if tax applies I insert it as a separate line).
    Should be possible as I removed these tax column entries from my admin/invoice.php file. Any quick suggestions?

    The other thing I wanted to do with these invoices is make sure the “Commonwealth Bank” image and Credit Card logo images did not appear (I only want them to appear at checkout, I just want the plain text on this invoice). Having HTML and image refs in these fields also causes difficulties when using the EDIT ORDERS module as the fields are then too long and get cut off. I was interested to see although in this includes/modules/print_invoice.php the words “Flat Rate Shipping” appear as just the text only without my large FedEx / UPS logos that are displayed on the checkout. Lines 167-171 may be onto something here, looks like is it clean formatting?

    $format_shipping = explode(" (", $order->totals[$i]['title'], 2);
    $clean_shipping = rtrim($format_shipping[0], ":");
    $display_title = $clean_shipping . ':';

    Pls can anyone help me remove that tax and none! text that is appearing and also make my payment method text appear without the logos??

    Regards,
    Dave
    ApeShop.com - Mobile Cell Phones, Digital Cameras, Camcorders, Lenses, iPods, PSPs, Watches & more!
    http://www.apeshop.com/

  4. #4
    Join Date
    Feb 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Print Invoice from FrontEnd

    Hi All,

    I have used the module. it works great..
    Is there a chance to replace the text "print you order" with a nice button ?

    Please let me know if you know how to

  5. #5
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: Print Invoice from FrontEnd

    You can simply put the button's img tags instead of the [ print order invoice] text in the language file(s)..

    This is excellent addon and should definitely be added to downloads if it's not there yet

  6. #6
    Join Date
    Jan 2005
    Posts
    153
    Plugin Contributions
    0

    Default Re: Print Invoice from FrontEnd

    Here are the modifications you have to make to add "print buttons" on the account and the order history pages...

    in includes/templates/YOUR_TEMPLATE/templates/tpl_account_default.php

    FIND

    Code:
    echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a>
    ADD, AFTER

    Code:
    &nbsp;<a href="' . zen_href_link('popup_print_invoice', 'order_id=' . $orders['orders_id'], 'SSL') . '" target="_blank"> ' . zen_image_button(BUTTON_IMAGE_PRINT_SMALL, BUTTON_PRINT_SMALL_ALT) . '</a>

    in includes/templates/YOUR_TEMPLATE/templates/tpl_account_history_default.php

    FIND

    Code:
    <?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, (isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a>
    ADD, AFTER

    Code:
    &nbsp;<a href="' . zen_href_link('popup_print_invoice', 'order_id=' . $history['orders_id'], 'SSL') . '" target="_blank"> ' . zen_image_button(BUTTON_IMAGE_PRINT_SMALL, BUTTON_PRINT_SMALL_ALT) . '</a>

    in includes/languages/english/button_names.php

    FIND

    Code:
      define('BUTTON_IMAGE_VIEW_SMALL', 'button_view.gif');
    ADD, AFTER

    Code:
      define('BUTTON_IMAGE_PRINT_SMALL', 'button_print.gif');

    Finally, add the two images 'button_view.gif' & 'button_print.gif' attached to this message to the includes/templates/YOUR_TEMPLATE/buttons/english folder.

    Please note that the button_view.gif has been resized a little - it is slightly bigger now. Now are basic icons, if you make better ones, please post them here

    Hope this helps,


    sanji
    Attached Images Attached Images   

  7. #7
    Join Date
    Mar 2008
    Posts
    332
    Plugin Contributions
    0

    Default Re: Print Invoice from FrontEnd

    I've tried to install the mod and it works great except that on the screen, it doesn't show the [Print Order Invoice] but instead shows the text associated with it, please see attached screen shot.

    Any idea where I went wrong?
    Last edited by Decostyle; 13 Apr 2008 at 12:10 AM.

  8. #8
    Join Date
    Jul 2009
    Posts
    127
    Plugin Contributions
    0

    Default Re: Print Invoice from FrontEnd

    Old thread, still hope someone replies. good mod but the option to print my invoice isn't showing up on the account_history_default page. pointers?

 

 

Similar Threads

  1. Client Invoice - problems customizing the popup-print-invoice addon
    By LloydR in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 12 Jan 2011, 10:41 AM
  2. Print Invoice Popup
    By shanesoine in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 24 Nov 2010, 11:52 AM
  3. Make orders.php Invoice button print invoice rather than display it
    By dinki in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 28 Sep 2009, 03:28 PM
  4. Looking to add print invoice and shipp invoice from admin---> orders
    By r4fdud in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 15 Mar 2009, 11:21 PM
  5. Invoice :: FrontEnd & BackEnd :: PDF
    By webschnecke in forum General Questions
    Replies: 0
    Last Post: 6 Mar 2008, 02:22 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