Use “Product Warranty” Field as Product Tags

This mod will make use of the “Product Warranty” field and display the content of “Product Warranty” within the product description.

Implementation

In /includes/classes/class.product.php (around line 163)

Find

$this->_proddesc = $row['proddesc'];

Replace

$this->_proddesc = $row['proddesc'];
// MOD
if($row['prodwarranty'] != ''){
	$this->_proddesc .= "<b>Tags</b><ul>";
	$bits = explode("\n", $row['prodwarranty']);
	foreach($bits as $bit){
		$this->_proddesc .= "<li>$bit</li>";
	}
	$this->_proddesc .= "</ul>";
}
// MOD

Leave a Reply

Your email address will not be published. Required fields are marked *