Rabattrin

Længere beskrivelser af hvordan man nemmest kommer gennem "junglen" :o).
Dette forum er ikke beregnet til spørgsmål.
Tanken er at den kan blive en manual - på sigt - mens Tips Og Tricks er til kortere fif.

Redaktør: Redaktionen

Rabattrin

Indlægaf anniw » 2007-01-23 15:04

Jeg er ved at installere contrib. price break, og det gik helt godt indtil jeg nåede til product_info.php - her har jeg brug for hjælp:

Der står i contrib: Find:
if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
$products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
$products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}


og erstat med:

$pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id);
$products_price=$pf->getPriceString();

Min OsCommerce er fra BgSys og ser sådan ud på det sted:

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
if ($discount > 0) $new_price = $new_price - ($new_price/100)*$discount;
$products_price = /*$price_show . */'<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
$price = $product_info['products_price'];
if ($discount > 0) {
$price = $price - ($price/100)*$discount;
$price_show = TEXT_NORMAL_PRICE . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '<br>' . TEXT_DISCOUNT_PRICE;
}
$products_price = $price_show . $currencies->display_price($price, tep_get_tax_rate($product_info['products_tax_class_id']));
}

Jeg behøver hjælp til at finde ud af, hvordan jeg ændrer det

På forhånd tak
Anni
anniw
Godt igang
Godt igang
 
Indlæg: 44
Tilmeldt: 2006-03-8 22:21
Geografisk sted: Køge

Tilbage til How-To

Hvem er online

Brugere der læser dette forum: Ingen tilmeldte og 3 gæster

cron