Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need to change home link 2.3.1


hansonspakistan

Recommended Posts

Can anyone help ... Ive tried to find ways to change home link ... using 2.3.1 version

 

at the moment oscommerce is installed in a folder like .. www.abc.com/store ..

 

but now I would like to change home link from abc.com/store to www.abc.com

 

tried to change in includes/application_top.php

 

// include the breadcrumb class and start the breadcrumb trail

require(DIR_WS_CLASSES . 'breadcrumb.php');

$breadcrumb = new breadcrumb;

 

$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

To :

 

 

// include the breadcrumb class and start the breadcrumb trail

require(DIR_WS_CLASSES . 'breadcrumb.php');

$breadcrumb = new breadcrumb;

 

$breadcrumb->add(HEADER_TITLE_TOP, http://www.abc.com);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

 

but not worked ..

 

Maybe Im doing something wrong here ..

 

thanks

HANSONS PAKISTAN

Link to comment
Share on other sites

 

at the moment oscommerce is installed in a folder like .. www.abc.com/store ..

 

but now I would like to change home link from abc.com/store to www.abc.com

 

 

You need to quote the string:

 

 $breadcrumb->add(HEADER_TITLE_TOP, 'http://www.abc.com');

 

Regards

Jim

 

Ok Jim I'm a bit confused... :blush:

 

Wouldn't that only work if the store files where relocated to the root folder?

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

That works if there's an index file in the root directory. So http://www.abc.com/index.php or http://www.abc.com/index.html or whatever other default filetype the server is set to recognize. Many sites are set up this way. I personally think it's a bad idea, since you can lose session that way, but some people like it.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

You need to quote the string:

 

 $breadcrumb->add(HEADER_TITLE_TOP, 'http://www.abc.com');

 

Regards

Jim

 

Hi Jim,

 

Did this : $breadcrumb->add(HEADER_TITLE_TOP, 'http://www.abc.com'); but not successful .. by the way .. Im editing oscommerce template 2.3.1 i bought from templatemonster.com ..

 

I think theres some other way,

 

been trying since days to solve this but stuck without success.

HANSONS PAKISTAN

Link to comment
Share on other sites

Hi,

 

yes several ways surprised the above did not work but templates from the MONSTER :unsure: who knows you could try in /includes/languages/english.php

 

define('HEADER_TITLE_TOP', '<a

href="http://www.abc.com">Top

</a>');

 

Regards

Joli

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Hi Jim,

 

Did this : $breadcrumb->add(HEADER_TITLE_TOP,'http://www.abc.com'); but not successful .. by the way .. Im editing oscommerce template 2.3.1 i bought from templatemonster.com ..

 

I think theres some other way,

 

been trying since days to solve this but stuck without success.

 

ok this solved other problem .. which was within categories .. now can go to .. abc.com instead of abc.com/store/index.php as earlier.. top changed to home

 

But still theres another link HOME on left topside above logo .. need to change default store link i.e. abc.com/store/index.php to abc.com/index.html .. secondly also like to change logo link too

HANSONS PAKISTAN

Link to comment
Share on other sites

ok this solved other problem .. which was within categories .. now can go to .. abc.com instead of abc.com/store/index.php as earlier.. top changed to home

 

But still theres another link HOME on left topside above logo .. need to change default store link i.e. abc.com/store/index.php to abc.com/index.html .. secondly also like to change logo link too

 

Ok got all resolved .. thought of a long shot and it worked .. by chance i have google desktop installed .. so did desktop search for "tep_href_link(FILENAME_DEFAULT)" since its associated with Home/Top links.. so upon finding the files via desktop search .. replaced tep_href_link(FILENAME_DEFAULT) within the files with the desired weblink ..

 

Links changed : HOME, TOP, LOGO

HANSONS PAKISTAN

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...