Didn't really know what to call this. We want to add more text to the category pages shop side. Currently we can move the category description text to below the category stuff, but want to try to keep some above the categories and not have so much that it pushes the categories or products down the page. (I hope that makes sense). So keep the present categories description so visitors know what the category is about, and have a further section further down the page with more info and links to other help pages and what ever.
What I want to do is to add another input box into admin/includes/actions/catalog/infoboxes/edit_category.php.
It will be a copy of the category description section but will allow us to add more text to the shop side category pages but under the other boxes and info already on the page. Fully aware that another module will also need creating for inclusion into the index_nested and index_products sections, and a new column in the database categories_description table.
What would be the best way to achieve this? Is it possible to hook into that section, or would it need to be hard coded into present code as currently unable to override admin on my version 1.0.9.0. if its possible in later versions.
Any suggestions welcome.
Add additional input box to catalog - edit_category.php area - Is it possible
-
Dan Cole
- Senior Contributor
- Posts: 498
- Joined: Fri Oct 25, 2019 2:14 pm
- Phoenix Version: 1.0.8.21
- Has thanked: 67 times
- Been thanked: 61 times
Re: Add additional input box to catalog - edit_category.php area - Is it possible
I did something along those lines Steve adding a "READ/MORE LESS" button.We want to add more text to the category pages shop side. Currently we can move the category description text to below the category stuff, but want to try to keep some above the categories and not have so much that it pushes the categories or products down the page. (I hope that makes sense). So keep the present categories description so visitors know what the category is about, and have a further section further down the page with more info and links to other help pages and what ever.
You can see it here...
https://aquariumshop.ca/PH820/index.php?cPath=1_254
Maybe something like that would work for you and if so let me know and I'll do what I can to help.
Dan
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Add additional input box to catalog - edit_category.php area - Is it possible
I am certain this can be done with a Hook (to do all the admin stuff);
1. add in an extra textarea (i18n as the extra text would need to be per language [as the cateories_description table goes by language])
2. insert into DB when pressing Save/Update
And then modules shop side to display the text as I don't think there's a hook in place that would cover that.
That module would be turned on and sort_order'd as per any other module.
The only manual bit of it all, would be having to use PHPMyAdmin to create the new DB column in categores_description Table.
If I have time I will try to make the Hook. The module bit is easier and can be copied from the other modules that already exist, ie you can probably DIY.
1. add in an extra textarea (i18n as the extra text would need to be per language [as the cateories_description table goes by language])
2. insert into DB when pressing Save/Update
And then modules shop side to display the text as I don't think there's a hook in place that would cover that.
That module would be turned on and sort_order'd as per any other module.
The only manual bit of it all, would be having to use PHPMyAdmin to create the new DB column in categores_description Table.
If I have time I will try to make the Hook. The module bit is easier and can be copied from the other modules that already exist, ie you can probably DIY.
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.
-
14Steve14
- Senior Contributor
- Posts: 920
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Has thanked: 17 times
- Been thanked: 103 times
Re: Add additional input box to catalog - edit_category.php area - Is it possible
Cheers dan. Stikl trying to get my head around everything. The more I think about this the more needs doing as it also needs to be part of the deletion process as well if the category is ever removed.I did something along those lines Steve adding a "READ/MORE LESS" button.
You can see it here...
https://aquariumshop.ca/PH820/index.php?cPath=1_254
Maybe something like that would work for you and if so let me know and I'll do what I can to help.
Dan
Cheers for the input Gary. This is one of those silly ideas I have where more text could improve seo but be little help to the customer. Rather than push the important bits, the products, down the page below the text this should allow us to keep the good introduction text and put everything else out of sight unless people look for it. I have seen similar on other sites.If I have time I will try to make the Hook. The module bit is easier and can be copied from the other modules that already exist, ie you can probably DIY.
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: Add additional input box to catalog - edit_category.php area - Is it possible
Only the individual shopowner knows what they want, so there is, more or less, no such thing as a silly idea.
Anyway, you have a PM
Anyway, you have a PM
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.