Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jan 2011
    Posts
    142
    Plugin Contributions
    0

    Default Display a page without the categories

    Hello,

    I've done some searching and I cannot find a similar topic to this. I want to create a page that will list some choices for the customer to examine before they make their final purchase. I do not want this page to be a new zen_cart page completely, just a page that shows the content I want and not the categories. (If unavoidable, it would be ok if the header was gone too.)

    Has anyone attempted or accomplished this?

    Thanks for the tips.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Display a page without the categories

    1. Create an EZPage containing your desired content (ie: the list of links, or whatever it is)

    2. Create a stylesheet called pageXX.css (where XX is the EZPage ID number - you can see the ID number in a browser address bar when the page is showing on-screen - index.php?main_page=page&id=21).

    3. Write up appropriate CSS declarations that will HIDE or render NON-VISIBLE, the elements you don't want to show....

    ... for example, to HIDE the categories box, you would use the following declaration:

    PHP Code:
    #categories {display:none;} 
    .

    4. FTP the stylesheet into the css folder of the template you are using. When that EZPage loads, the stylesheet will take effect and administer whatever declarations you have used in it.
    Last edited by schoolboy; 26 Apr 2011 at 06:56 PM.
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2011
    Posts
    142
    Plugin Contributions
    0

    Default Re: Display a page without the categories

    Do I need to tell the main page to reference the new .css I made? Nothing was effected, I think I followed your steps correctly.

    More specifically (Ignore all of the unloaded images.) Here is the link http://testmulberry.com/?main_page=page&id=16

  4. #4
    Join Date
    Jan 2011
    Posts
    142
    Plugin Contributions
    0

    Default Re: Display a page without the categories

    I know their is a lot going on. Customer wants this exact page to be displayed. There are a few embedded css elements, I just don't really know which ones are safe to be removed without messing up the alignment of everything. It's supposed to look like this when I get all of the images loaded. http://www.mulberryfundraisers.info/..._Patterns.html

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Display a page without the categories

    No, if you have named and saved the new stylesheet correctly, it will automatically be used.


    Your page head is not calling for page16.css, so you must not have the file correct yet.
    Last edited by gjh42; 27 Apr 2011 at 02:45 PM.

  6. #6
    Join Date
    Jan 2011
    Posts
    142
    Plugin Contributions
    0

    Default Re: Display a page without the categories

    I created and saved the file as page16.css It is in my templates css folder. The only content of the file is

    #categories {display:none;}


    Is more needed? Thanks for helping.

  7. #7
    Join Date
    Jan 2011
    Posts
    142
    Plugin Contributions
    0

    Default Re: Display a page without the categories

    I even tried with a page17.css and created a new EZ page (#17) with no content other than the words Test. With the same content as the other .css and the same thing is happening, the categories are not disappearing.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Display a page without the categories

    Do you currently have a file at /includes/templates/lite_red/css/page16.css?

    Does your template have an /includes/templates/lite_red/common/html_header.php file? If so, what is the date on it? The page##.css capability was only added in v1.3.9something.

  9. #9
    Join Date
    Jan 2011
    Posts
    142
    Plugin Contributions
    0

    Default Re: Display a page without the categories

    Do you currently have a file at /includes/templates/lite_red/css/page16.css?
    Yes.

    Does your template have an /includes/templates/lite_red/common/html_header.php file? If so, what is the date on it? The page##.css capability was only added in v1.3.9something.
    The date it was created was 1/25/2011. (When I put the files on my server).
    The template was copy written for 2009-2010. Could this be the problem?

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Display a page without the categories

    I meant "the date in the head of the file"... if your version of html_header.php is not
    @version $Id: html_header.php 15761 2010-03-31 19:31:27Z drbyte $
    it will not have the line of code to handle ez-page stylesheets. Does your file have this if( statement following the $tmp_ statement?
    PHP Code:
      $tmp_pagename = ($this_is_home_page) ? 'index_home' $current_page_base;
      if (
    $current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename $current_page_base . (int)$ezpage_id

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Display Categories on center of the page
    By staycu in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Jun 2011, 07:02 AM
  2. display categories on the main page?
    By fei2010 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jul 2010, 12:38 AM
  3. Chage the display of Categories List Page
    By CoolCarPartsOnline in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Apr 2009, 08:41 PM
  4. Stopping the display of main page within Sub-Categories
    By rayrajan in forum Basic Configuration
    Replies: 6
    Last Post: 30 Sep 2008, 12:14 AM
  5. Display Categories on Main Page but without...
    By chadderuski in forum Customization from the Admin
    Replies: 6
    Last Post: 2 Aug 2007, 02:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR