#1 (permalink)  
Alt 15.12.2004, 14:29
 
Registriert seit: 21.11.2004
Beiträge: 158
Standard

servus leutz...

hab ein problem...denke jedoch, da? ihr mir helfen k?nnt ;-)

also...habe testweise die xtc version 2.0 installiert (bald sponsor). soweit alles gut...wenn ich allersings sonderangebote setze ist der neue preis schwarz und der alte preis rot und durchgestrichen.

frage: wie kann ich es so einstellen, sodass der angebotspreis rot ist und der alte preis durchgestrichen ist und die farbe schwarz hat, so wie das eigentlich auch sein sollte?

schon mal vielen dank im voraus.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 15.12.2004, 18:55
 
Registriert seit: 21.11.2004
Beiträge: 158
Standard

kann mir da keiner helfen?

hab das forum bereits durchforstet...nichts zum thema gefunden!

:cry:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 15.12.2004, 19:08
Benutzerbild von polkhigh33
xt:C Supportmitarbeiter
 
Registriert seit: 26.10.2003
Ort: Hamburg
Beiträge: 6.862
Standard

in der v3 ist es in der /includes/classes/xtcPrice.php definiert
Code:
 function xtcFormatSpecialDiscount($discount,$pPrice,$format) {
  $sPrice = $pPrice-($pPrice / 100)*$discount;
  if ($format) {
  return '<font size="-1" color="#ff0000">Statt <s>'
        .$this->xtcFormat($pPrice,$format).
        '</s></font><br>'.ONLY
        .$this->xtcFormat($sPrice,$format).
        '<br><font size="-1">'.YOU_SAVE
        .$discount.
        '%';
  } else {
  return $sPrice;
  }
in der v2 heisst die funktion glaub ich anders, musst in dem verzeichnis mal suchen, da gibts dann bestimmt so einen ?hnlichen codeabschnitt drin.
__________________
dieser beitrag ist ohne gewähr und stellt nur meine meinung und keinesfalls eine rechtsberatung dar. im zweifelsfalle ist er ironisch gemeint.
.:netzdesign33.de:. | .:blog33.de:.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 15.12.2004, 20:53
 
Registriert seit: 21.11.2004
Beiträge: 158
Standard

danke f?r deine antwort....

bin jedoch nicht f?ndig geworden.

die einzigen dateien, die ich gefunden hab sind diese hier:
xtc_get_products_special_price.inc.php
xtc_get_products_special_price.inc.php
xtc_format_special_price.inc.php

hat jemand noch ne andere idee?

:grml:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 15.12.2004, 21:05
 
Registriert seit: 21.11.2004
Beiträge: 158
Standard

ich nehme an, da? es das hier ist:
xtc_get_products_special_price.inc.php

Zitat:
<?php
/* -----------------------------------------------------------------------------------------
$Id: xtc_format_special_price.inc.php,v 1.1 2003/09/06 21:47:50 fanta2k Exp $

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

Copyright &copy; 2003 XT-Commerce
-----------------------------------------------------------------------------------------
by Mario Zanier for XTcommerce

based on:
&copy; 2003 nextcommerce (xtc_format_special_price.inc.php,v 1.6 2003/08/20); www.nextcommerce.org

Released under the GNU General Public License
---------------------------------------------------------------------------------------*/

function xtc_format_special_price ($special_price,$price,$price_special,$calculate_c urrencies,$quantity,$products_tax)
{
// calculate currencies

$currencies_query = xtc_db_query("SELECT symbol_left,
symbol_right,
decimal_places,
decimal_point,
thousands_point,
value
FROM ". TABLE_CURRENCIES ." WHERE
code = '".$_SESSION['currency'] ."'");
$currencies_value=xtc_db_fetch_array($currencies_q uery);
$currencies_data=array();
$currencies_data=array(
'SYMBOL_LEFT'=>$currencies_value['symbol_left'] ,
'SYMBOL_RIGHT'=>$currencies_value['symbol_right'] ,
'DECIMAL_PLACES'=>$currencies_value['decimal_places'],
'DEC_POINT'=>$currencies_value['decimal_point'],
'THD_POINT'=>$currencies_value['thousands_point'],
'VALUE'=> $currencies_value['value']) ;
if ($_SESSION['customers_status']['customers_status_show_price_tax'] =='0') {
$products_tax='';
}
//$special_price= (xtc_add_tax($special_price,$products_tax))*$quant ity;
//$price= (xtc_add_tax($price,$products_tax))*$quantity;
$price=$price*$quantity;
$special_price=$special_price*$quantity;

if ($calculate_currencies=='true') {
$special_price=$special_price * $currencies_data['VALUE'];
$price=$price * $currencies_data['VALUE'];

}
// round price
$special_price=xtc_precision($special_price,$curre ncies_data['DECIMAL_PLACES'] );
$price=xtc_precision($price,$currencies_data['DECIMAL_PLACES'] );

if ($price_special=='1') {
$price=number_format($price,$currencies_data['DECIMAL_PLACES'], $currencies_data['DEC_POINT'], $currencies_data['THD_POINT']);
$special_price=number_format($special_price,$curre ncies_data['DECIMAL_PLACES'], $currencies_data['DEC_POINT'], $currencies_data['THD_POINT']);

$special_price ='<font color="ff0000"><s>'. $currencies_data['SYMBOL_LEFT'].' '.$price.' '.$currencies_data['SYMBOL_RIGHT'].' </s></font>'. $currencies_data['SYMBOL_LEFT']. ' '.$special_price.' '.$currencies_data['SYMBOL_RIGHT'];
}
return $special_price;
}
?>
wo mu? "was" ge?ndert werden.

komme leider nich weid?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 15.12.2004, 21:11
Benutzerbild von polkhigh33
xt:C Supportmitarbeiter
 
Registriert seit: 26.10.2003
Ort: Hamburg
Beiträge: 6.862
Standard

guck mal xtc_format_special_price.inc.php , da h?rt sich doch der dateiname schon so an.....
__________________
dieser beitrag ist ohne gewähr und stellt nur meine meinung und keinesfalls eine rechtsberatung dar. im zweifelsfalle ist er ironisch gemeint.
.:netzdesign33.de:. | .:blog33.de:.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 15.12.2004, 21:11
 
Registriert seit: 21.11.2004
Beiträge: 158
Standard

doch..es ist es...vielen dank!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #8 (permalink)  
Alt 15.12.2004, 21:13
 
Registriert seit: 21.11.2004
Beiträge: 158
Standard

Zitat:
Originally posted by polkhigh33@Dec 15 2004, 22:11 PM
guck mal xtc_format_special_price.inc.php , da h?rt sich doch der dateiname schon so an.....
die ?nderung mu? man hier vornehmen:

xtc_format_special_price.inc.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #9 (permalink)  
Alt 15.12.2004, 22:21
 
Registriert seit: 21.11.2004
Beiträge: 158
Standard

leider komme ich mit meinem vorhaben nicht mehr weiter:

Zitat:

if ($price_special=='1') {
$price=number_format($price,$currencies_data['DECIMAL_PLACES'], $currencies_data['DEC_POINT'], $currencies_data['THD_POINT']);
$special_price=number_format($special_price,$curre ncies_data['DECIMAL_PLACES'], $currencies_data['DEC_POINT'], $currencies_data['THD_POINT']);

$special_price ='<font color="000000"><s>'. $currencies_data['SYMBOL_LEFT'].' '.$price.' '.$currencies_data['SYMBOL_RIGHT'].' </s></font>'. $currencies_data['SYMBOL_LEFT']. ' '.$special_price.' '.$currencies_data['SYMBOL_RIGHT'];
}
return $special_price;
}
?>
:grml:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #10 (permalink)  
Alt 15.12.2004, 22:35
 
Registriert seit: 21.11.2004
Beiträge: 158
Standard

habe zwar geschafft, sodass der unterstrichene "alte" preis jetzt schwarz angezeigt wird, nur krich ich den neuen preis nicht in roter farbe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
darstellung, sonderangebote

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 03:43 Uhr.

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

xt:Commerce is a SafeCharge brand