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