Thread: Print invoice

Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,227
    Plugin Contributions
    6

    red flag Print invoice

    I have the Print Invoice Module Installed found here https://www.zen-cart.com/downloads.php?do=file&id=1089

    Written by Dr Byte.

    This no longer appears to work with the following:

    PHP Code:
    <a class="orderInvoice" href="javascript:popupWindow('<?php echo zen_href_link('popup_print_invoice&order_id=' $_GET['order_id']); ?>');"><?php echo TEXT_PRINT_RECEIPT?></a>
    So I thought of changing javascriptopupWindow to window.open, however this doesn't find the ORDER ID with the above popup_print_invoice&order_id=' . $_GET['order_id']

    Any ideas how I would get it to work?
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Print invoice

    Does adding back the popupWindow() function fix it?

    function popupWindow(url) {
    window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=600,height=460,screen X=150,screenY=150,top=150,left=150')
    }
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,227
    Plugin Contributions
    6

    Default Re: Print invoice

    Quote Originally Posted by swguy View Post
    Does adding back the popupWindow() function fix it?

    function popupWindow(url) {
    window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=600,height=460,screen X=150,screenY=150,top=150,left=150')
    }
    No but then I could be writing it wrong. Are you able to write it how you think it should be written please? e.g. with
    PHP Code:
    <?php echo zen_href_link('popup_print_invoice&order_id=' $_GET['order_id']); ?>
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Print invoice

    What I gave you is something that is the the <head> block. The piece you just posted is unchanged.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

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. Print invoice automatically?
    By dwalk83 in forum Managing Customers and Orders
    Replies: 4
    Last Post: 23 Aug 2007, 05:09 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR