Totally Zenned
- Join Date:
- Oct 2004
- Location:
- Southport, UK
- Posts:
- 3,644
- Plugin Contributions:
- 6
Pop-ups from Product Description
I stumbled across a handy method of creating popups using CSS and you can see it in action (using Firefox -and it should work in IE7) here (place the mouse over a link in the description).
Basically what happens is that all the stuff in the pop up is contained in a <span> tag but doing that makes the product description code extremely long. What I'm trying to do is to use php to define the contents of the <span> tag and then display it using an echo statement...but I can't get it to work (if you look back at the demo, you will see that chair B works correctly from the image link, but not from the text link which is where I'm trying the echo statement.
I have taken the content of the <span> and added this linedefine ('SPAN_SOMERSET_CHAIR','content goes here'); to my includes/languages/english/custom/product_info.php and placed this line ```
<span><?php echo SPAN_SOMERSET_CHAIR; ?></span>
I suspect I'm doing something very simple wrongly, or overlooking something blindingly obvious (but I have tried adding that define to both includes/languages/english/custom/index.php and includes/languages/custom/english.php without success).
Any ideas?:frusty: