Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    15
    Plugin Contributions
    0

    Default copied template and sideboxes dissipeared

    I made a copy of a template and then switched to it, and the left side modules all disappeared.

    what might cause such a behavior?

    the site is:
    http://beakandclaw.com/cart/

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: copied template and sideboxes dissipeared

    Any number of things can cause the non-display of the column contents. Without having access to your core code files, it is really difficult to ascertain the cause.

    The remedy is probably time-consuming, and only you can do this.

    Suggest you do this:-

    Get a copy of WINMERGE - the file comparison tool.

    Use WINMERGE to compare the files of your new template, with the files of a standard template.

    Winmerge will alert you to files that have the same name, but differ in content.

    You will have to look at these comparisons, and where there are omissions of code or blocks of code, determine whether you need to include such code in your new template, and then edit accordingly.

    Winmerge also alerts you to files that exist in one directory, but not in its corresponding comparative directory (there may be files that you have neglected to upload).

    Other people may have further solutions, but you may be better off reverting to your original template while you find the answers.

  3. #3
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    15
    Plugin Contributions
    0

    Default Re: copied template and sideboxes dissipeared

    diffing is no problem for me

    The only question is what to diff :)

    Is it only the files from includes/templates/my_template/* ?
    or are there other directories that I need to diff as well?

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: copied template and sideboxes dissipeared

    Did you rename template?
    If so, when installing NEW template, you have
    to reactivate sideboxes via admin/tools/layout boxes controller

  5. #5
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    15
    Plugin Contributions
    0

    Default Re: copied template and sideboxes dissipeared

    much thank, that is exactly what I needed

    you can see the work in progress at http://www.beakandclaw.com/cart

    Thanks for the help !

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: copied template and sideboxes dissipeared

    Quote Originally Posted by dingfelder View Post
    much thank, that is exactly what I needed

    you can see the work in progress at http://www.beakandclaw.com/cart

    Thanks for the help !
    Pleased to hear problem sorted
    Well done !!

  7. #7
    Join Date
    Nov 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: copied template and sideboxes dissipeared

    I also had my sideboxes disappear when I renamed my template.

    I moved the admin settings from the old name to the new by editing the mysql.

    If you are are familiar with mysql syntax you can hand edit a mysqldump,
    e.g.:
    Code:
    mysqldump -u[user] -p[password] [zencart database name] > dump_with_renamed_template_dirs.txt
    For me at least, only the `layout_boxes` table was dependent on the template
    name.
    So in your favourite text editor you can search for the (really long)
    line starting:
    Code:
    INSERT INTO `layout_boxes` VALUES
    The line contains values for both old_template_name and new_template_name.
    Delete all the values referring to new_template_name and rename all
    instances of old_template_name to new_template_name.

    Clean up the commas and the end semicolon.

    Save the edited file.

    Then load the new database data:
    mysql -u[user] -p[password] [zencart database name] < edited_mysql_dump.txt

    It worked for me!
    Use at your own risk.
    donothingsuccessfully

 

 

Similar Threads

  1. Replies: 6
    Last Post: 25 Mar 2012, 08:40 PM
  2. copied products to different category / display on copied products info page
    By Cadoo in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 10 Jun 2011, 10:49 AM
  3. Copied existing template - new one not showing in Admin Temp. Selection
    By ksolito in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Feb 2008, 01:55 AM
  4. I changed template and lost sideboxes
    By justinae in forum General Questions
    Replies: 1
    Last Post: 15 Nov 2007, 10:09 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