Jump to content
xt:Commerce Community Forum

Cross-Sell (X-Sell) Modul - Preise alle Netto :(


Pattstock

Recommended Posts

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


<?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 [url]www.oscommerce.com[/url]

  (c) 2003 nextcommerce (xsell_products.php,v 1.5 2003/08/13); [url]www.nextcommerce.org[/url]


  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) [email][email protected][/email]


  ----------------------------------------------------------------------------------------- 

  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 ++;


   }

  }

 }

?>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 3 months later...

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

p.products_tax_class_id,
und in Zeile 77 folgendes eingef?gt
'XSELL_products_tax_class_id'=>$xsell['products_tax_class_id'],

Bei Fehlern oder Unvollst?ndigkeit bitte ich um Berichtigung.

MFG

Astrostar

Link to comment
Share on other sites

  • 2 weeks later...

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

p.products_tax_class_id,
und in Zeile 77 folgendes eingef?gt
'XSELL_products_tax_class_id'=>$xsell['products_tax_class_id'],

Bei Fehlern oder Unvollst?ndigkeit bitte ich um Berichtigung.

MFG

Astrostar

Quoted post

Gleiches Problem gehabt, DANKE, jezt nicht mehr :laugh:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...