Quote Originally Posted by OldNGrey View Post
I don't have a standard version installed. I cut my installation back to the minimum fields required to suit my needs.
These changes are in my file marked as for PHP8 and zc157d.

In includes/templates/MY_bootstrap/product_info/extra_main_template_vars.php

line1 of code:
Code:
$npf_attributes =' ';
lines 38 to 50 approx gave undefined array keys so need to check field exists in database
line44:
Code:
if(array_key_exists("products_dim_type", $products->fields)) {$products_dim_type = strtolower($products->fields['products_dim_type'] ); }     else {$products_dim_type = ''; }
line47:
Code:
if(array_key_exists("products_weight_type", $products->fields)) {$products_weight_type = strtolower($products->fields['products_weight_type'] ); } 
    else {$products_weight_type = ''; }
I also added add p.products_length,p.products_height, p.products_width to the query
line29:
Code:
$products_query = "SELECT p.products_weight, p.products_length, p.products_height, p.products_width" . $npf_attributes . "                      FROM " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                     WHERE p.products_id = " . (int)$_GET['products_id'] . " 
                     AND p.products_id = pd.products_id 
                     AND pd.language_id = '" . (int)$_SESSION['languages_id'] . "' LIMIT 1";
Thank you, I attempted to add the code you suggested and the query update kept throwing off an error. I realized it was because I wasn't using the dimension field. As far as the php errors, do I just need to add something like what you did for weight type for every single field?

Code:
if(array_key_exists("products_sku", $products->fields)) {$products_sku = strtolower($products->fields['products_sku'] ); } 
    else {$products_sku = ''; }
However, I'm still having difficulty getting the language file to pull in to each respective product field I have added. Any idea how to pull the labels from the lang.numinix_product_fields.php file located in includes/languages/english/extra_definitions/my_bootstrap?