Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2009
    Location
    Sydney Australia
    Posts
    84
    Plugin Contributions
    0

    Default Template Customisation Issue

    What have I done?

    Using ZC 1.3.8

    My original problem was that I wanted to work on a page before I made it live. Using the Define Pages Editor, I modified Main_Page to say, "work in Progress." Then decided to play with a variation on the original page using the same editor, "Define_Page_3.php." Along the way, I tried to look at www.mydomain.com/page_3.php or www.mydomain.com/define_page_3.php with no luck . . . nevertheless I kept editing in html mode, and figured I could make it go "live" at some stage. So today, figured I would try to get my head around it. Found the modified file in /includes/languages/english/ . . . don't recall the rest of the link, copied it to my local drive, renamed it "test.php", and proceeded to stick it in:

    includes/languages/CUSTOM
    includes/lanuages/English/CUSTOM
    includes/languages/English/html_includes/CUSTOM, and
    a few more variations as well

    Each time loading in "test," seeking it in my browser, "www.mydomain.com/test.php" and when it was not there deleting the file and putting into the next possible . . . /CUSTOM/ folder

    In theory I was testing and undoing, testing and undoing, but it never worked. Eventually when I could get no further I went back to www.mydomain.com, and lo and behold, the borwser seeks and seeks and . . . NOTHING! If I go into the define pages editor all is still there, but the website has vanished ;)

    Tell me I've done something stupid, and you have the brilliant solution for me. The website is www.findingyourway.com.au. Any brilliance would be greatly appreciated.

    And in advance, no I did not mess with style sheets. I never replaced a file, I simply put this test file into folders that were previously empty or had other php files in them.

    Thanks so much for your help! Sean

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Template Customisation Issue

    Presuming this is not a live site, you might be able to just re-upload the 'includes/languages' dir. from the original default files and restore. Also, when working on a custom Template and having these type problems switching to the Classic (default) Template will let you know if the problem is with custom files. Which at least narrows things down for you.

  3. #3
    Join Date
    Nov 2009
    Location
    Sydney Australia
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template Customisation Issue

    Rob, Thanks for your feedback. This WAS a live site, but I had really only started with the ZenCart installation. I had spent a lot of time editing this "Define_Page_3.php" file, I was still able to access and copy that file to my local drive.

    I tried changing the template to classic and it made no difference. So I decided to delete the includes/languages/ directory and then reinstalled from a virgin copy. I then recreated all of the custom directories (just empty folders). I went back into www.findingyourway.com.au and again nothing.

    No error message, the site simply never loads. I just tried another browser and it simply sees a blank html page.

    Mind you if I go into my administration file of ZC, I still see all of the template choices, and other elements that are indeed "there," but obviously by deleting includes/languages I deleted all customised content. I didn't bother reinstalling my backed-up html page but I did make a few tweaks in Define Pages Editor to Main_Page and Page_3 and saved both. Again the index seems to be pointing to a blank html page rather than the slightly customised "Main_Page" in ZC, as nothing at all comes up.

    Now this is sounding like a strange database problem with pointers broken . . . but have no idea what might have triggered that! Sorry for my techno challenged explanations! Hope this makes some sense.

    Cheers, Sean
    Last edited by smcelligott; 10 Feb 2010 at 05:44 AM. Reason: wrong signature panel for this issue

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Template Customisation Issue

    When you say 'slightly customized' main_page, what exactly did you do, and if you replace that page with a fresh (stock) copy, does the site come back?

    My guess is that you've introduced blank lines or spaces into define_main_page.php or used unescaped special characters somewhere.

    You might try this, too:

    http://www.zen-cart.com/index.php?ma...roducts_id=860

  5. #5
    Join Date
    Nov 2009
    Location
    Sydney Australia
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template Customisation Issue

    No I just inserted "revised main page???" so I could tell which file was being opened. I just changed back to an unmodified file, and that did not make a difference. will try the debug -- thanks, Sean

  6. #6
    Join Date
    Nov 2009
    Location
    Sydney Australia
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template Customisation Issue

    not sure if I missed something obvious or you missed an instruction, but I followed the instructions, but it doesn't seem like I did anything. Stuck it in the /includes/extra_datafiles folder and then tried to open the offending (main page)? did all that, read the instructions a couple of times, but nothing, no such error log is created . . . don't I have to install it somehow?? Seems to easy to just drop it into the folder. . .

  7. #7
    Join Date
    Nov 2009
    Location
    Sydney Australia
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template Customisation Issue

    I'm fairly certain this is NOT a template customisation issue as I first suggested. I'll dig deeper, and attempt a variation of this question in a new post.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Template Customisation Issue

    Blank page
    https://www.zen-cart.com/tutorials/index.php?article=82
    Then decided to play with a variation on the original page using the same editor, "Define_Page_3.php." Along the way, I tried to look atwww.mydomain.com/page_3.php or www.mydomain.com/define_page_3.php with no luck .
    Those are not the url's to access load page_3
    Once you get your blank page squared try
    www.mydomain.com/index.php?main_page=page_3
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Template Customisation Issue

    Quote Originally Posted by smcelligott View Post
    Mind you if I go into my administration file of ZC, I still see all of the template choices, and other elements that are indeed "there,"
    That tells us the problem is somewhere in the 'includes' dir. which is where all the front-end files are located. Best I can suggest is to delete the 'includes' dir. and re-install the default one.

    That should make your site work again but with the Classic Template. From there I suggest you create a 'test' dir. where you can experiment and if things go wrong then not a problem. Just delete the 'test' dir. and re-install. That is why, having a 'test' dir. is always recommended.

  10. #10
    Join Date
    Nov 2009
    Location
    Sydney Australia
    Posts
    84
    Plugin Contributions
    0

    Default Re: Template Customisation Issue

    Thanks all, this all got a bit too hairy. When I was running the debug (after fully reading the instructions), it kept struggling with something currency related in the config file. I tinkered for awhile, but in the end, decided to save the new template, and main page that I had put a lot of work into, and completely delete, and reinstall zc. Surprisingly it didn't take me long to do that this time. Sure, there were loads of little things that I have to remember how to fix again, but with each virgin install, the processes, and the file structure understanding, become more obvious. Not a bad exercise for ZC newbies, in my opinion. Thanks again for all of your help. Cheers, Sean

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. EZ Pages customisation issue
    By adem.i in forum Basic Configuration
    Replies: 27
    Last Post: 6 Mar 2011, 07:27 AM
  2. Template Customisation Confusion of the Noob Variety
    By SeánT in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 26 Sep 2010, 01:47 PM
  3. Help with Template customisation
    By bravo14 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Nov 2009, 01:46 PM
  4. Template Issues and Customisation
    By hargz in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 7 Feb 2009, 05:18 PM
  5. Customisation of Layout of zen Cart Template
    By piyush38 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Nov 2007, 04:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg