Ticket #1311: Erweiterung des Shops für Anzeige der VPE bei Staffelpreisen.patch
| File Erweiterung des Shops für Anzeige der VPE bei Staffelpreisen.patch, 8.8 KB (added by , 8 years ago) |
|---|
-
includes/classes/product.php
401 401 $quantity = GRADUATED_PRICE_MAX_VALUE.' '.$staffel[$i]['stk']; 402 402 } 403 403 $vpe = ''; 404 $vpe_unit = ''; 405 $vpe_value = ''; 404 406 if (isset($this->data) && $this->data['products_vpe_status'] == 1 && $this->data['products_vpe_value'] != 0.0 && $staffel[$i]['price'] > 0) { 405 407 $vpe = $staffel[$i]['price'] - $staffel[$i]['price'] / 100 * $discount; 406 408 $vpe = $vpe * (1 / $this->data['products_vpe_value']); 407 409 $vpe = $xtPrice->xtcFormatCurrency($xtPrice->xtcFormat($vpe, false, $this->data['products_tax_class_id']), 0, false).TXT_PER.xtc_get_vpe_name($this->data['products_vpe']); 410 $vpe_unit = xtc_get_vpe_name($this->data['products_vpe']); 411 $vpe_value = $this->data['products_vpe_value']; 412 $vpe_value = number_format($vpe_value, 2, ',', '.'); 408 413 } 409 414 410 415 $Pprice = $xtPrice->xtcFormat($staffel[$i]['price'] - $staffel[$i]['price'] / 100 * $discount, false, $this->data['products_tax_class_id']); … … 422 427 'FROM_QUANTITY' => GRADUATED_PRICE_MAX_VALUE, 423 428 'TO_QUANTITY' => $to_quantity, 424 429 'VPE' => $vpe, 430 'VPE_UNIT' => $vpe_unit, 431 'VPE_VALUE' => $vpe_value, 425 432 'PRICE' => $xtPrice->xtcFormat($Pprice, true), 426 433 'PLAIN_PRICE' => $Pprice, 427 434 'PRICE_NETTO' => $Nprice, -
includes/classes/xtcPrice.php
802 802 $special_price = ''; 803 803 $from = ''; 804 804 $uvp = ''; 805 // 806 $vpe_query="SELECT pv.products_vpe_name, 807 p.products_vpe_value 808 FROM " . TABLE_PRODUCTS_VPE . " pv 809 JOIN " . TABLE_PRODUCTS . " p 810 ON pv.products_vpe_id = p.products_vpe 811 WHERE pv.language_id='".(int)$_SESSION['languages_id']."' 812 AND p.products_id='".(int)$pID."'"; 813 $vpe_query = xtDBquery($vpe_query); 814 $vpe = xtc_db_fetch_array($vpe_query,true); 815 $vpe_unit = $vpe['products_vpe_name']; 816 $vpe_value = $vpe['products_vpe_value']; 817 $vpe_value = number_format($vpe_value, 2, ',', '.'); 818 $unit_price = sprintf(UNIT_PRICE, $vpe_value, $vpe_unit); 819 // 805 820 if (($this->cStatus['customers_status_graduated_prices'] == '1') && ($sQuery['qty'] > 1)) { 806 821 $bestPrice = $this->xtcGetGraduatedPrice($pID, $sQuery['qty']); 807 822 if ($discount) { … … 849 864 'uvp' => $uvp, 850 865 'flag' => 'SpecialGraduated', 851 866 'netto' => $Nprice, 852 'brutto' => $Bprice 867 'brutto' => $Bprice, 868 //'vpe_unit' => $vpe_unit, 869 //'vpe_value' => $vpe_value, 870 'unit_price' => $unit_price 853 871 ); 854 872 } 855 873 } else { -
lang/english/english.php
467 467 define('ENTRY_VAT_ERROR', 'The chosen VAT Reg No is not valid or cannot be verified at the moment! Please enter a valid VAT Reg No or leave this field empty.'); 468 468 define('MSRP','MSRP'); 469 469 define('YOUR_PRICE','your price '); 470 define('UNIT_PRICE','unit price '); 470 //define('UNIT_PRICE','unit price '); 471 define('UNIT_PRICE','Price for %s x %s: '); 471 472 define('ONLY',' Now only '); 472 473 define('FROM','from '); 473 474 define('YOU_SAVE','you save '); -
lang/german/german.php
467 467 define('ENTRY_VAT_ERROR', 'Die eingegebene USt-IdNr. ist ungültig oder kann derzeit nicht überprüft werden! Bitte geben Sie eine gültige ID ein oder lassen Sie das Feld zunächst leer.'); 468 468 define('MSRP','UVP'); 469 469 define('YOUR_PRICE','Ihr Preis '); 470 define('UNIT_PRICE','Stückpreis '); 470 //define('UNIT_PRICE','Stückpreis '); 471 define('UNIT_PRICE','Preis für %s x %s: '); 471 472 define('ONLY',' Jetzt nur ');// DokuMan - Werbung mit durchgestrichenen Statt-Preisen ist zulässig 472 473 define('FROM','ab '); 473 474 define('YOU_SAVE','Sie sparen '); -
templates/tpl_modified/module/graduated_price.html
5 5 <div class="gp_headline">{#heading_text#}</div> 6 6 {foreach name=aussen item=module_data from=$module_content} 7 7 <div class="gp_box{if $module_data.VPE != ''} vpe{/if}{if ($module_data.VPE != '' && $smarty.foreach.aussen.iteration is div by 2) || ($module_data.VPE == '' && $smarty.foreach.aussen.iteration is div by 3) || $smarty.foreach.aussen.last} last{/if}"> 8 <span class="gp_title">{$module_data.FROM_QUANTITY} {$module_data.PLAIN_QUANTITY} { #unit#}</span>8 <span class="gp_title">{$module_data.FROM_QUANTITY} {$module_data.PLAIN_QUANTITY} {*#unit#*}x {$module_data.VPE_VALUE} x {$module_data.VPE_UNIT}</span> 9 9 <span class="gp_price">{#pieces#} {$module_data.PRICE}</span> 10 10 {if $module_data.VPE != ''}<span class="gp_vpe">{$module_data.VPE}</span>{/if} 11 11 </div> -
templates/tpl_modified/module/includes/price_box.html
16 16 <span class="graduated_price"> 17 17 <span class="small_price">{$smarty.const.FROM}</span> {$price_data.PRODUCTS_PRICE_OLD_PRICE} 18 18 </span> 19 <span class="item_price{if $module_data.PRODUCTS_VPE} with_vpe{/if}"><span class="small_price">{ $smarty.const.UNIT_PRICE}</span> {$price_data.PRODUCTS_PRICE_SPECIAL_PRICE}</span>19 <span class="item_price{if $module_data.PRODUCTS_VPE} with_vpe{/if}"><span class="small_price">{*$smarty.const.UNIT_PRICE*}{$price_data.PRODUCTS_PRICE_UNIT_PRICE}</span> {$price_data.PRODUCTS_PRICE_SPECIAL_PRICE}</span> 20 20 {* ENDE Produkt Staffelpreis mit Ausgabe ab Preis, Stückpreis *} 21 21 {/if} 22 22 {elseif $price_data.PRODUCTS_PRICE_FLAG == 'NotAllowed'} -
templates/tpl_modified/module/includes/price_info.html
31 31 <span class="graduated_price"> 32 32 {if isset($price_data.PRODUCTS_PRICE_FROM)}<span class="small_price">{$smarty.const.FROM}</span> {/if}{$price_data.PRODUCTS_PRICE_OLD_PRICE} 33 33 </span> 34 <span class="item_price"><span class="small_price">{ $smarty.const.UNIT_PRICE}</span> {$price_data.PRODUCTS_PRICE_SPECIAL_PRICE}</span>34 <span class="item_price"><span class="small_price">{*$smarty.const.UNIT_PRICE*}{$price_data.PRODUCTS_PRICE_UNIT_PRICE}</span> {$price_data.PRODUCTS_PRICE_SPECIAL_PRICE}</span> 35 35 <meta itemprop="price" content="{$price_data.PRODUCTS_PRICE_PLAIN}" /> 36 36 {* ENDE Produkt Staffelpreis mit Ausgabe ab Preis, Stückpreis *} 37 37 {/if} -
templates/tpl_modified/module/includes/price_listing.html
24 24 <span class="graduated_price"> 25 25 <span class="small_price">{$smarty.const.FROM}</span> {$price_data.PRODUCTS_PRICE_OLD_PRICE} 26 26 </span> 27 <span class="item_price"><span class="small_price">{ $smarty.const.UNIT_PRICE}</span> {$price_data.PRODUCTS_PRICE_SPECIAL_PRICE}</span>27 <span class="item_price"><span class="small_price">{*$smarty.const.UNIT_PRICE*}{$price_data.PRODUCTS_PRICE_UNIT_PRICE}</span> {$price_data.PRODUCTS_PRICE_SPECIAL_PRICE}</span> 28 28 {* ENDE Produkt Staffelpreis mit Ausgabe ab Preis, Stückpreis *} 29 29 {/if} 30 30 {elseif $price_data.PRODUCTS_PRICE_FLAG == 'NotAllowed'}
