Forums / Templates, Stylesheets, Page Layout / Override of includes/modules/pages

Override of includes/modules/pages

Locked

Views: 4,335

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
1 Aug 2007, 2:28 AM
#1
sfatula avatar

sfatula

New Zenner

Join Date:
Apr 2005
Location:
Calera, OK
Posts:
71
Plugin Contributions:
0

Override of includes/modules/pages

In the catalog, no good way to override catalog/includes/modules/pages/somescreen/header.php using the override system, right? I don't see any override for that. So, I'd need to blast the real version.

True?

Steve Fatula

1 Aug 2007, 4:19 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Override of includes/modules/pages

Steve,

You are correct about no header.php override - however - it depends on what you are doing whether you actually need to change it or if you can add additional main_template_vars or use another system.

What are you wanting to do?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

1 Aug 2007, 4:56 AM
#3
sfatula avatar

sfatula

New Zenner

Join Date:
Apr 2005
Location:
Calera, OK
Posts:
71
Plugin Contributions:
0

Re: Override of includes/modules/pages

I am adding more edit checks to check new variables passed from the checkout_payment screen. Just like how it redirects you back to the payment screen if you do not check the terms box, same idea for a bunch of new fields I needed to add.

Steve Fatula

1 Aug 2007, 6:07 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Override of includes/modules/pages

sfatula:

I am adding more edit checks to check new variables passed from the checkout_payment screen. Just like how it redirects you back to the payment screen if you do not check the terms box, same idea for a bunch of new fields I needed to add.

The existing header_php.php file is the right place to do that.

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

1 Aug 2007, 6:30 AM
#5
sfatula avatar

sfatula

New Zenner

Join Date:
Apr 2005
Location:
Calera, OK
Posts:
71
Plugin Contributions:
0

Re: Override of includes/modules/pages

Yes, it did appear this way.

So, here's hoping the override system is expanded to include the pages directory!

Steve Fatula

5 Apr 2010, 2:36 PM
#6
kcprogger avatar

kcprogger

New Zenner

Join Date:
Mar 2010
Location:
Kansas City
Posts:
3
Plugin Contributions:
0

Re: Override of includes/modules/pages

an override for this would be amazing, i'm making custom images for the entire zen cart template and those damn pages are making it difficult. i sure could use an override for those pages

5 Apr 2010, 3:22 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Override of includes/modules/pages

kcprogger:

an override for this would be amazing, i'm making custom images for the entire zen cart template and those damn pages are making it difficult. i sure could use an override for those pages
Um ... custom images have nothing to do with the /includes/modules/pages folder.
Templates and their corresponding images go in your template-override folder.

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

5 Apr 2010, 3:32 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Override of includes/modules/pages

If you are wanting specific background images for specific pages, you can use Smart Backgrounds and not have to edit any of the page files.

6 Apr 2010, 3:40 PM
#9
kcprogger avatar

kcprogger

New Zenner

Join Date:
Mar 2010
Location:
Kansas City
Posts:
3
Plugin Contributions:
0

Re: Override of includes/modules/pages

I'm customizing all the button images in zen cart. I'm adding mouseover, mouseout, and mousedown effects, i'm doing alright except for the update quantities image after you've added the product to your cart. That image is a son of a gun, any ideas?

6 Apr 2010, 3:52 PM
#10
kcprogger avatar

kcprogger

New Zenner

Join Date:
Mar 2010
Location:
Kansas City
Posts:
3
Plugin Contributions:
0

Re: Override of includes/modules/pages

there's no way to send parameters with the update qty button except for in the header_php.php file in the modules/pages/shopping_cart directory

so if i could override that it would be fine, but i cant so now i have to go and edit that file which may mess up my updates???

6 Apr 2010, 4:21 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: Override of includes/modules/pages

kcprogger:

there's no way to send parameters with the update qty button except for in the header_php.php file in the modules/pages/shopping_cart directory

so if i could override that it would be fine, but i cant so now i have to go and edit that file which may mess up my updates???
You'll have to edit the file directly. If you're altering everything to process additional parameters, then you'll no doubt have to be adjusting other non-override files too anyway.
And, as with all files (including your override files), when you upgrade, you'll need to compare yours against the original/master files to identify your changes and merge the new with the old, anyway. So, the lack of an override capability at that level is entirely moot anyway.

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