Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! trying to make contrib for BTS and Catagory Desc.


paulm2003

Recommended Posts

I am trying to make the Catagory Descriptions() contribution work on BTSv1a (), and make a new contribution out of it.

 

Now I am stuck at this point :( :

I have to replace

echo HEADING_TITLE;

with something like this:

if ( (ALLOW_CATEGORY_DESCRIPTIONS == 'true') && (tep_not_null($category['categories_heading_title'])) ) {

                echo $category['categories_heading_title'];

              } else {

                echo HEADING_TITLE;

              }

But I don't know where I can and should do this, it probably isn't a good idea to do this in the template files, and I can't do it in index.php because the BTS removed the lines from index.php . What file can I edit to insert the new HEADING_TITLE by the Category title and description.

 

Or should I use a different approach? :?

 

(I know some PHP but I am not an expert yet on PHP)

Link to comment
Share on other sites

Somewhere between the database and the output HEADING_TITLE has to be replaced by the new catagory descriptions HEADING_TITLE, I think I know how to do it. But I can't figure out where (in what file) I should do this.

In addition the catagory descriptions would have to be "defined" at the same place I suppose.

 

Anyone any ideas please?

:?: :?: :?:

Or is there a document I could read to get a better idea how the osC scripts work?

Link to comment
Share on other sites

I feel a bit lonely, talking to myself :(

 

BUT IT WORKS!!!!!!!!! :) :D :lol:

 

I put the code in the template files after all (only a few lines).

Now I think of it, there is one advantage. Installing the "adapted" Category Descriptions() will even be easyer than installing the "original" Catagory Descriptions now. No need to edit the index.php file anymore.

 

If anyone is interested i will upload contribution:

Category Descriptions(191) for the Basic Template Structure(1263) on MS2

(add to 191 I suppose)

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...