Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$cInfo in categories.php&action=edit_category


Werni

Recommended Posts

hey

 

had to add several fields into categories, categories_description. creating a new category with all fields work. but when editing the category the new inputfields don't show the saved data. i think it's because of $cInfo.

 

question: what is $cInfo or where is it defined? :blink: $cInfo used in categories.php&action=edit_category:

 

        $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
       $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br>' . DIR_WS_CATALOG_IMAGES . '<br><b>' . $cInfo->categories_image . '</b>');
       $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_IMAGE . '<br>' . tep_draw_file_field('categories_image'));
       $contents[] = array('text' => '<br>' . TEXT_EDIT_SORT_ORDER .. '<br>' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
       $contents[] = array('text' => '<br>' . tep_image(DIR_WS_CATALOG_DRAWINGS . $cInfo->categories_drawing, $cInfo->categories_name) . '<br>' . DIR_WS_CATALOG_DRAWINGS . '<br><b>' .. $cInfo->categories_drawing . '</b>');
       $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_DRAWING . '<br>' . tep_draw_file_field('categories_drawing'));
       $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_LISTING_DESCRIPTION . $category_listing_description_inputs_string);
       $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_LISTING_SORT_FIELD . '<br>' . tep_draw_input_field('categories_listing_sort_field', $cInfo->categories_listing_sort_field, 'size="2"'));
       $contents[] = array('text' => '<br>' . TEXT_CATEGORIES_LISTING_TITLE_A . $category_listing_title_a_inputs_string);

 

thanks a lot!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...