Just like there's built-in support for plugin javascript, there's similar support for related onload events:
http://www.zen-cart.com/wiki/index.p...verride_How-To
Just like there's built-in support for plugin javascript, there's similar support for related onload events:
http://www.zen-cart.com/wiki/index.p...verride_How-To
.
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.
I do love Zen Cart for that. I don't want to become the "expert" who knows every single detail. That would be boring! Learning is more fun.
So I see how that works but it does start with the index.php file. I was hoping to do this without altering core files. I certainly haven't come up with another option though.
Can you think of any way to do without altering core files?
The full-time Zen Cart Guru. WizTech4ZC.com
Create your own autoloader config file which loads your own custom init_readydoc file which builds the variables you want to output in your template and then echo them in whichever template file you want them to appear.
The "building" within the init file could be as simple as conglomerating several readydoc text files stuffed in a custom template folder's subfolder just like the onload does now. Or maybe a yaml file or something similarly contemporary.
.
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.
oh, thanks so much! That gives me something to get my teeth into!
The full-time Zen Cart Guru. WizTech4ZC.com
Bookmarks