Short version:
How do I get an image or input button to appear in the "intro text" of each product when they're being listed (not just when you're viewing the complete info of a single product)?
Full version:
I'm running the latest version of Zencart. I'm very familiar with PHP, HTML, CSS, and I have a ton of experience with Joomla. However, I've walked into a ZenCart project, and feeling a bit lost.
I've added a small piece of javascript to the head of my template that essentially just opens a small flash player in a div I also added to the template in an absolute position.
I set it up to play a video from a list in an xml file, and all of it works great when you're viewing the product itself.
However, in a list of products (like when you're searching or navigating the menu), not only does the "play" button not appear, but the product doesn't truncate after the first paragraph.
I've tried two approaches:
Which doesn't work, because the code is clearly within a <form>, and just submits the form instead.Code:<input border="0" type="image" onclick="player(1, this);" style="float: right;" src="images/play.png">
The other approach works in the full product, but has the problems mentioned above:
Sorry I'm so verbose. Thanks in advance!Code:<a href="javascript:player(1, this);"> <img border="0" style="float:right;" src="images/play.png" /> </a>


Reply With Quote
