Notice
  • Please login to download this file.

Question: Choose empty value for certain parameters

For certain parameters in Virtuemart 1.1 you may want to choose empty values:



Let's edit this file:
/administrator/components/com_virtuemart/html/product.product_form.php


Add two echo's (lines 11 and 18):
...
if ($dbpt->f("parameter_type")=="V") { //  Type: Multiple Values
	$size = min(count($fields),6)+1;
	echo "[]\" multiple size=\"$size\">\n";
	$selected_value = array();
	$get_item_value = $dbp->f($dbpt->f("parameter_name"));
	$get_item_value = explode(";",$get_item_value);
	foreach($get_item_value as $value) {
		$selected_value[$value] = 1;
	}
	echo '<option value=""></option>'."\n";	// new: add first as empty field
	foreach($fields as $field) {
		echo "\n";
	}
}
else {  // Other Parameter type
	echo "\">\n";
	echo '<option value=""></option>'."\n";	// new: add first as empty field
	foreach($fields as $field) {
		echo "\n";
	}
}
...

Visit AsianSexCenter.Com for the best asian xxx.