Thread: Layout Changes

Page 4 of 4 FirstFirst ... 234
Results 31 to 38 of 38
  1. #31
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Layout Changes

    You missed to follow my suggestion in post #17
    Download the file from the server to your hdd
    Edit the file on your pc (good to have a text editor like notepad++, you can google it)
    Upload the file - before uploading you could rename the file on the server, so if the edited file creates problem you can roll back to the working file by just renaming it to its original name, i.e. defaults.css > defaults_old.css; if newly uploaded file works fine, you can delete the old one.

    It would be good to have the same structure of Zen Cart on your local pc.
    Now, before doing anything else do as Celtic too suggested:
    download a copy of your files to your hdd (drag and drop from right to left pane)
    If not all the files, at least the includes folder.

    You may want to download a fresh package of Zen Cart, so that you can recover some of the original files.
    Of course that does not include any different template, or mod you may have installed.

  2. #32
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Layout Changes

    For any file that has an override (/your_template/) path available, do not rename or replace the original at all - just upload the edited version to the override template location, leaving the original untouched.

  3. #33
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    Default Re: Layout Changes

    Ok, before I start the steps Keneso and GJH42 instructed, need to make sure I understand - " For any file that has an override (/your_template/) path available, do not rename or replace the original at all - just upload the edited version to the override template location, leaving the original untouched."

    For any file that has an override path available..... do not rename or replace, etc. are you referring to when I am dragging & dropping from R to L, as Keneso instructed? Or do you mean - don't drag and drop any file that has an override path available? Can you explain?
    Annette
    www.annetteslingerie.com

  4. #34
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    Default Re: Layout Changes

    Or, GJH42, is your instruction referring to when I make future changes, or if I download a whole new Zen Cart package now?
    Annette
    www.annetteslingerie.com

  5. #35
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    Default Re: Layout Changes

    Ok, the problem is fixed and I've downloaded a copy of my Includes folder.....

    Thank you all again, very much!
    Annette
    www.annetteslingerie.com

  6. #36
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Layout Changes

    Do not rename/replace the original file on your server; copy or download it, edit and re-upload the changed file to the template override location on your server.

  7. #37
    Join Date
    Feb 2010
    Posts
    154
    Plugin Contributions
    0

    Default Re: Layout Changes

    Quote Originally Posted by annettes View Post
    Celtic, The image problem at defaults.css is fixed!
    But I received this error on website when I removed <br class="clear both"/> from tpl_product_info.php ?

    Parse error: syntax error, unexpected T_REQUIRE in /home/annettes/public_html/includes/templates/template_default/templates/tpl_product_info_display.php on line 1
    Hi annettes,

    Well done in finding the error and correcting it. Looks like you're back to where you were at the beginning now though, so you still need to remove that <br class="clearBoth"/> tag.

    A couple of things though...

    Now that you have a local copy of your /includes folder on your PC, you should definitely edit the files in there using Notepad++ (note the 'plus plus') which is a free text editor from http://notepad-plus-plus.org

    The previous comments about 'overrides' I think are a bit off-topic for you in regard to this, but they will have come about because of the error you reported above. You can see that the error is complaining about something you did in the 'template_default' folder. This folder is one that Zencart relies on if it can't find what it is looking for in the template you are actually using (which is 'TemplateEditor' in your case).

    So, either you mistakenly edited the file in the 'template_default' folder, or more likely you couldn't find the 'tpl_product_info.php' file at this location: /includes/templates/TemplateEditor/templates/tpl_product_info.php

    If you couldn't find the tpl_product_info.php file in your TemplateEditor location, you should copy the file from
    /includes/templates/template_default/templates/tpl_product_info.php
    into
    /includes/templates/TemplateEditor/templates/tpl_product_info.php

    By doing that copy of the file from the default location into your own template is what is referred to as using the 'override' system. Now Zencart will find your own tpl_product_info.php file in your template, and use that instead of looking for the 'default' one.

    Does that help at all, or am I just confusing things even more?

  8. #38
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    Default Re: Layout Changes

    No, that does help Celtic. The product image problem is now fixed, and I appreciate your extra help. I will definitely make a note of it. Thanks!
    Annette
    www.annetteslingerie.com

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. General Layout Changes
    By partinrl in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Apr 2013, 02:22 PM
  2. Layout Changes
    By annettes in forum Customization from the Admin
    Replies: 1
    Last Post: 26 Feb 2011, 04:17 PM
  3. Layout changes
    By bgroup99 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Dec 2006, 05:47 PM
  4. changes to layout
    By spottedhaggis in forum General Questions
    Replies: 2
    Last Post: 9 Aug 2006, 03:27 AM

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