Built this as a check out add on for a customer. Going crazy for 3 days now trying to find this empty <li> at the bottom of the main page just under the Home Page link.
home page
I am new to zen cart. Any help would be greatly appreciated.
Built this as a check out add on for a customer. Going crazy for 3 days now trying to find this empty <li> at the bottom of the main page just under the Home Page link.
home page
I am new to zen cart. Any help would be greatly appreciated.
Probably in includes/templates/classic/common/tpl_footer.php.
Best to create your custom template before you go any further: http://www.zen-cart.com/content.php?...ustom-template
If you "built this", you need to tell us what file(s) you modified and how before we can advise on a solution.
There is indeed an empty <li>, which I would expect to be generated by /includes/templates/your_template/templates/tpl_ezpages_bar_footer.php if you had disabled the check for there being any links to output, in the course of adding list structure. Or it could be due to something in /includes/templates/your_template/common/tpl_footer.php, or possibly /includes/modules/ezpages_bar_footer.php.
And yes, copy your changes to a new custom template folder as stevesh said.
Last edited by gjh42; 2 May 2012 at 04:29 PM.
/configuration / EZ-Pages Settings / EZ-Pages Display Status - FooterBar
Set it to "0".
This is a 'global' setting.
If you actually *want* the ezy pages to show as links in some pages, you'll need to set this back to '1' and disable specific pages via the 'EZ-Pages Pages to disable footers' settings.
Another option is to add an EZ-page, which will then be used in place of the 'missing' list element.
Cheers
Rod
Note that you have fixed the symptom, but you have some sort of custom coding that caused the empty <li> in the first place. Stock Zen Cart would not show anything there if there were no ez-page links.
As much as I hate to dissagree with you (which more often than not makes me look a fool. I don't really expect this time to be an exception, but I'd rather be an educated fool than an ignorant fool ), but this may warrant further investigation.
--------------- Test Store#1 - V1.5 - unmodified no EZ-pages --------------
<ul id="footer-home">
<li>
<a href="http://unamed_store.com/">Home</a>
</li>
</ul>
<ul id="footer-links">
<li></li>
</ul>
---------------------------------------------------------------
--------------- Test Store#2 - V1.3.9 - No EZ-page defined/used --------------
<div id="navSupp">
<ul>
<li>
<a href="http://shop.vcsweb.com/">Store front</a>
</li>
<li></li>
</ul>
</div>
--------------------------------------------------------------------
--------------- Test Store#2 - V1.3.9 - With an EZ-page (Internal link to 'Home' @ http://vcsweb.com ) --------------
<div id="navSupp">
<ul>
<li>
<a href="http://shop.vcsweb.com/">Store front</a>
</li>
<li>
::
<a href="http://vcsweb.com">Home</a>
</li>
</ul>
-----------------------------------------
Note the empty <li></li> in both cases where there are no EZ-pages present.
Cheers
Rod.
Hmm... this does warrant closer inspection. tpl_ezpages_bar_footer.php has no mechanism to wrap each link in <li> tags, nor does ezpages_bar_footer.php, so I didn't take the time to examine tpl_footer.php. That does indeed create the <ul>, but it wraps the entire ez-pages links list in one <li>, which makes no sense at all. Of course, it makes even less sense when there are no links.
So I stand corrected. Zen Cart code usually very cleverly accounts for numerous possible situations, but in this case it mishandles all except one possible situation (exactly one ez-page link in the footer). I presume that will be structured better in the next version. EZ-Pages Footer Columns is built to make sets of lists correctly now.
Bookmarks