Möchten Sie einfach ein Dropdown mit Text ohne "+ 12,00€" Anzeige?
Lösung:
Suchen Sie die Datei: administrator/components/com_virtuemart/models/customfields.php
Zeile 946: $price ="+".$price;
ändern in:
$price ="".$price;
---
Zeile 951:
else {
$price = ($customPrice === '') ? '' : vmText::sprintf('COM_VIRTUEMART_CART_PRICE_FREE',$currency->getSymbol());
}
return $price;
}
ändern in:
else {
$price = ($customPrice === '') ? '' : vmText::sprintf('COM_VIRTUEMART_CART_PRICE_FREE',$currency->getSymbol());
}
}
---
else {
$price = ($customPrice === '') ? '' : vmText::sprintf('COM_VIRTUEMART_CART_PRICE_FREE',$calculator->_currencyDisplay->getSymbol());
}
return $price;
}
ändern in:
else {
$price = ($customPrice === '') ? '' : vmText::sprintf('COM_VIRTUEMART_CART_PRICE_FREE',$calculator->_currencyDisplay->getSymbol());
}
}
--
Fertig.
Nach einem Virtuemart Update sind die Selbsterstellten Felder weg
Nach einem Update von Virtuemart auf die letzte Version 3.2.0, erscheinen die selbsterstellten Felder weder im Warenkorb und auch nicht mehr in der Bestell/Bestätigungs E-Mail.
Lösung:
Suchen Sie mit Hilfe eines FTP Clients nach folgender Datei:
customfield.php in sublayout ( /components/com_virtuemart/sublayouts) und foreach ersetzten ( foreach( (array)$product->customfields as $prodcustom){ ) ungefähr in Zeile 658 mit folgendem Code
foreach( (array)$product->customfields as $prodcustom){
//We just add the customfields to be shown in the cart to the variantmods
if(is_object($prodcustom)){
if($prodcustom->is_cart_attribute or $prodcustom->is_input){
if(!isset($variantmods[$prodcustom->virtuemart_custom_id])){
$variantmods[$prodcustom->virtuemart_custom_id][$prodcustom->virtuemart_customfield_id] = true;
}
}
$productCustoms[$prodcustom->virtuemart_customfield_id] = $prodcustom;
}
}