PDA

View Full Version : osC_GiftWrap_v1.0



michael_s
09-11-2007, 10:00 AM
This corrects the display of the gift wrap price, it was displayed with tax even though show prices with tax was false.


In admin/checkout_shipping:

Find:
if ( ($quotes1_size > 1) || ($n2 > 1) ) {
if (DISPLAY_PRICE_WITH_TAX == true) {
$gift_tax_rate_tmp = tep_get_tax_rate(MODULE_ORDER_TOTAL_GIFTWRAP_TAX_C LASS);
$gift_tax_amt_tmp = $quotes1[$i]['methods'][$j]['cost'];
$gift_tax_amt_tmp += tep_calculate_tax($quotes1[$i]['methods'][$j]['cost'], $gift_tax_rate_tmp);

Change to:
if ( ($quotes1_size > 1) || ($n2 > 1) ) {
if (DISPLAY_PRICE_WITH_TAX == 'true') {
$gift_tax_rate_tmp = tep_get_tax_rate(MODULE_ORDER_TOTAL_GIFTWRAP_TAX_C LASS);
$gift_tax_amt_tmp = $quotes1[$i]['methods'][$j]['cost'];
$gift_tax_amt_tmp += tep_calculate_tax($quotes1[$i]['methods'][$j]['cost'], $gift_tax_rate_tmp);


*** just added single quotes around true.

More... (http://www.oscommerce.com/community/contributions,1155)