Zen Cart Logo
Forums / Bug Reports / v151 -v153 product type layout edit: configuration description not showing

v151 -v153 product type layout edit: configuration description not showing

Views: 1,102

Results 1 to 2 of 2
29 Aug 2014, 5:16 PM
#1
philou avatar

philou

Zen Follower

Join Date:
Jan 2006
Posts:
165
Plugin Contributions:
1

v151 -v153 product type layout edit: configuration description not showing

Reproduce bug in ZC v151 to v153:
(1) Navigate to [Admin backend] -> Menu -> Catalog -> Product Types -> Product General -> edit Layout
(2) Choose any setting, so that the settings info box on the right is ready for input

The configuration description text between the configuration title and the configuration value is not displayed.

Cause:
The SQL query does not include the field "configuration_description"
Line 193 in "/admin/product_types.php" of ZC v153:

  $configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key,
                                        use_function from " . TABLE_PRODUCT_TYPE_LAYOUT . "
                                        where product_type_id = '

Fix:
Include field "configuration_description" in query:

  
  $configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key, configuration_description,
                                        use_function from " . TABLE_PRODUCT_TYPE_LAYOUT . "
                                        where product_type_id = '" . (int)$_GET['ptID'] . "'
                                        order by sort_order");
29 Aug 2014, 9:05 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: v151 -v153 product type layout edit: configuration description not showing

philou:

Reproduce bug in ZC v151 to v153:
(1) Navigate to [Admin backend] -> Menu -> Catalog -> Product Types -> Product General -> edit Layout
(2) Choose any setting, so that the settings info box on the right is ready for input

The configuration description text between the configuration title and the configuration value is not displayed.

Cause:
The SQL query does not include the field "configuration_description"
Line 193 in "/admin/product_types.php" of ZC v153:

$configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key,
use_function from " . TABLE_PRODUCT_TYPE_LAYOUT . "
where product_type_id = '

> 
> 
> Fix:
> Include field  "configuration_description" in query:
> ```
  
  $configuration = $db->Execute("select configuration_id, configuration_title, configuration_value, configuration_key, configuration_description,
                                        use_function from " . TABLE_PRODUCT_TYPE_LAYOUT . "
                                        where product_type_id = '" . (int)$_GET['ptID'] . "'
                                        order by sort_order");

Are you trying to indicate that before doing the above, that if the instructions are followed that when that screen first appears (right area to edit) doesnt/didnt display the following:

Display Model Number on Product Info 0= off 1= on

A fresh install of 1.5.3 provides that type of information. An installed version of 1.5.1 that was looked at also had similar information. I haven't looked at the underlying file/query, but it seems like that is the information that is desired to be incorporated based on the above. Further if the fresh install provides the correct information, an upgrade ought to also contain the correct information and the omission of it would be a result of an incorrect upgrade. If the information content I provided is not that of the description like is suggested then it is a bug with the software and has nothing to do with an upgrade as I believe I understand the above situation.