Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TOP CATALOG


Guest

Recommended Posts

Posted

Top and Catalog in the upper left corner... I didnt see where that is at in the files. Is there any way to add more linked words, catagories..ect to this nav bag?

Posted

This is known as 'breadcrumb' through the files - it shows navigation links as you browse the catalog :shock:

Posted

where can I edit where Top goes? as I have my shop in a frame and would like the Top (link back to my homepage) to open the frame page in the frame

Posted

The "breadcrumb" creates a dynamic trail on the fly.

The process is governed by this

includes/classes/breadcrumb.php Don't mess with this.

 

This is the relavant code on any page that uses the breadcrumb.

in this instance:

catalog/account.php

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

 

The NAVBAR_TITLE can be found and edited in

inclused/languages/[language]/account.php

 

The file names, FILENAME_ACCOUNT, are defined in

/includes/application_top.php or files.php (depending on your version)

 

As far as "Top" goes this is the "root" page. This will link with your root document as defined in configure.php

This is defined in includes/[language].php

Posted

Ok i see what your saying but that is pulling from files already installed....

 

I was looking to add say <Help Desk> <Tips and Hints> <Forum> on that same line and have it open in the main area or another window....

 

Sorry for the NOOB questions..... I understand basic HTML and some code... but PHP escapes me

Posted

Not a big problem, just a little tedious.

The easiest is to use an existing file as a template.

I usually use shipping.php .

 

1.) change this in shipping.php

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));

to

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_HELP);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_HELP));

 

save the file as help_desk.php

 

2.)Define the new file in application_top.php

 

define('FILENAME_HELP', help_desk.php');

 

3.)In includes/languages/english/shipping.php

change

 

define('NAVBAR_TITLE', 'Shipping & Returns');

define('HEADING_TITLE', Shipping & Returns');

 

define('TEXT_INFORMATION', 'Put here your Shipping & Returns information.');

 

to

 

define('NAVBAR_TITLE', 'Help Desk');

define('HEADING_TITLE', 'Help Desk');

 

define('TEXT_INFORMATION', 'Whatever HTML you want goes here, even addtional tables or images, just as long as it is formatted properly.');

 

And that's that. The first time or two you do it it seems like a long drawn out process. But there is not nuch to it, really. Take it slow one step at a time.

 

Just to be on the safe side and make you feel more secure, clone or copy your original shipping.php save it as shipping_temp.php and use this as your source to make the new file.

Posted

details, details...

don't forget to save the altered /includes/languages/english/shipping.php

as help_desk.php

Posted

If you happen to get errors doing this like I did here is a quick fix:

1.) change this in shipping.php

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING); 



$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));

to

require(DIR_WS_LANGUAGES . $language . '/' . 'help_desk.php') 



$breadcrumb->add(NAVBAR_TITLE, tep_href_link('help_desk.php'));

 

And by doing this you can skip Step 2 completely (The file that caused my errors when i defined the new FILENAME_)

 

*NOTE: I used help_desk.php just as a reference cause it was the file used in the instructions by willk*[/code]

Posted

did I miss a "define" some where?

If I did, I apologize.

Posted

im not sure what the problem is, prob something i did, cause with the code you supplied it seems it would work, pretty much common sense, but either me or a dumb define somewhere in a file you would prob never look in to find it

Archived

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

×
×
  • Create New...