Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Can this be my ZenCart home page?

    What path do you specify for the image? You might still be calling for the image relative to the old location.

    If you put it in /includes/templates/your_template/images/ and call it from there, you should be ok.

    Oh, and thanks, I just noticed your addition to the post above. Yes, we make everything we sell. We've never encountered anyone asking for Bahai symbols, but you never know...

  2. #12
    Join Date
    Sep 2007
    Posts
    60
    Plugin Contributions
    0

    Default Re: Can this be my ZenCart home page?

    Yes, that is where I put it. I'm using Dreamweaver as my editor so it allows me to "browse" to the image whenever I enter the "src" tag. I don't know what the problem is. I've also been unable to find out how to link to my product category pages from the imagemap. Can you please point me to some help? Thanks in advance!

    Vood

  3. #13
    Join Date
    Sep 2007
    Posts
    60
    Plugin Contributions
    0

    Default Re: Can this be my ZenCart home page?

    Here is the code for placing the image....

    <img name="productimagemap"src="../../../../templates/wallet/images/productimagemap.gif" width="650" height="365" border="0" id="productimagemap" usemap="#m_productimagemap" alt="Handmade Luxury" />

    Then it continues with.....

    <map name="m_productimagemap" id="m_productimagemap">
    <area shape="poly" coords="419,195,385,184,391,42,430,44,489,50,542,54,526,194,509,195,504,210,473, 200,419,195" href="/products/nuggets.htm" title="Bees Wax Solid Lotion Nuggets" alt="Bees Wax Solid Lotion Nuggets" /> and so on for the image overlay coordinates.

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

    Default Re: Can this be my ZenCart home page?

    That
    src="../../../../templates/wallet/images/productimagemap.gif"
    looks like it may be referencing a location relative to the Dreamweaver installation, not necessarily the Zen Cart installation root. I'm not too familiar with HTML src syntax.

  5. #15
    Join Date
    Sep 2007
    Posts
    60
    Plugin Contributions
    0

    Default Re: Can this be my ZenCart home page?

    I fixed it by using an absolute address. I will just have to change it before I upload to the online server. I need to know how to link to my category pages using php tags in the body of my define_main_page.php file. If I could just have one example, I could probably run with it. Thanks.

    Vood

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

    Default Re: Can this be my ZenCart home page?

    From my define_main_page.php:
    PHP Code:
    <?php $fr_root HTTP_SERVER DIR_WS_CATALOG
    $fr_cpath $fr_root 'index.php?main_page=index&amp;cPath='?>
    <!--bof-home page header logo & links display-->
    <div id="homeShopView"><?php echo '<a href="' $fr_root 'index.php?main_page=page&amp;id=2"><img src="' $fr_root DIR_WS_TEMPLATE 'images/frshopview.gif" alt="Our Shop"></img></a>';?></div>
    <div id="homeLogo"><?php echo '<img src="' $fr_root 'images/frlogohomepg.gif" alt="Future Relics - Timeless Creations in Precious Metals"></img>';?><br />
    We invite you to explore our catalog, ...</div>
    <div id="homeBoothView"><?php echo '<a href="' $fr_root 'index.php?main_page=page&amp;id=3"><img src="' $fr_root DIR_WS_TEMPLATE 'images/frboothview.gif" alt="Our Shop"></img></a>';?></div>
    <!--eof-home page header logo & links display-->
    <?php echo '<a href="' $fr_cpath '"></a>'?>
    <div id="headWed"><h1><?php echo '<a href="' $fr_cpath '1"><img src="' $fr_root DIR_WS_TEMPLATE 'images/frhomeheadwed.gif" alt="the Wedding and Betrothal Collection"></img></a>';?></h1><br />
    <?php echo '<a href="' $fr_cpath '1">Wedding Rings, Engagement Rings and Sets,</a>'?> <?php echo '<a href="' $fr_cpath '1_93">Bridal Crowns...</a>'?></div>
    I have created shortcuts for some of the long directory code; you can do a similar thing, or just substitute the original values for $fr_root and $fr_cpath in the link code.

  7. #17
    Join Date
    Sep 2007
    Posts
    60
    Plugin Contributions
    0

    Default Re: Can this be my ZenCart home page?

    Ok I understand how you set $fr_root, but how do you know to set the $fr_cpath to "index.php?main_page=index&amp;cPath=" and what does this little peice of code say anyway?
    Thanks,

    Vood

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

    Default Re: Can this be my ZenCart home page?

    "index.php?main_page=index&amp;cPath="
    This is actually copied from the address bar while on a category page. This part of the url is always the same for a category page. It basically says it is an index (category list) page and to display the category path = (whatever).

    You will see ampersands & displayed in various navigation code; when writing them into code, you should always replace them with the special character code so they don't get prematurely interpreted and cause an error: in this case &amp;

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. How can I make zencart to be my home page?
    By newday in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 23 Nov 2010, 05:14 PM
  2. Replies: 1
    Last Post: 20 Jul 2009, 12:17 AM
  3. Can anyone tell me Why my home page looks like this?
    By youshine in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 23 Jun 2009, 12:05 AM
  4. admin home page, can this be customized?
    By dhcernese in forum Basic Configuration
    Replies: 1
    Last Post: 30 Oct 2007, 01:26 PM
  5. Can Zencart do this product info page?
    By funfuntimer in forum Basic Configuration
    Replies: 0
    Last Post: 15 Oct 2006, 05:41 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