Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Posts
    144
    Plugin Contributions
    0

    Default Creating link using product ID

    Hi,

    I used the easy populate to output my inventory. But I need a field that shows a link to the product. EP puts out the product ID. Can I use that as a variable to create a link?

    Thanks
    david

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Creating link using product ID

    David,

    It depends on exactly what you mean.

    I believe that the format:

    http://www.domainname.com/shop/index...products_id=23

    will take you to the product info page for the item whose id is 23. Anyway it works for me.

    Obviously, change the www.domainname.com/shop according to your domain name and whether the zen cart installation is in a sub-directory. Mine is in a subdirectory cunningly called 'shop'.

    If you are trying to create links inside Zen Cart code I believe there are php functions which produce the link. But not sure if there is one that will work with just the product id. A more experienced forum member may be able to let you know.

    Nik

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Creating link using product ID

    The end of the link reads:

    /index.php?main_page=product_info&products_id=23

 

 

Similar Threads

  1. v154 not Respecting Context of a Link to a Category/Product page using CEON URI MAPPING
    By lruskauff in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 11 Jun 2015, 07:17 AM
  2. v150 Creating a link to a Product ID
    By Stizzed in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Feb 2012, 01:46 AM
  3. Link to an image using addon from product attributes area?
    By Chargin in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Nov 2011, 06:02 AM
  4. Link to different categories while creating the product listing
    By amyleew in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 4 Feb 2010, 09:12 PM
  5. Creating a custom Login (blue link) next to the forgot password link
    By Winfab in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Jan 2009, 11:11 PM

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