Prezzi iva esclusa o inclusa con pacchetto WAI???
Inviato: 28/05/2007, 18:44
Un saluto a tutti.
Io sto personalizzando il bellissimo pacchetto WAI, ma ho appena installato una contribution per scegliere se visualizzare i prezzi iva esclusa o iva inclusa (a discrezione dell'utente).
Il tutto funziona, ma vorrei anche che mi venisse visualizzato difianco al prezzo se l'iva c'è o no.
Dimenticavo:m i riferisco alla contribution "Switch between Displaying Prices Inc./Ex. VAT"
Dovrei fare questa modifica:
-----------------------------------------------------------------------------
[14]. Open the file (catalog/includes/classes/) currencies.php
Change the code FROM:
function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
TO:
// ==== START CONTRIBUTION "Switch between displaying prices Inc./Ex. VAT"
function display_price($products_price, $products_tax, $quantity = 1) {
/*return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); */
global $vat_disp;
if ($vat_disp == '1') {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} else {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity) . '<br>' . SWITCHING_VAT_EX; }
}
// ==== FINISH CONTRIBUTION "Switch between displaying prices Inc./Ex. VAT"
--------------------------------------------------------------------------------
L'unico problema è che con il pacchetto WAI questa parte da modificare è gia stata messa come commento e modificata.
Come posso fare per fare questa modifica?
Grazie in anticipo x l'aiuto e scusate se sono stato prolisso.....
Io sto personalizzando il bellissimo pacchetto WAI, ma ho appena installato una contribution per scegliere se visualizzare i prezzi iva esclusa o iva inclusa (a discrezione dell'utente).
Il tutto funziona, ma vorrei anche che mi venisse visualizzato difianco al prezzo se l'iva c'è o no.
Dimenticavo:m i riferisco alla contribution "Switch between Displaying Prices Inc./Ex. VAT"
Dovrei fare questa modifica:
-----------------------------------------------------------------------------
[14]. Open the file (catalog/includes/classes/) currencies.php
Change the code FROM:
function display_price($products_price, $products_tax, $quantity = 1) {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}
TO:
// ==== START CONTRIBUTION "Switch between displaying prices Inc./Ex. VAT"
function display_price($products_price, $products_tax, $quantity = 1) {
/*return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); */
global $vat_disp;
if ($vat_disp == '1') {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
} else {
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity) . '<br>' . SWITCHING_VAT_EX; }
}
// ==== FINISH CONTRIBUTION "Switch between displaying prices Inc./Ex. VAT"
--------------------------------------------------------------------------------
L'unico problema è che con il pacchetto WAI questa parte da modificare è gia stata messa come commento e modificata.
Come posso fare per fare questa modifica?
Grazie in anticipo x l'aiuto e scusate se sono stato prolisso.....