How to add a brand page?

Open to all! Ask other shopowners for help.
Post Reply
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

How to add a brand page?

Post by lecarlb »

Hello,

I would like to add a brand page that lists all brands and add a link to that page in Horizontal menu.

Will it require an addon?

Thanks


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: How to add a brand page?

Post by Kofod95 »

It's not a core feature, so in that sense it will require an add-on. However, it's not one of the most complicated tasks, and could be done mostly by copying core-files, so in that sense it's not a complicated task to do.

You'd need something like:
/brands.php
/includes/{language}/brands.php
/templates/default/includes/pages/brands.php
and then, of course, to add the link to the header - either through a new module or, if your existing modules are able to, through an existing module. (Could be done in other ways, but a module seems the most logical place for it).

I would copy core files (or segments from them) that does something similar:
- you have a box in core that lists all manufacturers
- you have a few pages in core that makes a nice list of "cards"
- you have a box in core that shows more than the name of the manufacturer.

I hope that will be helpful for you! I will gladly try to assist further, should you need it!

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
lecarlb
Contributor
Posts: 316
Joined: Mon Oct 26, 2020 5:26 pm
Phoenix Version:
Has thanked: 48 times
Been thanked: 9 times

Re: How to add a brand page?

Post by lecarlb »

Kofod95 wrote: Wed Jun 21, 2023 6:39 am It's not a core feature, so in that sense it will require an add-on. However, it's not one of the most complicated tasks, and could be done mostly by copying core-files, so in that sense it's not a complicated task to do.

You'd need something like:
/brands.php
/includes/{language}/brands.php
/templates/default/includes/pages/brands.php
and then, of course, to add the link to the header - either through a new module or, if your existing modules are able to, through an existing module. (Could be done in other ways, but a module seems the most logical place for it).

I would copy core files (or segments from them) that does something similar:
- you have a box in core that lists all manufacturers
- you have a few pages in core that makes a nice list of "cards"
- you have a box in core that shows more than the name of the manufacturer.

I hope that will be helpful for you! I will gladly try to assist further, should you need it!

//Daniel
I'll look at it then get back with you. I'm sure I'll need help. Thank you for your reply
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: How to add a brand page?

Post by Omar_one »

gabbysplaza
Member
Posts: 45
Joined: Tue Oct 26, 2021 5:33 pm
Phoenix Version:
Has thanked: 24 times
Been thanked: 2 times

Re: How to add a brand page?

Post by gabbysplaza »

How can I use this to add just another page similar to privacy policy, contacts etc? My page won't be as complicated as that requested by @lecarlb

Thanks.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: How to add a brand page?

Post by burt »

gabbysplaza wrote: Fri Jun 28, 2024 11:00 am How can I use this to add just another page similar to privacy policy, contacts etc? My page won't be as complicated as that requested by @lecarlb

Thanks.
https://phoenixcart.org/phoenixcartwiki ... Info_Pages
I am not here to build for you.
I am here to build with you. Let's help each other.
gabbysplaza
Member
Posts: 45
Joined: Tue Oct 26, 2021 5:33 pm
Phoenix Version:
Has thanked: 24 times
Been thanked: 2 times

Re: How to add a brand page?

Post by gabbysplaza »

Thank you @burt


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply