Forums / General Questions / Creating link using product ID

Creating link using product ID

Locked
Results 1 to 3 of 3
This thread is locked. New replies are disabled.
08 Jun 2009, 23:32
#1
dwessell avatar

dwessell

Zen Follower

Join Date:
Mar 2005
Posts:
143
Plugin Contributions:
0

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
09 Jun 2009, 22:48
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

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.php?main_page=product_info&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
09 Jun 2009, 22:54
#3
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Creating link using product ID

The end of the link reads:

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