To fix the Attributes controller to display the Tax or No Tax on a Product, edit the file:
/your_secret_admin/attributes_controller.php
Change the code around line 1222 and add the code in RED:
Code:
<?php
$current_options_name = '';
// get products tax id
$product_check = $db->Execute("select products_tax_class_id from " . TABLE_PRODUCTS . " where products_id = '" . $products_filter . "'" . " limit 1");
// echo '$products_filter: ' . $products_filter . ' tax id: ' . $product_check->fields['products_tax_class_id'] . '<br>';
while (!$attributes_values->EOF) {
$current_attributes_products_id = $attributes_values->fields['products_id'];
Change the code around line 1594 and add the code in RED:
Code:
$attributes_price_final = $currencies->display_price($attributes_price_final, zen_get_tax_rate($product_check->fields['products_tax_class_id']), 1);
Change the code around line 1596 and add the code in RED:
Code:
$attributes_price_final_onetime = $currencies->display_price($attributes_price_final_onetime, zen_get_tax_rate($product_check->fields['products_tax_class_id']), 1);
Change the code around line 1629 and add the code in RED:
Code:
$new_attributes_price = '|' . $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_check->fields['products_tax_class_id']), 1);
Now check to see if the Product without tax displays in the Attributes Controller right and check it a Product with tax displays in the Attributes Controller right ...
Bookmarks