If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Trying to get this mod to work with 1.5.6

Trying to get this mod to work with 1.5.6

Started by tmccaff on 13 Aug 2019, 5:40 AM · Views: 1,111

Results 1 to 11 of 11
13 Aug 2019, 5:40 AM
#1
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

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; ?>

13 Aug 2019, 7:09 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,759
Plugin Contributions:
56

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 Support
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.

13 Aug 2019, 7:18 AM
#3
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Trying to get this mod to work with 1.5.6

swguy:

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

13 Aug 2019, 7:27 AM
#4
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Trying to get this mod to work with 1.5.6

I know what I did nevermind lol

13 Aug 2019, 7:28 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,759
Plugin Contributions:
56

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 Support
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.

13 Aug 2019, 7:42 AM
#6
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Trying to get this mod to work with 1.5.6

swguy:

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?

13 Aug 2019, 7:47 AM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,759
Plugin Contributions:
56

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 Support
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.

13 Aug 2019, 7:50 AM
#8
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Trying to get this mod to work with 1.5.6

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

30 Mar 2021, 1:25 PM
#9
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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
New template for 2.0 viewable here: 2.0 Demo

30 Mar 2021, 5:48 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Trying to get this mod to work with 1.5.6

delia:

This was never corrected in the mod.?
delia:

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.

31 Mar 2021, 2:29 PM
#11
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Trying to get this mod to work with 1.5.6

I couldn't get to the thread yesterday for this mod but I now can continue this discussion with the developer today. Thanks so much DrByte for the response

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo