Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Bread Crumb URL needs to be changed

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-14-2007, 02:03 AM
 
alexbaat alexbaat is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 3
 

Default 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 )
__________________
4.1.2
Reply With Quote
  #2  
Old 06-14-2007, 10:58 AM
  Ene's Avatar 
Ene Ene is offline
 

X-Cart team
  
Join Date: Aug 2004
Posts: 907
 

Default 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'.
__________________
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid: http://www.ecwid.com/ (since Sept 2009)

ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager - X-Cart hosting
ex-X-Cart Technical Support Engineer


Note: For the official guaranteed tech support services please turn to the Customers HelpDesk.
Reply With Quote
  #3  
Old 06-15-2007, 12:03 AM
 
alexbaat alexbaat is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 3
 

Default Re: Bread Crumb URL needs to be changed

Thank you very much!

Now everything works as intended

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
__________________
4.1.2
Reply With Quote
  #4  
Old 09-09-2007, 07:41 AM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default 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?
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #5  
Old 09-12-2007, 02:43 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default Re: Bread Crumb URL needs to be changed

Still looking for a solution...
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #6  
Old 09-12-2007, 06:28 PM
 
spence spence is offline
 

Advanced Member
  
Join Date: Sep 2007
Location: Seattle WA
Posts: 53
 

Default Re: Bread Crumb URL needs to be changed

What files did you modify to make the breadcrumb changes?
__________________
xcart v4.1.8 [Linux]
MacPro Quad 10gb Ram
http://www.ecarttemplates.com
Reply With Quote
  #7  
Old 09-12-2007, 08:11 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default 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....
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #8  
Old 09-12-2007, 09:03 PM
 
spence spence is offline
 

Advanced Member
  
Join Date: Sep 2007
Location: Seattle WA
Posts: 53
 

Default 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.
__________________
xcart v4.1.8 [Linux]
MacPro Quad 10gb Ram
http://www.ecarttemplates.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:10 AM.

   

 
X-Cart forums © 2001-2020