FYI Tax Settings Configuration Page Bug

Discussion in 'Payments processing' started by jimjwright, Aug 6, 2008.

  1. jimjwright

    jimjwright New Member

    Joined:
    Sep 12, 2007
    Messages:
    162
    Hello,

    I was playing around with tax settings and ran across this bug. If you enable tax settings and then go to the "Tax Settings" configuration page you will see the following text at top of page

    It will always say "0 products" even if you enable an individual product to been taxed.

    The fix is to modify the following code in templates/admin/setup_tax.html
    Code:
    $disabled = $total = 0;
    foreach ($GLOBALS['db']->get_products_list() as $p){
    	if (!$p['add_tax']) $disabled++;
    	$total++;
    }
    $enabled = $total - $disabled;
    
    change the line

    Code:
    if (!$p['add_tax']) $disabled++;
    to the following

    Code:
    if (!$p['use_tax']) $disabled++;
    Jimmy

Share This Page