X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Bread Crumb URL needs to be changed (https://forum.x-cart.com/showthread.php?t=31828)

alexbaat 06-14-2007 02:03 AM

Bread Crumb URL needs to be changed
 
Hi there.

I've been working on a template and everything went fine, except for one thing:

In my design I've added an additional frontpage. Kinda like a splashpage.
No problems here. When clicked on a image which resembles one of the categories the user gets redirected to the rest of the shop.

This is where the problem comes. The bread crumbs are working, but redirect to the wrong homepage.

The newly added splashpage is 'build up' by the original home.php.
Links to categories or standard pages on this splashpage all redirect to home2.php, which is the same as home.php, except that this home2 file 'builds up' the shop as it supposed to do.

The URLs used in de bread crumbs point to home.php though! So everytime I click a link in the crumbs I get back to the splashpage, instead of the shop with the right (sub)categorie shown.

I already know that the URL is dynamicaly created out of the array $location, but I can't find the spot where the data for this array is inserted in the variable.

So basicaly: where and/or how (if even possible) do I change the URL in the breadcrumbs?

Thanks in advance!

Greet,
Perry

PS: to take a look at the template: http://officecomputer.oswshop.nl/shop/
(It's in Dutch, so you know, but that shouldn't be a problem to check my problem out ;) )

Ene 06-14-2007 10:58 AM

Re: Bread Crumb URL needs to be changed
 
Please edit the <xcart_dir>/include/categories.php script and replace:

PHP Code:

$category["category_location"][] = array($_cat_name["category"], "home.php?cat=$_catid"); 


with

PHP Code:

$category["category_location"][] = array($_cat_name["category"], "home2.php?cat=$_catid"); 


Then edit the following code in the <xcart_dir>/auth.php file:

PHP Code:

$location[] = array((!empty($lbl_site_name) ? $lbl_site_name $config["Company"]["company_name"]), "home.php"); 


P.S. I recommend you building up your splash page using the home2.php script rather than the home.php one, because many X-Cart files refer to 'home.php'.

alexbaat 06-15-2007 12:03 AM

Re: Bread Crumb URL needs to be changed
 
Thank you very much!

Now everything works as intended :D

I also thank you for the advice to switch my home and home2 files, but it were only the bread crumbs that gave me my headache ;)
I'll keep it in mind though, for my next design project.

Again, thank you very much!

Greet,
Perry

Vacman 09-09-2007 07:41 AM

Re: Bread Crumb URL needs to be changed
 
Ok - strange one here:

If you go here:
http://www.vacsew.com/xcart/vacuum-cleaners/miele-cords-cord-winders.html/

Check out the bread crumbs. If you click on the All Makes Vacuums link in the bread crumbs, it will take you where you need to go to get to the home.php page.

If you go here:
http://www.vacsew.com/vacuum-cleaners/miele-cords-cord-winders.html/

Check out the bread crumbs..If you click on the All Makes Vacuums link in the bread crumbs, it will take you to our home page, not the root of the store, which should be:
http://www.vacsew.com/home.php

Where can go to change this?

Vacman 09-12-2007 02:43 PM

Re: Bread Crumb URL needs to be changed
 
Still looking for a solution...

spence 09-12-2007 06:28 PM

Re: Bread Crumb URL needs to be changed
 
What files did you modify to make the breadcrumb changes?

Vacman 09-12-2007 08:11 PM

Re: Bread Crumb URL needs to be changed
 
Well - that is kind of the point. As far as I know, no changes were made to any files that would have anything to do with the home.php URL breadcrumb link to have been changed. I have looked at the original code listed in similar threads and it looks the same to me....

spence 09-12-2007 09:03 PM

Re: Bread Crumb URL needs to be changed
 
The changes that I made to modify mine was to add some css to cover the breadcrumbs.

Without the new Classes some of the other CSS messed with the breadcrumbs.


All times are GMT -8. The time now is 09:07 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.