Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default cannot override template

    I'm working on a new template for a client's shop. The shop uses a customer version of an older template called "Gloss Black." I want to redesign the shop with the ZCA Bootstrap template. But when I made a clone of the site (to use in the redesign process), no matter what template I select in tools, I only see the customized Gloss black template.

    Any idea what would be causing this? Totally scratching my head on this one . I've done a couple of re-skins for clients' shops and never run into this.
    Ellie Armsby

  2. #2
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: cannot override template

    Quote Originally Posted by earmsby View Post
    I'm working on a new template for a client's shop. The shop uses a customer version of an older template called "Gloss Black." I want to redesign the shop with the ZCA Bootstrap template. But when I made a clone of the site (to use in the redesign process), no matter what template I select in tools, I only see the customized Gloss black template.

    Any idea what would be causing this? Totally scratching my head on this one . I've done a couple of re-skins for clients' shops and never run into this.
    Unfortunately, there are/were some templates that forced themselves to be the only template ever seen... This was coded as an "action" to always make the associated template, THE template... Either the table: TABLE_TEMPLATE_SELECT gets updated to make the template the only active template, or in processing through includes/init_includes/init_template.php (or similar), this template is identified as THE template...

    It helps to understand what files have been added to the store compared to a base install for this template and/or what changes it made to existing files... The information *may* be locatable by searching the system for your template's name, though that is also likely/possible to come up with a lot of files as the template's name probably is in the header of all of the template override files for that template...

    Ahh, the old days, I remember another template that did the same thing and back when I first started using ZC I did a reinstall of the software to *NOT* include that template in order to "restore". I didn't have good comparison tools then...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: cannot override template

    Argh. I was afraid it was something like that. I will do a bit of digging to see if I can find the offending code. Otherwise, it sounds like I might be better off starting with a clean ZC copy, then re-do all mods that are not template related and then try again without the old template.

    Since I'm doing all of this in a testing site, I can mess with it as much as needed without effecting the live store.
    Ellie Armsby

  4. #4
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: cannot override template

    I tried searching on the name of the template and didn't come up with anything. Also dug into the database a little and can see that the selected template in TABLE_TEMPLATE_SELECT is getting changed if I select a new template. But the stylesheet for the customized Gloss Black template still loads (and no other).

    Interestingly (maybe?), if I rename the template directory without reselecting in admin, the template_default template is used no matter which other template I select.

    Looks like I'll have to start over with a fresh install and then work backward to add back a number of non-template related customizations.
    Ellie Armsby

  5. #5
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: cannot override template

    So, not sure if that is the template that is found at this link: Gloss Black Template - Zen Cart Plugins (zen-cart.com)
    or if it is another.

    Lot's of possible places that the "problem" could be and it depends entirely on the software package and its installation... I've seen software that added a call in the index.php file (horrible place to unnecessarily modify), I've seen where a query is run (might consider looking for instances of TABLE_TEMPLATE_SELECT or more simply template_select if the site doesn't use a DB_PREFIX and the software wasn't written to consider using it to begin with. Oh and the software that causes the change may be in yet another sub-directory outside the normal search path(s) of ZC making it even funner to play with.

    I've downloaded the template from the above link and am going to at least take a quick look even though it is ancient as far as applicability and would need some serious upgrading to be compatible.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: cannot override template

    Quote Originally Posted by mc12345678 View Post
    So, not sure if that is the template that is found at this link: Gloss Black Template - Zen Cart Plugins (zen-cart.com)
    or if it is another.

    Lot's of possible places that the "problem" could be and it depends entirely on the software package and its installation... I've seen software that added a call in the index.php file (horrible place to unnecessarily modify), I've seen where a query is run (might consider looking for instances of TABLE_TEMPLATE_SELECT or more simply template_select if the site doesn't use a DB_PREFIX and the software wasn't written to consider using it to begin with. Oh and the software that causes the change may be in yet another sub-directory outside the normal search path(s) of ZC making it even funner to play with.

    I've downloaded the template from the above link and am going to at least take a quick look even though it is ancient as far as applicability and would need some serious upgrading to be compatible.
    Nope... Not that one... That's got to be one of the most basic versions of a template modification that I've ever seen... It's almost too bad its not that easy any more. :)

    And no I'm not saying anything about the quality of the template there or anything, Now a days it takes more than putting a few files in a new template's set of folders.

    If you have a file comparison utility, you should be able to spot the "odd line" out...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,694
    Plugin Contributions
    123

    Default Re: cannot override template

    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: cannot override template

    Thanks, I did see that reply but the overrides version doesn't exist and the other one is identical to the clean install.
    Ellie Armsby

 

 

Similar Threads

  1. v151 Title tag on my template pages missing - cannot switch to default template
    By mrcastle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Aug 2014, 12:00 AM
  2. I cannot override
    By Marlake in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Jul 2011, 09:25 AM
  3. Template override problem
    By superprg in forum General Questions
    Replies: 6
    Last Post: 15 Aug 2007, 11:39 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR