Umstellung der Preisangabe auf "ab XX,XX €"
- Erstellt:
- Montag, 29. Juni 2009
- Letzte Bearbeitung:
- Montag, 29. Juni 2009
Antwort
Vorab-Hinweis: Alle hier gemachten Aussagen stellen per Definition keine Rechtsberatung dar. Diese Inhalte entsprechen dem gesunden Menschenverstand, was man von Gesetzen oftmals nicht gerade behaupten kann. Daher ersetzen diese Informationen nicht die Konsultation eines Rechtsanwalts. - Es liegt nicht in unserem Interesse, VirtueMart zur Zielscheibe von Abmahnungen zu machen.
Alle Angaben, Hinweise und Codes ohne Garantie! Bitte sichern Sie die alten Dateien, BEVOR Sie Änderungen vornehmen, so daß Sie gegebenenfalls den Ausgangszustand wiederherstellen können.
Zwei Möglichkeiten der Angabe "Preis ab XX,XX €"
Zuerst möchte ich Sie darauf hinweisen, daß Sie durch eine solche Preisangabe unter Umständen durchaus ernste Probleme bekommen könnten.
Urteil Zur Preisangabe "XX,XX €"
Beachten sie daher: der "Preis ab" sollte ein Endpreis sein, also incl. MwST, Verpackungs- und Versandkosten.
Die erste und einfachste Möglichkeit ist, diese Angabe "ab 10,00 €" z.B. in die Kurzbeschreibung des Artikels einzufügen. Ich nehme an, daß das nicht die Lösung ist, die Sie sich vorstellen.
Die zweite Möglichkeit besteht in der Änderung der Dateien:
1.) administrator/components/com_virtuemart/html/shop.browse.php
Ersetzen Sie den in dieser Datei den Code:
if (_SHOW_PRICES == '1' && $auth['show_prices']) {
$product_price = $ps_product->show_price( $db_browse->f("product_id") );
}
else {
$product_price = "";
}
durch:
// Price: xx.xx EUR
if (_SHOW_PRICES == '1' && $auth['show_prices']) {
if ($ps_product->parent_has_children( $db_browse->f("product_id") )) {
$product_price = '<span class="tiny">ab</span>'.$ps_product->show_price( $db_browse->f("product_id") );
} else {
$product_price = $ps_product->show_price( $db_browse->f("product_id") );
}
}
else {
$product_price = "";
}
2.) administrator/components/com_virtuemart/html/shop.product_details.php
Ersetzen Sie in dieser Datei den Code:
// PRODUCT PRICE
if (_SHOW_PRICES == '1') {
if( $db_product->f("product_unit") && VM_PRICE_SHOW_PACKAGING_PRICELABEL) {
$product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE_PER_UNIT').' ('.$db_product->f("product_unit")."):</strong>";
}
else {
$product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE'). ": </strong>";
}
$product_price = $ps_product->show_price( $product_id );
}
else {
$product_price_lbl = "";
$product_price = "";
}
durch:
// PRODUCT PRICE
if (_SHOW_PRICES == '1') {
if( $db_product->f("product_unit") && VM_PRICE_SHOW_PACKAGING_PRICELABEL) {
$product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE_PER_UNIT').' ('.$db_product->f("product_unit")."):</strong>";
}
else {
$product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE'). ": </strong>";
}
if ($ps_product->parent_has_children( $product_id )) {
$product_price = "ab ". $ps_product->show_price( $product_id );}
else {
$product_price = $ps_product->show_price( $product_id );}
}
else {
$product_price_lbl = "";
$product_price = "";
}
Alle Angaben, Hinweise und Codes ohne Garantie! Bitte sichern Sie die alten Dateien, BEVOR Sie Änderungen vornehmen, so daß Sie gegebenenfalls den Ausgangszustand wiederherstellen können.
Zwei Möglichkeiten der Angabe "Preis ab XX,XX €"
Zuerst möchte ich Sie darauf hinweisen, daß Sie durch eine solche Preisangabe unter Umständen durchaus ernste Probleme bekommen könnten.
Urteil Zur Preisangabe "XX,XX €"
Beachten sie daher: der "Preis ab" sollte ein Endpreis sein, also incl. MwST, Verpackungs- und Versandkosten.
Die erste und einfachste Möglichkeit ist, diese Angabe "ab 10,00 €" z.B. in die Kurzbeschreibung des Artikels einzufügen. Ich nehme an, daß das nicht die Lösung ist, die Sie sich vorstellen.
Die zweite Möglichkeit besteht in der Änderung der Dateien:
1.) administrator/components/com_virtuemart/html/shop.browse.php
Ersetzen Sie den in dieser Datei den Code:
if (_SHOW_PRICES == '1' && $auth['show_prices']) {
$product_price = $ps_product->show_price( $db_browse->f("product_id") );
}
else {
$product_price = "";
}
durch:
// Price: xx.xx EUR
if (_SHOW_PRICES == '1' && $auth['show_prices']) {
if ($ps_product->parent_has_children( $db_browse->f("product_id") )) {
$product_price = '<span class="tiny">ab</span>'.$ps_product->show_price( $db_browse->f("product_id") );
} else {
$product_price = $ps_product->show_price( $db_browse->f("product_id") );
}
}
else {
$product_price = "";
}
2.) administrator/components/com_virtuemart/html/shop.product_details.php
Ersetzen Sie in dieser Datei den Code:
// PRODUCT PRICE
if (_SHOW_PRICES == '1') {
if( $db_product->f("product_unit") && VM_PRICE_SHOW_PACKAGING_PRICELABEL) {
$product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE_PER_UNIT').' ('.$db_product->f("product_unit")."):</strong>";
}
else {
$product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE'). ": </strong>";
}
$product_price = $ps_product->show_price( $product_id );
}
else {
$product_price_lbl = "";
$product_price = "";
}
durch:
// PRODUCT PRICE
if (_SHOW_PRICES == '1') {
if( $db_product->f("product_unit") && VM_PRICE_SHOW_PACKAGING_PRICELABEL) {
$product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE_PER_UNIT').' ('.$db_product->f("product_unit")."):</strong>";
}
else {
$product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE'). ": </strong>";
}
if ($ps_product->parent_has_children( $product_id )) {
$product_price = "ab ". $ps_product->show_price( $product_id );}
else {
$product_price = $ps_product->show_price( $product_id );}
}
else {
$product_price_lbl = "";
$product_price = "";
}





