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
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
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
The end of the link reads:
/index.php?main_page=product_info&products_id=23
Bookmarks