Change link on header

Ask the community for help and support.
Post Reply
jdubhros
Posts: 6
Joined: Sun Feb 12, 2023 10:40 pm

Change link on header

Post by jdubhros »

Is there a way to change the header links so that "account" would link to "account.php" and the cart logo to "shopping_cart.php" without core changes?

Which version of Phoenix you are using?
CE Phoenix v1.0.8.20
Is this a new install or an existing store?
New Install - https://houseofdubhros.com/store/index.php
What version of PHP are you using?
8.0.27 (Zend 4.0.27)
What Addons have you installed
None, but I have turned off some features with the "false" command.
What "customized changes" have you made to core code any core code changes you have made, list them
None, all changes through template.

Tags:
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Change link on header

Post by heatherbell »

jdubhros wrote: Thu Feb 16, 2023 5:59 am Is there a way to change the header links so that "account" would link to "account.php" and the cart logo to "shopping_cart.php" without core changes?
Module Template files and/or Core modules can be copied and edited - details here:
https://github.com/CE-PhoenixCart/Phoen ... ng#modules
https://github.com/CE-PhoenixCart/Phoen ... #templates

Presumably you refer to Navbar Links so e.g. the Navbar Account and Navbar Shopping Cart modules template files
- https://github.com/CE-PhoenixCart/Phoen ... ccount.php
- https://github.com/CE-PhoenixCart/Phoen ... g_cart.php
could be copied, edited and saved as described in the above links.
jdubhros
Posts: 6
Joined: Sun Feb 12, 2023 10:40 pm

Re: Change link on header

Post by jdubhros »

Thanks for the heads up! I think I got it sorted. It appears that the issue is for some reason CE Phoenix is not recognizing drop downs as a dropdown menu and only seeing the to # link.

Using the template I edited those files to switch the links directly to the pages, and removed the dropdown bits.

Should I upload those altered files in case someone else has the same issue? Is there a way to do so?
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Change link on header

Post by heatherbell »

jdubhros wrote: Sun Feb 19, 2023 1:33 am Should I upload those altered files in case someone else has the same issue? Is there a way to do so?
When writing a post here, you should see the option to post code using the code icon in the tool bar or alternatively attach a zip file.
Post Reply