Page 1 of 1

Help with Modifying code

Posted: Mon Mar 08, 2021 1:13 am
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?

Re: Help with Modifying code

Posted: Mon Mar 08, 2021 1:26 am
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.

Re: Help with Modifying code

Posted: Mon Mar 08, 2021 3:11 am
by Portman
thanks so much ecartz I have ben pulling my hair out all weekend over this one!!

Re: Help with Modifying code

Posted: Mon Mar 08, 2021 6:44 am
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

Re: Help with Modifying code

Posted: Tue Mar 09, 2021 10:02 am
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*