Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Trying to get this mod to work with 1.5.6

    I am getting this error and confused on why.

    [13-Aug-2019 00:47:46 America/New_York] Request URI: /zencart/index.php?main_page=checkout_success, IP address:
    #1 require(/srv/html/zencart/includes/templates/template_default/templates/tpl_account_history_info_default.php) called at [zencart/includes/templates/template_default/templates/tpl_checkout_success_default.php:74]
    #2 require(/srv/html/zencart/includes/templates/template_default/templates/tpl_checkout_success_default.php) called at [zencart/includes/templates/responsive_classic/common/tpl_main_page.php:171]
    #3 require(/srv/html/zencart/includes/templates/responsive_classic/common/tpl_main_page.php) called at [zencart/index.php:97]
    --> PHP Warning: Use of undefined constant TEXT_ACCOUNT_INFO_RETURNS_TEXT_LINK_HEADER - assumed 'TEXT_ACCOUNT_INFO_RETURNS_TEXT_LINK_HEADER' (this will throw an Error in a future version of PHP) in zencart/includes/templates/template_default/templates/tpl_account_history_info_default.php on line 178.


    tpl_account_history_info_default.php line 178:
    . zen_image_button(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT) . '</a>'; ?></div> <?php } else { ?> <div class="rmaRequestButton"><h4><?php echo TEXT_ACCOUNT_INFO_RETURNS_TEXT_LINK_HEADER; ?>

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

    Default Re: Trying to get this mod to work with 1.5.6

    Put that define in the associated language file.

    Add
    define('TEXT_ACCOUNT_INFO_RETURNS_TEXT_LINK_HEADER', 'Returns');

    to
    includes/languages/english/YOUR_TEMPLATE/account_history_info.php
    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
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: Trying to get this mod to work with 1.5.6

    Quote Originally Posted by swguy View Post
    Put that define in the associated language file.

    Add
    define('TEXT_ACCOUNT_INFO_RETURNS_TEXT_LINK_HEADER', 'Returns');

    to
    includes/languages/english/YOUR_TEMPLATE/account_history_info.php

    It is there, I have it in template_default new install and still get this error

  4. #4
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: Trying to get this mod to work with 1.5.6

    I know what I did nevermind lol

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

    Default Re: Trying to get this mod to work with 1.5.6

    OK. Now you need to pull in this language file in
    includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_success_default.php
    above where you pull in tpl_account_history_info_default.php
    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.

  6. #6
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: Trying to get this mod to work with 1.5.6

    Quote Originally Posted by swguy View Post
    OK. Now you need to pull in this language file in
    includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_success_default.php
    above where you pull in tpl_account_history_info_default.php
    What you mean? I have to also define it in tpl_checkout_success_default.php?

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

    Default Re: Trying to get this mod to work with 1.5.6

    If you look at includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_success_default.php

    you'll see it pulls in the template file for tpl_account_history_info_default.php.

    You have added new constants to the language file for tpl_account_history_info_default.

    So you either have to

    a) Also pull in the language file for tpl_account_history_info_default.php in tpl_checkout_success OR
    b) Copy the new constants in the language tpl_account_history_info_default into the language file for tpl_checkout_success OR
    c) Migrate new constants introduced in the language file for tpl_account_history_info_default.php to a file in (say)
    includes/languages/english/extra_definitions
    where they will be shared by all templates.
    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.

  8. #8
    Join Date
    Jan 2018
    Posts
    165
    Plugin Contributions
    4

    Default Re: Trying to get this mod to work with 1.5.6

    Got ya.. thanks for clarification. I am going to try it.

  9. #9
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: Trying to get this mod to work with 1.5.6

    This was never corrected in the mod. Those defines are in the extra definitions files but no matter what there are 4 instances of the define text not being pulled in by the account_history_info and account history files. Can you elucidate why this might be happening? I also put them into those language files and still no go.
    The full-time Zen Cart Guru. WizTech4ZC.com

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Trying to get this mod to work with 1.5.6

    Quote Originally Posted by delia View Post
    This was never corrected in the mod.
    ?
    Quote Originally Posted by delia View Post
    Those defines are in the extra definitions files but no matter what there are 4 instances of the define text not being pulled in by the account_history_info and account history files. Can you elucidate why this might be happening? I also put them into those language files and still no go.
    Whenever extra_definitions files appear to not be being used it's because:
    - the file isn't actually in the extra_definitions directory
    - the file is in a different template's subdirectory under extra_definitions instead of in the one for the current template or in extra_definitions itself to apply to all templates
    - file permissions are set such that the PHP processes on the server have no ability to see the files and therefore can't read them and thus aren't loading them
    - the file's filename doesn't end in .php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Trying to get storeya feed script to work
    By Amethyst_fairy in forum General Questions
    Replies: 6
    Last Post: 19 Jul 2017, 04:28 PM
  2. v151 will this work?? can this mod be updated
    By kitcorsa in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 2 Nov 2014, 01:02 PM
  3. can anyone help me get dirbank mod to work with Fast & Easy Checkout?
    By lankeeyankee in forum Addon Payment Modules
    Replies: 0
    Last Post: 21 Nov 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