Help with Modifying code

Open to all! Ask other shopowners for help.
Post Reply
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Help with Modifying code

Post by Portman »

Hello,

I am trying to use the template option on my site to make changes to the include/modules/content/index_nested/templates/tpl_cm_in_category_listing.php file.

I have modified it so that it does not show an image but only shows the text for the link... it works fine...

I am now trying to do the right thing and move it over to my templates folder so that I am not modifying the original code (obviously I am changing the original code back)

I am using v1.0.7.9 at the moment as I am not at a point where I can upgrade to the latest versions

I have moved the file into templates/gustavo/include/modules/content/index_nested/templates/ and I have also moved a copy of cm_in_category_listing.php onto the corresponding index_nested folder incase this makes a difference.

I have gustavo selected as my template in the store configuration.

Is there something else I need to do?


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Help with Modifying code

Post by ecartz »

Portman wrote: Mon Mar 08, 2021 1:13 am templates/gustavo/include/modules/content/index_nested/templates/
Delete cm_in_category_listing.php and move tpl_cm_in_category_listing.php up one level to templates/gustavo/include/modules/content/index_nested/tpl_cm_in_category_listing.php

Everything in the templates folders is a template you don't need (and in fact don't want) the second templates directory.
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Re: Help with Modifying code

Post by Portman »

thanks so much ecartz I have ben pulling my hair out all weekend over this one!!
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Help with Modifying code

Post by heatherbell »

Portman wrote: Mon Mar 08, 2021 3:11 am thanks so much ecartz I have ben pulling my hair out all weekend over this one!!
See User Guide - https://phoenixcart.org/phoenixcartwiki ... a_Template
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Re: Help with Modifying code

Post by Portman »

Thanks Heatherbell, I did look at this guide but I missed the part about not using the templates folder ... in looking at it again it jumped out straight away... *sigh*


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