Most recent edit on 2007-02-26 06:57:25 by KryptronicWebmaster
Additions:
In admin under
Home > 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:
<?php print $proddesc;
?>
ClickCartPro - Products
Deletions:
edit your product display under 'Manage Catalog Product Displays: Category View'. In there, look for:
code:
$proddesc = $this->xhtml_encode($proddisp['descshort']);
and change to:
code:
$proddesc = $proddisp['descshort'];
if (!(preg_match('/\<.*?\>/',$proddesc))) {$proddesc = '<p>' . $this->xhtml_encode($proddesc) . '</p>';}
then find:
code:
<p><?php print $proddesc; ?></p>
and change to:
code:
<?php print $proddesc; ?>
Pending Inclusion
Edited on 2007-02-15 22:13:16 by KryptronicWebmaster
Additions:
edit your product display under 'Manage Catalog Product Displays: Category View'. In there, look for:
code:
$proddesc = $this->xhtml_encode($proddisp['descshort']);
and change to:
$proddesc = $proddisp['descshort'];
if (!(preg_match('/\<.*?\>/',$proddesc))) {$proddesc = '<p>' . $this->xhtml_encode($proddesc) . '</p>';}
then find:
<p><?php print $proddesc; ?></p>
and change to:
<?php print $proddesc; ?>
Deletions:
Edit your product display under 'Manage Catalog Product Displays: Category View'. In there, look for:
$proddesc = $this->xhtml_encode($proddisp['descshort']);
and change to:
$proddesc = $proddisp['descshort'];
if (!(preg_match('/\<.*?\>/',$proddesc))) {$proddesc = '<p>' . $this->xhtml_encode($proddesc) . '</p>';}
then find:
<p><?php print $proddesc; ?></p>
and change to:
<?php print $proddesc; ?>
Oldest known version of this page was edited on 2007-02-15 22:12:28 by KryptronicWebmaster []
Page view:
Enabling XHTML and PHP Tags For Product Short Description
Edit your product display under 'Manage Catalog Product Displays: Category View'. In there, look for:
code:
$proddesc = $this->xhtml_encode($proddisp['descshort']);
and change to:
code:
$proddesc = $proddisp['descshort'];
if (!(preg_match('/\<.*?\>/',$proddesc))) {$proddesc = '<p>' . $this->xhtml_encode($proddesc) . '</p>';}
then find:
code:
<p><?php print $proddesc; ?></p>
and change to:
code:
<?php print $proddesc; ?>
This encodes and puts <p> tags around any short descriptions that do not contain XHTML tags and leaves descriptions with tags alone.
Pending Inclusion