Problem with the Breadcrumb ?
-
cerberus
- Member
- Posts: 86
- Joined: Sun Sep 06, 2026 10:54 pm
- Phoenix Version: v1.1.0.7
- Has thanked: 20 times
- Been thanked: 6 times
Problem with the Breadcrumb ?
Hi all.
I am running version : 1.1.0.7
I have a issue I hope you can help me with. I have installed phoenix cart into a folder so my web address is : MY URL/shop (shop is the name of the folder it is installed in).
On the breadcrumb the "Catalog" link goes to the start page (URL/shop), but the "Home" button with a picture of a house takes me to : //URL, it does not go to the "Shop" folder where my cart is installed.
As I dont have any site in //URL just get a message from the webspace provider saying "Your account is all set up, it's time to build your website!"
How can I edit/change the breadcrumb so it works correctly ?
I have checked the phoenix demo site and it does the same, the demo site looks like it is installed into a folder called "demo", but again on the demo site the home (house) link in the breadcrumb does not go to the shops start page, but the catalog link does.
Here is the link to the demo site : https://phoenixcart.org/demo/
Thank you,
Steve
I am running version : 1.1.0.7
I have a issue I hope you can help me with. I have installed phoenix cart into a folder so my web address is : MY URL/shop (shop is the name of the folder it is installed in).
On the breadcrumb the "Catalog" link goes to the start page (URL/shop), but the "Home" button with a picture of a house takes me to : //URL, it does not go to the "Shop" folder where my cart is installed.
As I dont have any site in //URL just get a message from the webspace provider saying "Your account is all set up, it's time to build your website!"
How can I edit/change the breadcrumb so it works correctly ?
I have checked the phoenix demo site and it does the same, the demo site looks like it is installed into a folder called "demo", but again on the demo site the home (house) link in the breadcrumb does not go to the shops start page, but the catalog link does.
Here is the link to the demo site : https://phoenixcart.org/demo/
Thank you,
Steve
You do not have the required permissions to view the files attached to this post.
Tags:
- burt
- Core Team
- Posts: 4736
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 279 times
- Been thanked: 467 times
Re: Problem with the Breadcrumb ?
It's not a problem, it's how it is supposed to be.
You'll end up putting something in your site root? <-- that's important as your main domain name will be found by real people, search engines, AI etc. You don't want them to see your hosts holding page, right?
If you have no plan to put something in the site root, why not have the Shop there instead of in /shop/ ?
You'll end up putting something in your site root? <-- that's important as your main domain name will be found by real people, search engines, AI etc. You don't want them to see your hosts holding page, right?
If you have no plan to put something in the site root, why not have the Shop there instead of in /shop/ ?
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
cerberus
- Member
- Posts: 86
- Joined: Sun Sep 06, 2026 10:54 pm
- Phoenix Version: v1.1.0.7
- Has thanked: 20 times
- Been thanked: 6 times
Re: Problem with the Breadcrumb ?
Hello burt, thank you for your reply.
I will have a different installation of something else in the root when I have finished setting everything up, so this site phoenix cart has to be in a folder.
Steve
UPDATE : what I have just done is put in a .htaccess redirect (I am new to all this so I have to look things up or ask questions), here is what I have done (pasted this into the .htacess file) :
<IfModule mod_rewrite.c>
RewriteEngine On
Redirect 301 /index2.html https://SHOP URL HERE/shop/index.php
</IfModule>
(index2.html is the startup file for the web service provider)
I dont know if the is the best way of doing things, but its all I know at the moment.
I will have a different installation of something else in the root when I have finished setting everything up, so this site phoenix cart has to be in a folder.
Steve
UPDATE : what I have just done is put in a .htaccess redirect (I am new to all this so I have to look things up or ask questions), here is what I have done (pasted this into the .htacess file) :
<IfModule mod_rewrite.c>
RewriteEngine On
Redirect 301 /index2.html https://SHOP URL HERE/shop/index.php
</IfModule>
(index2.html is the startup file for the web service provider)
I dont know if the is the best way of doing things, but its all I know at the moment.
-
cerberus
- Member
- Posts: 86
- Joined: Sun Sep 06, 2026 10:54 pm
- Phoenix Version: v1.1.0.7
- Has thanked: 20 times
- Been thanked: 6 times
Re: Problem with the Breadcrumb ?
Hello PiLLaO,
How do I do that ?
(I tried searching "override the breadcrumb module" on this forum for instructions and no luck)
Thank you,
Steve
How do I do that ?
(I tried searching "override the breadcrumb module" on this forum for instructions and no luck)
Thank you,
Steve
-
PiLLaO
- Contributor
- Posts: 131
- Joined: Thu Nov 05, 2020 9:28 pm
- Phoenix Version: v1.1.0.6
- Has thanked: 65 times
- Been thanked: 17 times
Re: Problem with the Breadcrumb ?
You have the posibility to override any module, hooks and more...
In this case, you need to override the breadcrumb hook, take a look here.
catalog/templates/override/includes/hooks/shop/siteWide/(breadCrumb.php)
In this case, you need to override the breadcrumb hook, take a look here.
catalog/templates/override/includes/hooks/shop/siteWide/(breadCrumb.php)
- burt
- Core Team
- Posts: 4736
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 279 times
- Been thanked: 467 times
Re: Problem with the Breadcrumb ?
You might simply copy the language file to your chosen template.
Then change the language file appropriately.
--
Your Admin > Tools > Language Explorer.
Scroll to english > modules > content > header and click it.
Click the icon on cm_header_breadcrumb.php
You will now see a message something like;
Change this bit:
To (eg):
Save the file. Reload your shop.
Now the `house icon` links to your shop index page, and the `Catalog` link is gone.
Then change the language file appropriately.
--
Your Admin > Tools > Language Explorer.
Scroll to english > modules > content > header and click it.
Click the icon on cm_header_breadcrumb.php
You will now see a message something like;
Open that new file in your hosting control panel "file explorer". So that you can change it.Success: The file /includes/languages/english/modules/content/header/cm_header_breadcrumb.php has been copied to Template override.
You can find the new file at /templates/override/includes/languages/english/modules/content/header/cm_header_breadcrumb.php
Change this bit:
Code: Select all
const MODULE_CONTENT_HEADER_BREADCRUMB_TITLES = [
'<i class="fas fa-home"></i><span class="sr-only"> Home</span>' => null,
'Catalog' => 'index.php',
];To (eg):
Code: Select all
const MODULE_CONTENT_HEADER_BREADCRUMB_TITLES = [
'<i class="fas fa-home"></i><span class="sr-only"> Home</span>' => 'index.php',
];Now the `house icon` links to your shop index page, and the `Catalog` link is gone.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
cerberus
- Member
- Posts: 86
- Joined: Sun Sep 06, 2026 10:54 pm
- Phoenix Version: v1.1.0.7
- Has thanked: 20 times
- Been thanked: 6 times
Re: Problem with the Breadcrumb ?
Thank you burt and PiLLaO for your help in this matter.
That did the trick, again thank you both for your help.
( this is a steep learning curve for me
)
Have a good weekend,
Steve
That did the trick, again thank you both for your help.
( this is a steep learning curve for me
Have a good weekend,
Steve
-
ecartz
- Core Team
- Posts: 3086
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: Problem with the Breadcrumb ?
To clarify, out of the box, CE Phoenix Cart assumes that you are installing your store in a subfolder of your site. So Home goes to phoenixcart.org and Catalog goes to phoenixcart.org/demo
If your site only has one root, which is the store, you don't need both. So pick one of Home or Catalog and remove it from the language file. This is designed for when you have, e.g., a blog at root and your store in a subfolder. So the breadcrumb allows people to click out of the store and back to the root blog if they want.
If your site only has one root, which is the store, you don't need both. So pick one of Home or Catalog and remove it from the language file. This is designed for when you have, e.g., a blog at root and your store in a subfolder. So the breadcrumb allows people to click out of the store and back to the root blog if they want.
- BrockleyJohn
- Certified Developer
- Posts: 189
- Joined: Mon Mar 01, 2021 5:37 pm
- Phoenix Version:
- : Buy Me A Beverage
- Has thanked: 2 times
- Been thanked: 36 times
Re: Problem with the Breadcrumb ?
If you still have this in, it will work for now, but I have a couple of comments. First, if you are going to have something in the root in the future, you should use a 302 redirect (temporary) not 301 permanent, as it will make it harder to index the content in the future, and 301s are cached stickily by browsers so anyone that's accessed your shop via the domain will struggle to see it.cerberus wrote: ↑Thu Sep 10, 2026 6:46 pm
<IfModule mod_rewrite.c>
RewriteEngine On
Redirect 301 /index2.html https://SHOP URL HERE/shop/index.php
</IfModule>
(index2.html is the startup file for the web service provider)
I dont know if the is the best way of doing things, but its all I know at the moment.
Second, you've mixed the syntax of two different apache modules in your htaccess code
Code: Select all
Redirect 301 /index2.html https://SHOP URL HERE/shop/index.php
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index2\.html$ https://SHOP_URL_HERE/shop/index.php [R=302,L]
</IfModule>