![]() |
![]() |
|
Enabling XHTML and PHP Tags For Product Short DescriptionIn admin underHome > ClickCartPro > Displays: Skins, Menus, XHTML Includes and Messages > Manage Catalog Product Displays: Category View Edit the product display you are using. In there, look for: $proddesc = $this->xhtml_encode($proddisp['descshort']);
and change it to: $proddesc = $proddisp['descshort'];
if (!(preg_match('/\<.*?\>/',$proddesc))) {$proddesc = '<p>' . $this->xhtml_encode($proddesc) . '</p>';} Then find: <p><?php print $proddesc; ?></p>
and change it to: This encodes and puts <p> tags around any short descriptions that do not contain XHTML tags and leaves descriptions with tags alone. CategoryProducts |
||
![]() |
|
![]() |
There are 9 comments on this page. [Display comments]