Turn off all Center Boxes ...
Turn off Always Show Categories on Main page ...
Turn off Define Page for Main Page ...
Have you an URL to see what you have done so far?
Turn off all Center Boxes ...
Turn off Always Show Categories on Main page ...
Turn off Define Page for Main Page ...
Have you an URL to see what you have done so far?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
No URL - it's all on localhost. I'll re-phrase my question:
how do I include top level category listing within tpl_index_default.php? That's all! :)
I tried taking the following code from tpl_index_categories.php, but it did not work:
Code:<?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_CATEGORY); while (!$show_display_category->EOF) { // // echo 'I found ' . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS); ?>
Turn on the Always Show and set the Category to 0 in Layout Settings ...
Categories - Always Show on Main Page
Always Show Categories on Main Page
0= off
1= on
Default category can be set to Top Level or a Specific Top LevelMain Page - Opens with Category
0= Top Level Categories
Or enter the Category ID#
Note: Sub Categories can also be used Example: 3_10
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thank you for the time and reply, Linda - but that doesn't answer my question .......
....... as I already described in original post, if I 'always show categories on home' page, tpl_index_default.php is not used (tpl_index_categories.php is used) and then I cannot customize the home page as I need to.
Is it possible to include top level category listing within tpl_index_default.php? :)
If you look at:
tpl_index_categories.php
You will see the section of code for where the $show_welcome is set to true ... that section displays the main page info ... then afterwards the remainder of the code runs the categories ...
You can customize this in your templates and overrides to display what you want to see ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
..... but if I customize tpl_index_categories.php it also displays on category pages - I don't want that - I just want a block of custom content added to the bottom of the home page.
That's why I keep asking how to add categories to tpl_index_default.php. ;) I'm guessing the reason you don't answer that question is because it's not possible???
Originally Posted by purkat
Some things are still not fully clear.Originally Posted by purkat
1. Zen Cart can be configured to show categories on the home page, or not.
2. If you choose to display categories on the home page, then tpl_index_default.php is ignored
The answers being given have been in keeping with the way Zen Cart works.
However, what you haven't stated clearly is whether you "require" that your home page "have" your categories shown on it (which is not the default, but is what Ajeh was mentioning at one point).
If you "must" have your categories listing show on the home page, then you need to enable the indicated switch.
Then if you must add custom content "only" when no category is selected, then you'll need to edit as follows:
/includes/templates/YOURTEMPLATE/templates/tpl_index_categories.php
at bottom of file, add:PHP Code:<?php // display my custom content only on home page:
if (!($current_page!='index' || (int)$cPath>0 )) { ?>
<div><h2>My Custom Content Goes Here</h2></div>
<?php } ?>
.
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.
That's it!! Thanks very much for sticking with it DrByte. :)) And thanks Ajeh for your help.
I've told my boss to add some more to the donation that was on its way once this site gets finished. :)
Sometimes it just takes a bit of careful re-explaining and/or re-studying the requirements in order to get to the answer !
.
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.
Originally Posted by milkyway
Hi Milkyway,
Unfortunately this approach does not seem to work.![]()
I am making chances in another folder from the default_template, and using stylesheet.css 3688 2006-06-02 00:12:18Z drbyte $
If you look at my site http://www.inekesfashions.com.au/shop/
you will notice that in IE you can just see a glimpse of my graphic in the header, but this does not display at all in FF or in Opera.
I would like to place a graphic, both in the white spaces of the boxed text, and in the headings. (these graphics will than join, to make it look like 1 box, and will adjust to the size, as the bottom graphic is longer than the white space)
I also would like you to have a look at my flash logo, as it does not display in Opera (but I am not sure if the flash plugin installed ok in opera).
I am almost done with my artistrybefore I can go and install some product, and connect to a payment gateway.
Kind regards for your earlier response,
Goshawk