New Zenner
- Join Date:
- Mar 2007
- Location:
- Los Angeles, CA
- Posts:
- 45
- Plugin Contributions:
- 0
Create Link by Calling Up Product ID
Hello, all!
I'm hoping someone might be able to point me in the right direction...
I'm trying to create a link, that involves product ids, but am stuck on getting the php syntax correct. I plan to create folders for each product id that has audio previews, and then call up the correct track to display next to each individual track/attribute, within a table.
Here's what I have:
<a href="javascript:void();" onclick="MM_openBrWindow('<?php echo DIR_WS_MEDIA . $za_clip['clip_filename'];?>Track_2.mp3','','width=300,height=50')"><img src="images/listen.gif" width="24" height="15" border="0" /></a>
```This results in a link to <http://www>.myzenstore.com/media/Track_2.mp3
But what I'm trying to get is <http://www>.myzenstore.com/media/[product_id]/Track_2.mp3
I can't quite get the right php function to call up the product id for the page a customer is on. Does anyone have any tips?
If I am successful, I will share my music store preview modification with all Zen Users.
Thanks very much!
Jaye