Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Concatenate Strings with Line Breaks
 
brendanb
Mentor
 
Total Posts:  1093
Joined:  2008-07-16
London, United Kingdom
 

hi All,

Can anyone suggest some code to do the following

I have a Javascript Rollover Pop-Up with will contain some product Data. What I would like to do is combine multiple variables and insert Line Breaks. Here is the code i have, but i dont think this is correct

<?php $_tooltip $this->htmlEscape($_productRandom->getName(). "<p>") .$this->htmlEscape($_productRandom->getPrice()) ?>

I would like something like

Product Name
Product Description
Product Price

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top