Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2007
    Posts
    19
    Plugin Contributions
    0

    help question adding the category links to a new front page

    HI, and thanks for reading my thread.

    I am adding a front page to my store and it will be a index.html, so it would be the very first page the customers will see. How can i add the category links to that page, ideally it would follow any changes from the admin panel. for example, I currently have:
    Energy & Health Valentine’s Specials Women’s Urban Wear

    i would like to add to the new html front page, later if I changed any of them from the admin it woulkd also change it on the new html front page.


    Please let me know how I can do that.

    Thanks

    Damon


  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: adding the category links to a new front page


  3. #3
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: adding the category links to a new front page

    If you want to embed the category links in a HTML hyperlink, you could try this:-

    In your zenshop, click on a category that you want an external link for...

    ... you will see in the address bar on your browser, the URL to that category; eg:

    Code:
    http://www.YOUR-WEB-SITE.co.uk/shop/index.php?main_page=index&cPath=94
    Highlight that URL and copy to your computer clip-board.

    Now, on an external page's HTML code, create a hyperlink:-

    HTML Code:
    <a href="http://www.YOUR-Web-SITE.co.uk/shop/index.php?main_page=index&cPath=94">MY CATEGORY NAME</a>
    .

    Then, just use conventional HTML to manipulate how you want the link to appear, or function. For example, to have it open in a NEW browser window:-

    HTML Code:
    <a target="_blank" href="http://www.YOUR-Web-SITE.co.uk/shop/index.php?main_page=index&cPath=94">MY CATEGORY NAME</a>
    .

    PS... This method requires MANUAL changing !

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

    Default Re: adding the category links to a new front page

    The other relevant question is why you feel it is necessary to have a front page that is outside your Zen Cart.

    It is possible to have a home page which looks totally different from other pages using define_main_page.php, index_home.css and some tweaks to tpl_main_page.php, depending on exactly what you want.
    See my site for an example.

  5. #5
    Join Date
    Dec 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: adding the category links to a new front page

    thanks for all your great responses,

    I haven't used the 1st method yet, but the 2nd method mentioned wouldn't work, because that would be a had link to the categories, if I delete the category or create additional categories it wouldn't keep up with the changes.

    PS. thhe front page would be an intro page, it would look cool :)

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: adding the category links to a new front page

    andy106,

    You can design Zen Cart opening or main page to match most any design instead of trying to create an html landing page and worse yet using kludgy FrontPage to do it.

  7. #7
    Join Date
    Dec 2007
    Posts
    19
    Plugin Contributions
    0

    Idea or Suggestion Re: adding the category links to a new front page

    kobra, haha, thats funny,

    I know but I would like to have an intro page outside the zendcart.

    but I cant seem to get the single_sidebox.php to work, I have upload the single_sidebox.php, in the root directory ( all the zen cart files are there) then I created a php file with the following:

    <?php
    $zcSBmodule = 'categories.php'
    ?>

    but when I call the file through the browser the page is blank.

    Thanks for your help

    Damon

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: adding the category links to a new front page

    From the instructions
    On a PHP page where you desire to show Zen Cart sidebox content, insert the following code:
    As far as I know, FP does not code php pages...
    I probably steered you wrong in haste...Have a look at this Module
    http://www.zen-cart.com/index.php?ma...roducts_id=232

 

 

Similar Threads

  1. Changing Category links center front page
    By cshart in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Feb 2011, 07:38 PM
  2. Category links on front page in the middle
    By freya in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Aug 2008, 08:18 AM
  3. Adding a 'box' to the front page
    By jamina1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Jul 2007, 04:28 PM
  4. Adding Category Name to the New Products/Featured/Specials Boxes on Main Page
    By chinchilla2 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Aug 2006, 09:05 PM

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