Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories Description and header tags controller


Helper

Recommended Posts

Hi I have header tags controller installed and want to install your mod categories descriptions but i run into a problem with admin/categories.php

 

 

What I have to find

 

$sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]));

         if ($action == 'insert_category') {	

 

 

What is in my file with header tags Controller

 

$sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]),
          'categories_htc_title_tag' => (tep_not_null($categories_htc_title_array[$language_id]) ? tep_db_prepare_input($categories_htc_title_array[$language_id]) :  tep_db_prepare_input($categories_name_array[$language_id])),
          'categories_htc_desc_tag' => (tep_not_null($categories_htc_desc_array[$language_id]) ? tep_db_prepare_input($categories_htc_desc_array[$language_id]) :  tep_db_prepare_input($categories_name_array[$language_id])),
          'categories_htc_keywords_tag' => (tep_not_null($categories_htc_keywords_array[$language_id]) ? tep_db_prepare_input($categories_htc_keywords_array[$language_id]) :  tep_db_prepare_input($categories_name_array[$language_id])),
          'categories_htc_description' => tep_db_prepare_input($categories_htc_description_array[$language_id]));
     //HTC EOC
         if ($action == 'insert_category') {

 

What i have to replace that / integrate that with

 

$sql_data_array = array('categories_name' => tep_db_prepare_input($categories_name_array[$language_id]));
// - START - Category Descriptions
         $categories_heading_title_array = $HTTP_POST_VARS['categories_heading_title'];
         $categories_description_array = $HTTP_POST_VARS['categories_description'];
         $sql_data_array['categories_heading_title'] =  tep_db_prepare_input($categories_heading_title_array[$language_id]);
         $sql_data_array['categories_description'] =  tep_db_prepare_input($categories_description_array[$language_id]);
// --- END - Category Descriptions

         if ($action == 'insert_category') {	

 

 

many thanks for your help

 

Doug

Link to comment
Share on other sites

I'm just curious but why would you install the Categories Description contribution when that option is already built into Header Tags?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...