I am trying to add a new column to the quick update UI and I am having a tough time understanding a few aspects of the file. When I view the live site I have name, description, price, price inc, all the fields but when i run it locally I only see the two fields name and price. All the other fields are not visible. Upon further review of the quick_updates.php I noticed some if statements that wrapped most of the fields in the view. For example::
if(QUICKUPDATES_MODIFY_NEW_COLUMN_1 == 'true')
echo zen_quickupdates_table_head('p.' . QUICKUPDATES_MODIFY_NEW_COLUMN_1, TABLE_HEADING_NEW_COLUMN_1);
if(QUICKUPDATES_MODIFY_NAME == true)
echo zen_quickupdates_table_head('pd.products_name', TABLE_HEADING_PRODUCTS);
if(QUICKUPDATES_MODIFY_DESCRIPTION == 'true')
echo zen_quickupdates_table_head('pd.products_description', TABLE_HEADING_PRODUCTS_DESCRIPTION);
if(QUICKUPDATES_MODIFY_MANUFACTURER == 'true')
echo zen_quickupdates_table_head('m.manufacturers_name', TABLE_HEADING_MANUFACTURERS);
if(QUICKUPDATES_MODIFY_STATUS == 'true')
echo zen_quickupdates_table_head('p.products_status', TABLE_HEADING_STATUS);
if(QUICKUPDATES_MODIFY_SORT_ORDER == 'true')
echo zen_quickupdates_table_head('p.products_sort_order', TABLE_HEADING_SORT_ORDER);
if(QUICKUPDATES_MODIFY_QUANTITY == 'true')
echo zen_quickupdates_table_head('p.products_quantity', TABLE_HEADING_QUANTITY);
The problems is that most of those constants are not defined anywhere in the application. So of course they are always going to execute to false. My question is whether anyone has any knowledge of why these if statements are there and do they serve some purpose.


Reply With Quote
