Results 1 to 8 of 8
  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
    6,489
    Plugin Contributions
    257

    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, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  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
    6,489
    Plugin Contributions
    257

    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, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  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
    6,489
    Plugin Contributions
    257

    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, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  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.

 

 

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