Results 1 to 6 of 6
  1. #1
    Join Date
    May 2010
    Posts
    125
    Plugin Contributions
    0

    Default Print Invoice Popup

    I have installed this mod which works perfectly barring one funny - on step 2 0f 3 in the checkout process i get this at the bottom of the page

    TEXT_CHECKOUT_PRINT_ALERT

    TEXT_PRINT_RECEIPT And insert the following two lines at the end of the file includes/languages/english/YOUR_TEMPLATE/checkout_success.php define('TEXT_CHECKOUT_PRINT_ALERT', 'For your record of this order, you may click link below to'); define('TEXT_PRINT_RECEIPT', '[Print Order Receipt]');

    Have been back thro all the files but cannot see what I would have done to cause the problem??

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

    Default Re: Print Invoice Popup

    Have been back thro all the files but cannot see what I would have done to cause the problem??
    Display of a constant is almost always the result of a mis-edit of a language file
    Omitting one or both of the single quotes
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2010
    Posts
    125
    Plugin Contributions
    0

    Default Re: Print Invoice Popup

    Hi Kobra thanks for coming to my aid yet again, these are the only changes made in files, but I did go back and replace the checkout_payment.php which is where I get the error assume then it might be the popup_print_invoice.php in english folder?? This is out the box?? Is there something else I am doing?

    -- includes
    |-- languages
    | `-- english
    | |-- extra_definitions
    | | `-- small_logo.php
    | `-- popup_print_invoice.php
    |-- modules
    | |-- pages
    | | |-- account_history_info
    | | | `-- jscript_main.php
    | | |-- checkout_success
    | | | `-- jscript_main.php
    | | `-- popup_print_invoice
    | | |-- header_php.php
    | | `-- jscript_main.php
    | `-- print_invoice.php
    `-- templates
    `-- template_default
    |-- images
    | `-- logo.gif
    `-- popup_print_invoice

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

    Default Re: Print Invoice Popup

    Is there something else I am doing?
    As stated - Display of a constant is almost always the result of a mis-edit of a language file

    Use the developers tool kit to find files that have "TEXT_CHECKOUT_PRINT_ALERT" in them
    You will be seeking one that has the define for it
    https://www.zen-cart.com/tutorials/index.php?article=38
    https://www.zen-cart.com/tutorials/index.php?article=39
    Zen-Venom Get Bitten

  5. #5
    Join Date
    May 2010
    Posts
    125
    Plugin Contributions
    0

    Default Re: Print Invoice Popup

    I had done that and it shows the following which is exactly right

    /includes/languages/english/classic/checkout_success.php

    But this txt is showing on the payment information- billing address pg and if I go there I have made no changes - did not even open it during the installation process

    TEXT_CHECKOUT_PRINT_ALERT

    TEXT_PRINT_RECEIPT And insert the following two lines at the end of the file includes/languages/english/YOUR_TEMPLATE/checkout_success.php define('TEXT_CHECKOUT_PRINT_ALERT', 'For your record of this order, you may click link below to'); define('TEXT_PRINT_RECEIPT', '[Print Order Receipt]');

    Have reinstalled from scratch having replaced any of the files that have changes made to them from a clean back up and still land up with the same result

    Sooo frustrated thanks for the help

  6. #6
    Join Date
    May 2010
    Posts
    125
    Plugin Contributions
    0

    Default Re: Print Invoice Popup

    I take it all back fixed many thanks for the help as usual you were right and i was not too bright!

    Just as an aside this is the best forum ever - building a regular site for a friend tried e107 and joomala and the support system does not even come close to zen

 

 

Similar Threads

  1. v150 Print Popup Invoice for v1.5?
    By futurist71 in forum Upgrading to 1.5.x
    Replies: 19
    Last Post: 1 Mar 2019, 10:35 PM
  2. popup print invoice - no content
    By patternman in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 2 Dec 2011, 07:47 PM
  3. 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
  4. Popup Print Invoice help
    By eps492003 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 May 2010, 09:50 PM
  5. Popup Print Invoice Version 1.1
    By Decostyle in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 15 Feb 2009, 08:28 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