| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Bread Crumb URL needs to be changed | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Please edit the <xcart_dir>/include/categories.php script and replace:
PHP Code:
with PHP Code:
Then edit the following code in the <xcart_dir>/auth.php file: PHP Code:
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. |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#6
|
|||||||
|
|||||||
![]() What files did you modify to make the breadcrumb changes?
|
|||||||
#7
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#8
|
|||||||
|
|||||||
![]() 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. |
|||||||
|
|||
X-Cart forums © 2001-2020
|