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

Formatting question – Need some help! 
 
oberseite
Jr. Member
 
Avatar
Total Posts:  13
Joined:  2011-01-26
 

Our product descriptions are formatted in paragraph form for Word, etc. There are no HTML tags or attributes within them. Is there a way to tell our template to automatically add these tags at the end of the formatted paragraph to show the <p> tag so they’re formatted correctly?

We have thousands of products that update and import automatically, so manually adding <p> tags to each product description is not an option.

The attachments are too large, so please see our examples here and here.

Any ideas? Thank you!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
quicksand14
Sr. Member
 
Total Posts:  150
Joined:  2010-09-30
 

You could write this in the code.

<p><?php echo $this->getAttributeText('product_description'); ?></p>

where product_description is the code name of the attribute you want to display.

Would that work for you?

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