Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Manually link to categories...

    Is it possible to manually link to a category?

    At the moment I'm using the following code:

    Code:
    <a href="index.php?main_page=index&cPath=7">
    However, if the customer clicks on this link from a secure part of the site they are given the usual message warning them about non-secure items.

    I know how to link to different pages using the zen_href_link function, but not how to link to a particular category! :S

  2. #2
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Default Re: Manually link to categories...

    Do they need to stay in a secure mode? You could use the same line of code, but make the link absolute (http://mycart.com/index.php?main_page=index&cPath=7). That would remove them from the SSL portion and they would no longer get the security warning.

  3. #3
    Join Date
    May 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: Manually link to categories...

    Thanks I learnt from this thread.

    Tat

  4. #4
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Default Re: Manually link to categories...

    Awesome!

    That is what I love about this community, there is knowlage and help everywhere.

  5. #5
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Manually link to categories...

    Quote Originally Posted by jammin320 View Post
    Do they need to stay in a secure mode? You could use the same line of code, but make the link absolute (http://mycart.com/index.php?main_page=index&cPath=7). That would remove them from the SSL portion and they would no longer get the security warning.
    Hi Ben,

    I agree with what you're saying, but isnt there a way of using the zen_href function. Something similar to the code below, but linking to a category...

    Code:
    <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>">My Account</a>
    Any ideas?

  6. #6
    Join Date
    Mar 2007
    Location
    Seattle, WA
    Posts
    159
    Plugin Contributions
    0

    Default Re: Manually link to categories...

    I am not sure that there is, though I don't know for certain. . . we would need one of the ZenMasters to chime in for a definative answer. However, I would think that it would not work that way. The ZEN_HREF_LINK function pulls up a file. Since a category isn't a file that would include the defines in the top that the function uses, I would expect that this isn't the route to go. It may be worth taking a look into the code of the category sidebox to see what it uses to generate its links to categories. I'll do some digging myself aswell.

 

 

Similar Threads

  1. Blank Categories in Multiple Categories Link Manager
    By nfallat in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 15 Oct 2010, 05:22 AM
  2. How to Link Categories?
    By mach9 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Dec 2009, 09:19 AM
  3. manually adding download link to order
    By sin3 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 31 May 2008, 10:31 PM
  4. Manually ordering the Categories?
    By jamiemcparland in forum General Questions
    Replies: 2
    Last Post: 29 Dec 2006, 07:38 AM

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