Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    115
    Plugin Contributions
    0

    Default Re: How tp Create Links using zencart code?

    Hi Clyde,

    Again, thank you for your help, I tried it, pasting in basically like the above:

    <a href="' . zen_ez_pages_link(13) . '">Your Link</a>

    which in the address bar produces:

    /store-test/'%20.%20zen_ez_pages_link(13)%20.%20'

    and a 404 error page with the words:

    Not Found
    The requested URL /store-test/' . zen_ez_pages_link(13) . ' was not found on this server.

    I tried various others, even checking on the proper sql table name which is zen_ezpages

    and then trying:

    <a href="' . zen_ezpages_link(13) . '">Your Link</a>

    which still has the same affect, producing the 404 error page.

    I checked the id 13 page, and when it is placed in the address bar with full url and such the page is working properly.

    Marian

  2. #2
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: How tp Create Links using zencart code?

    try this:

    <?php echo '<a href="' . zen_ezpages_link(13) . '">Your Link</a>'; ?>

  3. #3
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    115
    Plugin Contributions
    0

    red flag Re: How tp Create Links using zencart code?

    I could not get that line to work either, however, quite by accident I did discover that Clyde was right on his first reply. It's really not needed when it concerns the descriptions.

    With linking to other pages or even images, you can simply use the

    <a href="index.php?main_page=page&id=1&chapter=0">

    or if an image:

    <img width="170" height="158" border="0" src="images/previews/filename.jpg">

    will do it just fine. Note: that in the ezpages, the image will show as broken, but on the customer side it shows up just fine.

    I'd still love to find out what the code would have been, but I can at least now work on these things and put the last part of the url in as needed.

    Clyde, my apologies, I should have tried your first idea, it just didn't for some reason occur to me to try it in the description area, I really thought you were talking about those text boxes underneath the description one.

    Marian

  4. #4
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: How tp Create Links using zencart code?

    oh you mean code like this?

    <?php zen_href_link(FILENAME_ADMIN); ?> (links to the admin page)

 

 

Similar Threads

  1. How to create a coupon/discount code during Checkout?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Mar 2009, 03:55 AM
  2. How to write error trapping code on create account?
    By 0be1 in forum General Questions
    Replies: 0
    Last Post: 29 Oct 2007, 01:36 PM
  3. can't create URL links using HTMLarea on a mac
    By sobebabies in forum Bug Reports
    Replies: 9
    Last Post: 25 Oct 2006, 03:48 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