Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to override a jscript include to get a different size popup?

How to override a jscript include to get a different size popup?

Locked

Views: 1,615

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
18 Jun 2008, 3:16 AM
#1
karma_lab avatar

karma_lab

Zen Follower

Join Date:
Apr 2008
Posts:
135
Plugin Contributions:
0

How to override a jscript include to get a different size popup?

For example, in the Advanced Search page, when you click on the help button, you get a popup window. Let's say I want to change the size of that window.

Searching around, I find that it is controlled by

/includes/templates/modules/pages/advanced_search/jscript_main.php

So rather than modify this file, I thought to create an override. But my approach doesn't work.

Would the path to my override be:

/includes/templates/modules/CUSTOM/pages/advanced_search/jscript_main.php

or

/includes/templates/modules/pages/CUSTOM/advanced_search/jscript_main.php

or

/includes/templates/modules/pages/advanced_search/CUSTOM/jscript_main.php?

I think I tried them all and nothing is working...

18 Jun 2008, 3:29 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to override a jscript include to get a different size popup?

I'm afraid this is one that is not available for template override. You will have to modify the core file; keep a copy of the original somewhere safe, and keep a note to merge carefully when upgrading. You may want to keep a copy of your edited version elsewhere too.

18 Jun 2008, 4:23 AM
#3
karma_lab avatar

karma_lab

Zen Follower

Join Date:
Apr 2008
Posts:
135
Plugin Contributions:
0

Re: How to override a jscript include to get a different size popup?

Thanks for the reply.

18 Jun 2008, 9:12 AM
#4
karma_lab avatar

karma_lab

Zen Follower

Join Date:
Apr 2008
Posts:
135
Plugin Contributions:
0

Re: How to override a jscript include to get a different size popup?

BTW, a further thought.

Hard-coding the size of a popup window into each of these php files hardly seems like the most intelligent way to do it. This function could clearly have parameters passed to it (from a template that is actually capable of being overridden) that would specify the height and width of the window. Just a thought.