OK, du mußt folgende Datei editieren: ps_product_attribute.php Die findest du unter administrator/components/com_virtuemart/classes/
suche nach folgenden Abschnitt
Code:
* Creates textfields for customizable products from the custom attribute format
* @author Denie van Kleef (denievk@in2sports)
* @param unknown_type $product_id
* @return unknown
*/
function list_custom_attribute($product_id) {
global $mosConfig_secret;
$db = new ps_DB;
$q = "SELECT product_id, custom_attribute from #__{vm}_product WHERE product_id='$product_id'";
$db->query($q);
$db->next_record();
$custom_attr_list=$db->f("custom_attribute");
if ($custom_attr_list) {
$has_custom_attributes=1;
$fields=explode(";",$custom_attr_list);
$html = "";
foreach($fields as $field)
{
$titlevar=str_replace(" ","_",$field);
$title=ucfirst($field);
$html .= "<div style=\"width:30%;float:left;text-align:right;margin:3px;\">";
$html .= "<label for=\"".$titlevar."_field\">$title</label>:</div>";
$html .= "<div style=\"width:60%;float:left;margin:3px;\">";
$html .= "<input type=\"text\" class=\"inputbox\" id=\"".$titlevar."_field\" size=\"30\" name=\"$titlevar\" />";
$html.="</div>\n";
$html .= "<input type=\"hidden\" name=\"custom_attribute_fields[]\" value=\"$titlevar\" />\n";
$html .= "<input type=\"hidden\" name=\"custom_attribute_fields_check[$titlevar]\" value=\"".md5($mosConfig_secret. $titlevar )."\" />\n";
Die rot markierte Zahl ist die Breite der Inputbox. Die kannst du entsprechen deinen Bedürfnissen anpassen.
ciao, atomino
Lesezeichen