#1 (permalink)  
Alt 16.06.2005, 01:26
Neuer Benutzer
 
Registriert seit: 14.05.2005
Beiträge: 16
Unglücklich

Hallo @all

Bei mir werden die Preise immer in Netto angezeigt...

Was muss ich ?ndern damit die Preise in Brutto angezeigt werden? Habe schon im Forum danach gesucht... nur leider habe ich dazu nichts gefunden
Thx

Code:
<?php
/* -----------------------------------------------------------------------------------------
  $Id:

  XT-Commerce - community made shopping
  http://www.xt-commerce.com

  Copyright (c) 2003 XT-Commerce
  -----------------------------------------------------------------------------------------
  based on:
  (c) 2000-2001 The Exchange Project (earlier name of osCommerce)
  (c) 2002-2003 osCommercebased on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35 www.oscommerce.com
  (c) 2003 nextcommerce (xsell_products.php,v 1.5 2003/08/13); www.nextcommerce.org

  Released under the GNU General Public License
  -----------------------------------------------------------------------------------------
  Third Party contribution:
  Cross-Sell (X-Sell) Admin 1  Autor: Joshua Dechant (dreamscape)

  Released under the GNU General Public License
  -----------------------------------------------------------------------------------------
  Also converted for XT-Commerce Witalij Olejnik(xaoc,xaoc2) xaoc@o2.pl
  
  ----------------------------------------------------------------------------------------- 
  Also converted for XT-Commerce 3.0.2 Roland Reichardt
   - change in function call 
  ---------------------------------------------------------------------------------------*/

$module_smarty= new Smarty;
$module_smarty->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');

  if ((int)$_GET['products_id']) {


  //fsk18 lock
 $fsk_lock='';
 if ($_SESSION['customers_status']['customers_fsk18_display']=='0') {
 $fsk_lock=' and p.products_fsk18!=1';
 }
  $xsell_query = xtc_db_query("select distinct p.products_fsk18,
                         p.products_id,
                         p.products_image,
                         pd.products_name ,
                         p.products_fsk18,
                         xp.sort_order from " .
                         TABLE_PRODUCTS_XSELL . " xp, " .
                         TABLE_PRODUCTS . " p, " .
                         TABLE_PRODUCTS_DESCRIPTION . " pd
                      where xp.products_id = '" . (int)$_GET['products_id'] . "'
                      and xp.xsell_id = p.products_id" . $fsk_lock ."
                      and p.products_id = pd.products_id
                      and pd.language_id = '" . $languages_id . "'
                      and p.products_status = '1'
                      order by xp.sort_order asc");
  $num_products_xsell = xtc_db_num_rows($xsell_query);


  // if ($num_products_xsell >= MIN_DISPLAY_ALSO_PURCHASED) {
  if ($num_products_xsell >= 0) {
   $row = 0;
   $module_content = array();

   while ($xsell = xtc_db_fetch_array($xsell_query)) {
    $xsell['products_name'] = xtc_get_products_name($xsell['products_id']);
    //##### buy button ###
    if(($xsell['products_fsk18']=='1') AND ($_SESSION['customers_status']['customers_fsk18']=='1')){
     $xsell_buy_now = '<img src = templates/' . CURRENT_TEMPLATE . '/' . 'img/fsk18.gif>';
    }
    else
     $xsell_buy_now = '<a href="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=buy_now&BUYproducts_id=' . $xsell['products_id'], 'NONSSL') . '">' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW);

    if($xsell['products_image'] != ''){
    $xsell_image = xtc_image(DIR_WS_THUMBNAIL_IMAGES . $xsell['products_image'], $xsell['products_name']/*, PRODUCT_IMAGE_THUMBNAIL_WIDTH, PRODUCT_IMAGE_THUMBNAIL_HEIGHT*/);
    }
    $module_content[]=array('XSELL_NAME' => $xsell['products_name'],
                'XSELL_INFO' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']),
                'XSELL_IMAGE' => $xsell_image,
                'XSELL_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']),
                'XSELL_PRICE' =>$xtPrice->xtcGetPrice($xsell['products_id'],$format=true,1, $xsell['products_tax_class_id'],$xsell['products_price']),
                'XSELL_BUY_NOW' => $xsell_buy_now,
                'XSELL_FSK18' => $xsell['products_fsk18'],
                'XSELL_CUSTOMERS_FSK18' => $_SESSION['customers_status']['customers_fsk18'],
                'XSELL_CUSTOMERS_SHOW_PRICE' => $_SESSION['customers_status']['customers_status_show_price']

                 );
    $module_smarty->assign('language', $_SESSION['language']);
    $module_smarty->assign('module_content',$module_content);
    // set cache ID
    if (USE_CACHE=='false') {
    $module_smarty->caching = 0;
    $module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/xsell.html');
    } else {
    $module_smarty->caching = 1;
    $module_smarty->cache_lifetime=CACHE_LIFETIME;
    $module_smarty->cache_modified_check=CACHE_CHECK;
    $cache_id = $_SESSION['language'].$_GET['products_id'].$_SESSION['customers_status']['customers_status_name'];
    $module= $module_smarty->fetch(CURRENT_TEMPLATE.'/module/xsell.html',$cache_id);
    }
    $info_smarty->assign('MODULE_xsell',$module);

     $row ++;

   }
  }
 }
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 16.06.2005, 06:32
 
Registriert seit: 04.10.2004
Beiträge: 269
Standard

Es wird hier dieselbe Preisfindungsroutine 'xtc_get_products_price' verwendet, wie in den anderen Modulen, so dass kein Grund vorliegt, warum hier eine andere Preisdarstellung erfolgen sollte.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 16.06.2005, 06:35
Benutzerbild von luebke  
Registriert seit: 13.05.2004
Beiträge: 546
Standard

Moin,

sollte man eigentlich im Admin unter "My Shop" einstellen k?nnen. Alternativ kannst Du bei der Artikeleingabe ja auch noch eine Steuerklasse zuseisen k?nnen.
Oder betrifft das nur die Artikel ?ber das x-sell-Modul ?

Viele Gr??e !
Thomas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 16.06.2005, 22:41
Neuer Benutzer
 
Registriert seit: 14.05.2005
Beiträge: 16
Cool

Ich habe den Fehler gefunden

Es fehlte "p.products_tax_class_id" :duh:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 20.09.2005, 16:36
 
Registriert seit: 02.04.2005
Beiträge: 21
Standard

Hallo,

habe das gleiche Problem mit dem Nettopreis. Xsell zeigt die Preise Netto an aber alles andere Funktioniert. Nur d?rfte der Kunde sich get?uscht f?hlen, brauche also dringend eine L?sung.

Wo und wie kann ich das Problem beseitigen??

MFG

Astrostar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 21.09.2005, 14:11
 
Registriert seit: 02.04.2005
Beiträge: 21
Standard

Hallo nochmal,

habe den "Fehler" gefunden und wie folgt behoben, hoffe das es jemanden n?tzt.
Von der Programmierung habe ich keine Ahnung, also bitte um Nachsicht wenns nicht richtig ist, aber bei scheint es zu klappen.

Folgende Datei habe ich erg?nzt:

include/modules/xsell_products.php

In Zeile 44 folgendes eingef?gt
Code:
p.products_tax_class_id,
und in Zeile 77 folgendes eingef?gt
Code:
'XSELL_products_tax_class_id'=>$xsell['products_tax_class_id'],
Bei Fehlern oder Unvollst?ndigkeit bitte ich um Berichtigung.

MFG

Astrostar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 03.10.2005, 09:56
 
Registriert seit: 29.09.2005
Beiträge: 3
Standard

Zitat:
Originally posted by Astrostar@Sep 21 2005, 02:11 PM
Hallo nochmal,

habe den "Fehler" gefunden und wie folgt behoben, hoffe das es jemanden n?tzt.
Von der Programmierung habe ich keine Ahnung, also bitte um Nachsicht wenns nicht richtig ist, aber bei scheint es zu klappen.

Folgende Datei habe ich erg?nzt:

include/modules/xsell_products.php

In Zeile 44 folgendes eingef?gt
Code:
p.products_tax_class_id,
und in Zeile 77 folgendes eingef?gt
Code:
'XSELL_products_tax_class_id'=>$xsell['products_tax_class_id'],
Bei Fehlern oder Unvollst?ndigkeit bitte ich um Berichtigung.

MFG

Astrostar
Gleiches Problem gehabt, DANKE, jezt nicht mehr :laugh:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
crosssell, modul, netto, preise, xsell

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 18:40 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand