Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a New Catagory in the BROWSE Section problems


Guest

Recommended Posts

Posted

thank you very much for look at this ;

 

simply put, website www.ilike-centre.com - using the admim/configuration section i added a new catagory. I have followed all the instruction about making a new page etc (the new pages work).

 

My issue is when i click on to now new Catagory it DOESNT find the link.

i have added files in the /includes/languages/english

named the file it ebay.php and amazon.php and edit it so it has these contents:

 

<?php

 

define('HEADING_TITLE', 'EBAY');

define('NAVBAR_TITLE', 'EBAY'); ((to suit))

 

then In /includes/filenames.php add this: added the define('FILENAME_EBAY', 'ebay.php'); -

 

i have also followed this thread http://www.oscommerce.com/forums/index.php?showtopic=329346 - but it still hasnt helped me.

 

if i go to

 

http://www.ilike-centre.com/ebay.php

http://www.ilike-centre.com/amazon.php

 

you can see they work fine. its a matter of getting the in catagory to look at teh right location or the instruction to look at the right location. but i dont know how to go about solving this

 

i am not sure if i have missed a bit of the puzzle out - please help me.

Posted

  tep_show_category($first_element); 

/* ADDED THE NEXT LINE - ALTER TO SUIT YOUR NEEDS */
 $categories_string .= '<a href="' . tep_href_link(FILENAME_EBAY) . '">EBAY</a><br><a href="' . tep_href_link(FILENAME_AMAZON) . '">Amazon</a>';

 $info_box_contents = array();

 $info_box_contents[] = array('text' => $categories_string);

 new infoBox($info_box_contents);

The new code in catgories.php would look like this in your case.

 

I tried this - No runs, No drips, No errors.

 

The other thread you linked to is how to link a page NOT within the confines of your store in the categories box.

 

This is how to link to a page WITHIN YOUR STORE in the categories box.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

My way won't link to the existing categories you have for amazon and ebay, you need to delete those.

 

You're confusing "categories" with "new pages".

 

The new links to them will always be at the bottom of the categories.

 

If the new links won't show in the categories box sometimes you have to set 'Use Cache' to false to see any change.

 

There is a link in the admin somewhere to reset the cache, but I don't use it so I really don't know where it is.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

the created "catagory" in the "box" when clicked the "AMAZON" icon/text displays this URL http://www.ilike-centre.com/index.php?cPath=66 - this was created via the adminstration side of the website.

 

the purpose built page http://www.ilike-centre.com/amazon.php

 

i want the "box" "catagory" "AMAZON" to goto / look direct at http://www.ilike-centre.com/amazon.php not http://www.ilike-centre.com/index.php?cPath=66 - like it does currently. (if you see on these links you will see what i mean)

 

 

I have gone over and over these instructions, i cant see why it wont work - all i want is one to foward to the other.

 

Note:: /public_html/includes/languages/ >>> "english.php" doesnt look the same as the one described

PLUS in /public_html/includes/boxes/ >>> i have "catagory.php" and "catagory1.php" - i am not sure this is correct to have this situation (note this is not my work, i brought this website...) - can display these file/ code is this would help.

Posted
i want the "box" "catagory" "AMAZON" to goto / look direct at http://www.ilike-centre.com/amazon.php not http://www.ilike-centre.com/index.php?cPath=66 - like it does currently. (if you see on these links you will see what i mean)

You have to do it like I posted.

 

Don't confuse a "category added in the admin" with "adding a new page".

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
My way won't link to the existing categories you have for amazon and ebay, you need to delete those.

 

You're confusing "categories" with "new pages".

 

The new links to them will always be at the bottom of the categories.

 

If the new links won't show in the categories box sometimes you have to set 'Use Cache' to false to see any change.

 

There is a link in the admin somewhere to reset the cache, but I don't use it so I really don't know where it is.

 

 

Your right Jim i am... lets me think this through - basically the adminsation that i am adding to is to essitally add something to the database etc... and show up on the website.

 

adding a page is adding a page, but will baiscally require a new "Box" to link to the new page. ok let me have a gander at all this again.

Archived

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

×
×
  • Create New...