Preisnachlass abstellen

  • Hallo Zusammen


    wie kann ich den Preisnachlass abstellen? Ich verwende VM 3.0.12, Joomla 3.4.8
    In Konfiguration/Preisangaben habe ich nur bei Endverkaufspreis die Häckchen drin. Auch beim Template-Wechseln ändert sich nichts.


    Vielen Dank im Voraus!


    Gruss
    chris

  • Servus,


    ein Screenshot wäre gut, den Preisnachlass findet man an vielen Stellen.


    Vielleicht meinst Du: Preisnachlassbetrag in der VM-Konfiguration unter Preisangaben.


    Für die Darstellung in den Produkten kann man den durchgestrichenen Preis hiermit ausschalten.
    Basispreis inklusive MwSt., aber ohne Preisnachlässe


    So long
    Stefan

  • Servus Stefan,


    in der VM-Konfiguration habe ich gemacht. Es hatte sich aber nichts geändert.
    In der Datei invoice-items konnte ich den Preisnachlass entfernen. Dort passt es jetzt. Das gleiche habe auch in der Datei details_items gemacht damit in der Online-Darstellung der Bestellung auch passt. Ist jetzt auch weg, aber gewisse Beträge (Zellen) sind verschoben und da komme ich leider nicht mehr weiter.



    Hier ist der aktuelle Code (die alte Datei habe ich vorher separat lokal gespeichert um ein Backup zu haben):


    <?php
    /**
    *
    * Order items view
    *
    * @package VirtueMart
    * @subpackage Orders
    * @author Oscar van Eijk, Valerie Isaksen
    * @link VirtueMart: Free e-commerce solution
    * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
    * @license The GNU General Public License v3.0 - GNU Project - Free Software Foundation GNU/GPL, see LICENSE.php
    * VirtueMart is free software. This version may have been modified pursuant
    * to the GNU General Public License, and as distributed it includes or
    * is derivative of works licensed under the GNU General Public License or
    * other free or open source software licenses.
    * @version $Id: details_items.php 8310 2014-09-21 17:51:47Z Milbo $
    */


    // Check to ensure this file is included in Joomla!
    defined('_JEXEC') or die('Restricted access');


    if($this->format == 'pdf'){
    $widthTable = '100';
    $widthTitle = '27';
    } else {
    $widthTable = '100';
    $widthTitle = '49';
    }


    ?>
    <table width="<?php echo $widthTable ?>%" cellspacing="0" cellpadding="0" border="0">
    <tr align="left" class="sectiontableheader">
    <th align="left" width="5%"><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_SKU') ?></th>
    <th align="left" colspan="2" width="<?php echo $widthTitle ?>%" ><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_NAME_TITLE') ?></th>
    <th align="center" width="10%"><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_STATUS') ?></th>
    <th align="right" width="10%" ><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_PRICE') ?></th>
    <th align="left" width="5%"><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_QTY') ?></th>
    <?php if ( VmConfig::get('show_tax')) { ?>
    <th align="right" width="10%" ><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_TAX') ?></th>
    <?php } ?>
    <th></th>
    <th align="right" width="10%"><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') ?></th>
    </tr>
    <?php
    foreach($this->orderdetails['items'] as $item) {
    $qtt = $item->product_quantity ;
    $_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id . '&virtuemart_product_id=' . $item->virtuemart_product_id, FALSE);
    ?>
    <tr valign="top">
    <td align="left">
    <?php echo $item->order_item_sku; ?>
    </td>
    <td align="left" colspan="2" >
    <div><a href="<?php echo $_link; ?>"><?php echo $item->order_item_name; ?></a></div>
    <?php
    if(!class_exists('VirtueMartModelCustomfields'))require(VMPATH_ADMIN.DS.'models'.DS.'customfields.php');
    $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
    echo $product_attribute;
    ?>
    </td>
    <td align="center">
    <?php echo $this->orderstatuses[$item->order_status]; ?>
    </td>
    <td align="right" class="priceCol" >
    <?php
    $item->product_discountedPriceWithoutTax = (float) $item->product_discountedPriceWithoutTax;
    if (!empty($item->product_priceWithoutTax) && $item->product_discountedPriceWithoutTax != $item->product_priceWithoutTax) {
    echo '<span class="line-through">'.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'</span><br />';
    echo '<span >'.$this->currency->priceDisplay($item->product_discountedPriceWithoutTax, $this->currency) .'</span><br />';
    } else {
    echo '<span >'.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'</span><br />';
    }
    ?>
    </td>
    <td align="right" >
    <?php echo $qtt; ?>
    </td>
    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right" class="priceCol"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($item->product_tax ,$this->currency, $qtt)."</span>" ?></td>
    <?php } ?>
    <td align="right" class="priceCol">
    <?php
    $item->product_basePriceWithTax = (float) $item->product_basePriceWithTax;
    $class = '';
    if(!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price ) {
    echo '<span class="line-through" >'.$this->currency->priceDisplay($item->product_basePriceWithTax,$this->currency,$qtt) .'</span><br />' ;
    }
    elseif (empty($item->product_basePriceWithTax) && $item->product_item_price != $item->product_final_price) {
    echo '<span class="line-through">' . $this->currency->priceDisplay($item->product_item_price,$this->currency,$qtt) . '</span><br />';
    }


    echo $this->currency->priceDisplay( $item->product_subtotal_with_tax ,$this->currency); //No quantity or you must use product_final_price ?>
    </td>
    </tr>


    <?php
    }
    ?>
    <tr class="sectiontableentry1">
    <td colspan="6" align="right"><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_PRICES_TOTAL'); ?></td>


    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($this->orderdetails['details']['BT']->order_tax,$this->currency)."</span>" ?></td>
    <?php } ?>
    <td></td>
    <td align="right"><?php echo $this->currency->priceDisplay($this->orderdetails['details']['BT']->order_salesPrice,$this->currency) ?></td>
    </tr>
    <?php
    if ($this->orderdetails['details']['BT']->coupon_discount <> 0.00) {
    $coupon_code=$this->orderdetails['details']['BT']->coupon_code?' ('.$this->orderdetails['details']['BT']->coupon_code.')':'';
    ?>
    <tr>
    <td></td>
    <td></td>


    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right">&nbsp;</td>
    <?php } ?>
    <td align="right">&nbsp;</td>
    <td></td>
    </tr>
    <?php } ?>



    <?php
    foreach($this->orderdetails['calc_rules'] as $rule){
    if ($rule->calc_kind== 'DBTaxRulesBill') { ?>
    <tr >
    <td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td>


    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right"> </td>
    <?php } ?>
    <td align="right"> <?php echo $this->currency->priceDisplay($rule->calc_amount,$this->currency); ?></td>
    <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount,$this->currency); ?> </td>
    </tr>
    <?php
    } elseif ($rule->calc_kind == 'taxRulesBill') { ?>
    <tr >
    <td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td>
    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount,$this->currency); ?> </td>
    <?php } ?>
    <td align="right"><?php ?> </td>
    <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount,$this->currency); ?> </td>
    </tr>
    <?php
    } elseif ($rule->calc_kind == 'DATaxRulesBill') { ?>
    <tr >
    <td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td>
    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right"> </td>
    <?php } ?>
    <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount,$this->currency); ?> </td>
    <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount,$this->currency); ?> </td>
    </tr>


    <?php
    }


    }
    ?>


    <tr>
    <td align="right" class="pricePad" colspan="6"><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_SHIPPING') ?></td>



    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($this->orderdetails['details']['BT']->order_shipment_tax, $this->currency)."</span>" ?></td>
    <?php } ?>
    <td align="right">&nbsp;</td>
    <td align="right"><?php echo $this->currency->priceDisplay($this->orderdetails['details']['BT']->order_shipment+ $this->orderdetails['details']['BT']->order_shipment_tax, $this->currency); ?></td>
    </tr>
    <tr>
    <td align="right" class="pricePad" colspan="6"><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT') ?></td>


    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($this->orderdetails['details']['BT']->order_payment_tax, $this->currency)."</span>" ?></td>
    <?php } ?>
    <td align="right">&nbsp;</td>
    <td align="right"><?php echo $this->currency->priceDisplay($this->orderdetails['details']['BT']->order_payment+ $this->orderdetails['details']['BT']->order_payment_tax, $this->currency); ?></td>
    </tr>
    <tr>
    <td align="right" class="pricePad" colspan="6"><strong><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') ?></strong></td>
    <?php if ( VmConfig::get('show_tax')) { ?>
    <td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderdetails['details']['BT']->order_billTaxAmount, $this->currency); ?></span></td>
    <?php } ?>
    <td></td>
    <td align="right"><strong><?php echo $this->currency->priceDisplay($this->orderdetails['details']['BT']->order_total, $this->currency); ?></strong></td>
    </tr>
    </table>