Last edited by jpda; 8 Oct 2015 at 06:47 PM.
How can I remove Brands from the top header? I am at www.gelcandlecompany.com/demo
I tried looking at includes/templates/responsive_sheffield_blue/templates/tpl_modules_mobile_categories_tabs.php
and found this area but not sure where to disable:
<li class="brands-li"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" class="drop"><?php echo HEADER_TITLE_MANUFACTURERS; ?></a><!--bof shop by brand -->
<ul >
<?php
$show_manufacturers= true;
Am I looking at the right file?
Have I missed something? How can I set to 3 columns? I see only 2 at my homepage.
Finally had a chance to revisit this...
To whom it may concern: Does/did the issue only occur if no such tabs are displayed (no featured, special nor new products), or does it occur if any one of the three tabs are not displayed when using the original code? (The sample site shows two tabs active on the main page, but does not appear to have a javascript error.)
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
The issue occurs, for example, if in admin>index listing "Show Specials on Main Page" is set to a positive value AND no specials products exist. In tpl_modules_specials_default.php $zc_show_specials is tested, which seems to be true, even if not any special product actually exists. I guess $zc_show_specials is from specials_index.php and seems to be true if $specials_index->RecordCount() > 0, even if no record exists.
The same for new and featured products.
The advantage of brittainmark's solution is that there is no need to change the admin settings (new, featured, specials) according to their existence. The disadvantage (a tab is present, even when empty) is acceptable.
Cheers,
jpda
Up front, I'm fine with agreeing to disagree... I find as a customer to other stores that it is almost aggravating that such an option is shown but there is nothing there. In some cases makes me wonder if there is something wrong with my computer/setup because obviously why would a store show an option like that when there is nothing there and it even allows clicking/selecting the tab but nothing happens when clicked? A number of other things come to mind as well.
I guess I'm going to have to setup another template site with this installed to test it out... Seemed to me in only review of the code that it was only an issue if none of them were displayed... May require a modification to the javascript or one or more of the template files, but if nothing else, a feature was "added" to block the display of the tab, only unfortunately it is not currently compatible with another add-on to the template...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I agree! My point was 'acceptable compared to the alternative', i.e. having the js problem whenever one of the new, specials or featured are empty (which occurs automatically w/o notice). The best solution is to change the test in the tpl_modules_*_php files and only show the meaningful tabs.
On the other hand, the links to new, featured and specials in info boxes or footer are always visible (once being activated), whether such products exist or not.
Any idea which add-on could be incompatible?unfortunately it is not currently compatible with another add-on
Cheers,
jpda
Bookmarks