Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$define_list values on index.php


romalong

Recommended Posts

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

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

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());

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...