Hallo liebe Gemeinde
Mir ist folgendes Problem aufgefallen, die Preisdarstellung im Internet Explorer wird in der Vorschau und im Internet korrekt angezeigt (denke die Vorschau nutzt den IE).
Habe den FF installiert und habe eine Seite aufgerufen, dort wird die Schriftfarbe und Schriftgrösse verschieden dargestellt, woran kann das denn liegen ? Siehe auch das Bild
Die Darstellung soll wie im IE aussehen.
Hoffe mir kann jemand helfen und vielleicht auch erklären warum der FF dieses anders ausliest als IE. Vielen Dank
Folgende Einstellung im Screen.css
Einstellung in Produktdetail default.module
Einstellung in Produktlist default.module
Mir ist folgendes Problem aufgefallen, die Preisdarstellung im Internet Explorer wird in der Vorschau und im Internet korrekt angezeigt (denke die Vorschau nutzt den IE).
Habe den FF installiert und habe eine Seite aufgerufen, dort wird die Schriftfarbe und Schriftgrösse verschieden dargestellt, woran kann das denn liegen ? Siehe auch das Bild
Die Darstellung soll wie im IE aussehen.
Hoffe mir kann jemand helfen und vielleicht auch erklären warum der FF dieses anders ausliest als IE. Vielen Dank
Folgende Einstellung im Screen.css
PHP-Code:
#product_price{
font-size: 18px;
color: #FF8416;
}
/*
.t-price-list{
font-size: 16px;
color: #FF8416;
*/
}
.t-em {color:#FF8416;font-size:10pt;}
PHP-Code:
function getProductPrice(){
var sPrice = '<div style="text-align:' + sBtnInlineHAlign + '" id="pdPrice_' + rsProduct('pkid') + '">';
if (rsProduct('ImageDetail') == 1) {
sPrice += '<div style="float:left"><img src="@media:15@" border="0"></div>';
}
else if (rsProduct('ImageDetail') == 0) {
sPrice += '';
}
var bShowListPrice = !toBool(rsProduct('HideListPrice'));
if(rsProduct("PricingConfiguration")==3)
{
sPrice += '<div style="font-weight:bold">@webres:lbl.price-on-demand@</div>';
}
else if(rsProduct("PricingConfiguration") != 1)
{
if(toInt(rsProduct('baseCategoryDiscount'))>0||(bHasDefaultDiscount&&lDefaultDiscountType!=2))
{
if(bShowListPrice)
{
if(bShowPricePrefix && toStr(rsProduct('PricePrefix')).length > 0)
{
sPrice += '<span class="t-small">' + rsProduct("PricePrefix") + ' </span>';
};
sPrice += '<span class="t-small t-em" style="text-decoration:line-through" id="product_original_price"></span><br>';
};
if(bShowPricePrefix && toStr(rsProduct('DiscountPrefix')).length > 0)
{
sPrice += '<span class="t-small">' + rsProduct("DiscountPrefix") + ' </span>';
};
}
else{
if(bShowPricePrefix && toStr(rsProduct('PricePrefix')).length > 0)
{
sPrice += '<span class="t-small">' + rsProduct("PricePrefix") + ' </span>';
};
};
sPrice += '<span class="t-large t-em" id="product_price"> </span>';
if(bShowSecCur)
{
sPrice += '<br><span class="t-medium t-em" id="product_price_seccur"> </span>';
};
if(toInt(rsProduct('baseCategoryDiscount'))>0||(bHasDefaultDiscount&&lDefaultDiscountType!=2))
{
if(bShowListPrice&&bShowDifference)
{
sPrice += '<br><span class="t-small">@webres:lbl.product-price-difference@ </span><span class="t-small t-em" id="product_difference"></span>';
}
}
var bShowTax = !(toBool(rsProduct("NoTax"), false));
var dblShippingSurcharge = toFloat(rsProduct("ShippingSurcharge"), 0);
if(bShowTax || sShippingCostsLink.length > 0 || dblShippingSurcharge > 0 || (bShowPriceSuffix && toStr(rsProduct('PriceSuffix')).length > 0) || (bShowPriceBase && toBool(rsProduct("DisplayBasePrice")))){
sPrice += '<div class="t-small t-weak" style="display:block;margin-bottom:6px">';
if(bShowPriceSuffix && toStr(rsProduct('PriceSuffix')).length > 0){
sPrice += '<div class="t-em">' +rsProduct("PriceSuffix") + '</div>';
};
if(bShowTax&&bShowVATInfos){
sPrice += '<div class="t-small">';
if(bPriceDisplayGross){
sPrice += '@webres:lbl.vat-incl-info@ (' + rsProduct('TaxPercent') + '%)';
} else {
sPrice += '@webres:lbl.vat-excl-info@ (' + rsProduct('TaxPercent') + '%)';
};
sPrice += '</div>';
};
if(dblShippingSurcharge > 0 && sSurchargeInfo.length > 0){
sPrice += '<div class="t-small">' + ScriptLib.formatShipSurcharge(dblShippingSurcharge) + '</div>';
};
if(sShippingCostsLink.length > 0){
sPrice += '<div class="t-small">' + sShippingCostsLink + '</div>';
};
if(bShowPriceBase && toBool(rsProduct("DisplayBasePrice"))){
sPrice += '<br><div class="t-small" style="font-size:8pt" id="product_base_price">(' + ScriptLib.formatBasePrice(rsProduct) + ')</div>';
};
sPrice += '</div>';
};
} else {
sPrice += ' ';
};
if(rsProduct("PricingConfiguration") > 0){
if(toBool(rsProduct("ShowContactInfo"))){
sPrice += '<div>@webres:txt.contact-info@</div>';
};
};
sPrice += '</div>';
return(sPrice);
};
PHP-Code:
function addItemPrice(){
if(sItemMainTemplate=="tpl-image-right"){
sPLBPrice += '<td style="text-align:' + sBtnInlineHAlign + '; margin-top:5px">';
} else if(sItemMainTemplate=="tpl-image-left") {
sPLBPrice += '<td style="text-align:' + sBtnInlineHAlign + '; margin-top:5px">';
} else {
sPLBPrice += '<td' + sItemColspan + ' style="text-align:' + sBtnInlineHAlign + '; margin-top:5px">';
};
if(pi("PricingConfiguration")==3){
sPLBPrice += '<div style="font-weight:bold;margin-bottom:5px">@webres:lbl.price-on-demand@</div>';
} else if(pi("PricingConfiguration") != 1){
sPLBPrice += '<script type="text/javascript">';
sPLBPrice += 'document.write(\'';
/*if(toInt(pi('baseCategoryDiscount'))>0 || toBool(pi('hasDiscounts'),false)){*/
if(toInt(pi('baseCategoryDiscount'))>0||(bHasDefaultDiscount && lDefaultDiscountType!=2)){
if(!toBool(pi('HideListPrice'))){
if(bShowPricePrefix && toStr(pi('PricePrefix')).length > 0){
sPLBPrice += '<span class="t-small">' + pi("PricePrefix") + ' <\\/span>';
};
sPLBPrice += '<span class="t-small t-em" style="text-decoration:line-through">\' + cprimary.format(SMProductList[' + pi("pkid") + '].getOriginalPrice(), SM_CGROUP + SM_CSYMBOL) + \'<\\/span><br>';
};
if(bShowPricePrefix && toStr(pi('DiscountPrefix')).length > 0){
sPLBPrice += '<span class="t-small">' + pi("DiscountPrefix") + ' <\\/span> ';
};
}
else{
if(bShowPricePrefix && toStr(pi('PricePrefix')).length > 0){
sPLBPrice += '<span class="t-small">' + pi("PricePrefix") + '<\\/span> ';
};
};
sPLBPrice += '<span class="t-large t-em t-price-list" style="font-size:12pt">\' + cprimary.format(SMProductList[' + pi("pkid") + '].getPrice(), SM_CGROUP + SM_CSYMBOL) + \'<\\/span>';
if(bShowSecCur){
sPLBPrice += '<br><span class="t-medium t-em t-price-list">\' + csecondary.format(SMProductList[' + pi("pkid") + '].getPrice(), SM_CGROUP + SM_CSYMBOL) + \'<\\/span>';
};
if(toInt(pi('baseCategoryDiscount'))>0||(bHasDefaultDiscount && lDefaultDiscountType!=2)){
if(!toBool(pi('HideListPrice')) && bShowDifference){
sPLBPrice += '<br><span class="t-small">@webres:lbl.product-price-difference@ </span><span class="t-small t-em">\' + cprimary.format(SMProductList[' + pi("pkid") + '].getOriginalPrice() - SMProductList[' + pi("pkid") + '].getPrice(), SM_CGROUP + SM_CSYMBOL) + \'</span>';
}
};
sPLBPrice += '\');';
sPLBPrice += '</script>';
var bShowTax = !(toBool(pi("NoTax"), false));
var dblShippingSurcharge = toFloat(pi("ShippingSurcharge"), 0);
if(bShowTax || sShippingCostsLink.length > 0 || dblShippingSurcharge > 0 || (bShowPriceSuffix && toStr(pi('PriceSuffix')).length > 0) || (bShowPriceBase && toBool(pi("DisplayBasePrice")))){
sPLBPrice += '<div class="t-small" style="display:block;margin-bottom:6px">';
if(bShowPriceSuffix && toStr(pi('PriceSuffix')).length > 0){
sPLBPrice += '<div class="t-em">' + pi("PriceSuffix") + '</div>';
};
if(bShowTax&&bShowVATInfos){
sPLBPrice += '<div class="t-small">';
if(bPriceDisplayGross){
sPLBPrice += '@webres:lbl.vat-incl-info@ (' + pi('TaxPercent') + '%)';
} else {
sPLBPrice += '@webres:lbl.vat-excl-info@ (' + pi('TaxPercent') + '%)';
};
sPLBPrice += '</div>';
};
if((dblShippingSurcharge > 0) && sSurchargeInfo.length > 0){
sPLBPrice += '<div class="t-small">' + ScriptLib.formatShipSurcharge(dblShippingSurcharge) + '</div>';
};
if(sShippingCostsLink.length > 0){
sPLBPrice += '<div class="t-small">' + sShippingCostsLink + '</div>';
};
if(bShowPriceBase && toBool(pi("DisplayBasePrice")) && !(pi("MUAmount")==1&&pi("MUBase")==1)){
/*sPLBPrice += '<div class="t-small">(' + ScriptLib.formatBasePrice(pi.dataAdapter) + ')</div>';*/
sPLBPrice += '<br><div class="t-small">(<script type="text/javascript">document.write(formatProductBasePrice(SMProductList[' + pi("pkid") + ']))</script>)</div>';
};
sPLBPrice += '</div>';
};
} else {
sPLBPrice += ' ';
};
sPLBPrice += '</td>';
};
</sm:script><sm:script>
function addButton(){
if(sItemMainTemplate=="tpl-image-right"){
sPLBButton += '<td style="text-align:' + sBtnInlineHAlign + '; margin-top:5px;">';
} else if(sItemMainTemplate=="tpl-image-left"){
sPLBButton += '<td style="text-align:' + sBtnInlineHAlign + '; margin-top:5px;">';
} else {
sPLBButton += '<td' + sItemColspan + ' style="text-align:' + sBtnInlineHAlign + '; margin-top:5px;">';
};
var bShowAddBag = (bShowAddToBag && toInt(pi("PricingConfiguration")) == 0);
sPLBButton += ScriptLib.buildAddBasketPanel(pi, "", false, bShowQtyInput, bShowAddBag, (bShowMore && sDPLink.length > 0), bShowQtyUnit, !bTextualButtons, true);
sPLBButton += '</td>';
};