romalong Posted September 14, 2005 Share Posted September 14, 2005 hi! who knows where are $define_list constants values come from? Array ( ? ?[PRODUCT_LIST_MODEL] => 0 ? ?[PRODUCT_LIST_NAME] => 2 ? ?[PRODUCT_LIST_MANUFACTURER] => 0 ? ?[PRODUCT_LIST_QUANTITY] => 0 ? ?[PRODUCT_LIST_DESCRIPTION] => PRODUCT_LIST_DESCRIPTION ? ?[PRODUCT_LIST_IMAGE] => 1 ? ?[PRODUCT_LIST_BUY_NOW] => 4 ) i need to add description to my product listing... Link to comment Share on other sites More sharing options...
Beer Monster Posted September 14, 2005 Share Posted September 14, 2005 It's defined in the database configuration table, the following sql should add what you need INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('', 'PRODUCT_LIST_DESCRIPTION', '7', 'Do you want to display the Product Description?', '8', '', now()); Light, in the absence of eyes, illuminates nothing. Link to comment Share on other sites More sharing options...
romalong Posted September 14, 2005 Author Share Posted September 14, 2005 It's defined in the database configuration table, the following sql should add what you need INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('', 'PRODUCT_LIST_DESCRIPTION', '7', 'Do you want to display the Product Description?', '8', '', now()); <{POST_SNAPBACK}> thanx! i've found it too: lng@dev ~ $ grep -r PRODUCT_LIST_NAME ./catalog/./catalog/includes/modules/product_listing.php: case 'PRODUCT_LIST_NAME': ./catalog/includes/modules/product_listing.php: case 'PRODUCT_LIST_NAME': ./catalog/install/oscommerce.sql:INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product Name', 'PRODUCT_LIST_NAME', '2', 'Do you want to display the Product Name?', '8', '4', now()); ./catalog/advanced_search_result.php: 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, ./catalog/advanced_search_result.php: if ($column_list[$i] == 'PRODUCT_LIST_NAME') { ./catalog/advanced_search_result.php: case 'PRODUCT_LIST_NAME': ./catalog/index.php: 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, ./catalog/index.php: case 'PRODUCT_LIST_NAME': ./catalog/index.php: if ($column_list[$i] == 'PRODUCT_LIST_NAME') { ./catalog/index.php: case 'PRODUCT_LIST_NAME': Link to comment Share on other sites More sharing options...
romalong Posted September 14, 2005 Author Share Posted September 14, 2005 didn't expect it's in db Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.