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 line
Code:
define ('SPAN_SOMERSET_CHAIR','content goes here');
to my includes/languages/english/custom/product_info.php and placed this line
Code:
<span><?php echo SPAN_SOMERSET_CHAIR; ?></span>
in the product's description.
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?
Bookmarks