Page 1 of 1
Change link on header
Posted: Thu Feb 16, 2023 5:59 am
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.
Re: Change link on header
Posted: Thu Feb 16, 2023 6:15 am
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.
Re: Change link on header
Posted: Sun Feb 19, 2023 1:33 am
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?
Re: Change link on header
Posted: Sun Feb 19, 2023 7:52 am
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.