Shopping Cart Software

Shopping Cart Software UK Customised Version of ClickCartPro 6
corner image corner image

Enabling XHTML and PHP Tags For Product Short Description

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; ?>


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]

corner image
Valid XHTML   Valid CSS   w3c wai aa
GreenbarnWeb.com © 2001 - 2009
corner image
Page was generated in 0.1045 seconds