Zen Follower
- Join Date:
- Feb 2016
- Location:
- Canada
- Posts:
- 192
- Plugin Contributions:
- 0
Clone a Template [Support Thread]
Thanks again for your detailed explanation.
Views: 46,080
Zen Follower
Thanks again for your detailed explanation.
Zen Follower
Responsive Classic Template is not displayed as an option in the "Source Template" drop-down box, even though the Responsive Classic Template is installed and working AND Responsive Classic Template is displayed as an option in admin>Tools>Template Selection>Edit>Template Name.
Any suggestions?
zen cart v155a
installed Clone a Template from github
https://github.com/lat9/clone_template/commit/8a0608cc572a62dae60e3f8cb9898c9663ccf8a1
Zen Follower
Problem fixed. Not sure how since I tried several things. However, it seems that clicking on admin>Tools>Layout Boxes Controller somehow did the trick.
lat9, Thanks so much for this handy tool!
Zean:
Responsive Classic Template is not displayed as an option in the "Source Template" drop-down box, even though the Responsive Classic Template is installed and working AND Responsive Classic Template is displayed as an option in admin>Tools>Template Selection>Edit>Template Name.
Any suggestions?zen cart v155a
installed Clone a Template from github
https://github.com/lat9/clone_template/commit/8a0608cc572a62dae60e3f8cb9898c9663ccf8a1
Administrator
@Zean, did you upgrade your store to v1.5.5 or do an install of 1.5.5? A template "qualifies" for display if it's, as you found, got entries in the layout_boxes table and it's not the* template_default* (you'd clone *classic *instead) template.
My guess is that you upgraded from an earlier version of Zen Cart, since the ZC 1.5.5 upgrade SQL, for some reason, doesn't set the layout_boxes configuration for the responsive_classic into the database.
Zen Follower
lat9:
@Zean, did you upgrade your store to v1.5.5 or do an install of 1.5.5? A template "qualifies" for display if it's, as you found, got entries in the layout_boxes table and it's not the* template_default* (you'd clone *classic *instead) template.
My guess is that you upgraded from an earlier version of Zen Cart, since the ZC 1.5.5 upgrade SQL, for some reason, doesn't set the layout_boxes configuration for the responsive_classic into the database.
Yes, you are a good guesser! This installation was on a Zen Cart that has been repeatedly upgraded since the beginning of time.
lat9, thank you so much for this fabulous add-on which is now an essential part of my tool box.
Administrator
Thanks back at you, Zean, for your kind words. Here's the link to my posting on those missing layout-boxes entries, just in case others run into that issue.
Administrator
I've just submitted v1.2.0 to the plugins for review. This version of the tool removes an unwanted <td> in the form and adds the capability to remove an add-on or cloned template's files and layout-box-controllers settings.
Administrator
lat9:
I've just submitted v1.2.0 to the plugins for review. This version of the tool removes an unwanted <td> in the form and adds the capability to remove an add-on or cloned template's files and layout-box-controllers settings.
v1.2.0 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2087
Totally Zenned
lat9:
v1.2.0 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2087
So that I can get this straight in my head; this makes a copy of the template being used and any plugins that have been added to that template?
andy
Learning Fast.
Eden Craft Supplies
Administrator
adb34:
So that I can get this straight in my head; this makes a copy of the template being used and any plugins that have been added to that template?
andy
Clone a Template copies all files in the chosen template's template-override directories to a new template's override-directories, essentially making a copy of the template-specific files so that you either have a backup or a new working copy. The plugin also copies the "layout settings", i.e. the sideboxes that are enabled for the template.
The plugin has no knowledge of any other plugins that the selected template might have added, but any plugins included in the template's override-directories are also copied. It makes use of a template's override-directories (as documented by the Overrides Cheatsheet) in determining which files to copy.
Did that help?
Totally Zenned
Totally Zenned
I have run the plugin. I thought that when you run this, it would put the clone template in one place. Silly me.
Learning Fast.
Eden Craft Supplies
Administrator
adb34:
I have run the plugin. I thought that when you run this, it would put the clone template in one place. Silly me.
I don't understand. What one place did you expect the clone template to be put?
Totally Zenned
lat9:
I don't understand. What one place did you expect the clone template to be put?
Really, I do not know. I will sort out what I am going to do with the clone template
Learning Fast.
Eden Craft Supplies
Totally Zenned
Hello Cindy,
I'm still running 1.5.1 on my 6 sites (all using responsive_all_business (RAB) by Anne @ Picaflour) however I am about to upgrade at least one site to 1.5.5e and try to come up with an acceptable 'look'. So once I have a suitable look can I use this plugin to clone the resultant template/layout and then use that clone on my other sites making minor adjustments (mainly color)? That 'clone' to transfer to other sites would really need to be a copy of the complete set of all the files associated with the template as there is not a plugin that IS the installed template right? (like RAB and other ready made drop-in templates). So my query may be superfluous right :lookaroun
I assume this plugin doesn't have a magic wand such that if I was to clone my 1.5.1 RAB template that it would magically make that clone adapt to 1.5.5e? :smile:
cheers, Mike
Administrator
shags38:
Hello Cindy,
I'm still running 1.5.1 on my 6 sites (all using responsive_all_business (RAB) by Anne @ Picaflour) however I am about to upgrade at least one site to 1.5.5e and try to come up with an acceptable 'look'. So once I have a suitable look can I use this plugin to clone the resultant template/layout and then use that clone on my other sites making minor adjustments (mainly color)? That 'clone' to transfer to other sites would really need to be a copy of the complete set of all the files associated with the template as there is not a plugin that IS the installed template right? (like RAB and other ready made drop-in templates). So my query may be superfluous right :lookaroun
I assume this plugin doesn't have a magic wand such that if I was to clone my 1.5.1 RAB template that it would magically make that clone adapt to 1.5.5e? :smile:
cheers, Mike
Hey, Mike. You can "clone" RAB's template-override files (i.e. the files that get dropped into the various responsive_all_business directories), but Clone a Template has no clues as to what core-files (if any) RAB has modified. There's also no magic bullet to make any changes necessary going from a 1.5.1 template to a 1.5.5e one.
My suggestion: Clone what you've got as RAB and use the report that is generated (it's in your store's /logs directory) to have a list of all the template-override files. Copy those files to a fresh 1.5.5e installation and go from there to bring any files up to their 1.5.5e level.
Totally Zenned
I know that I am not the sharpest tool in the shed but installing/using Clone a Template looked to be pretty straight forward. Next step for me is to perform the install on a different server, different hosting account.
After 'cloning' the classic responsive, the cloned files appear to have their own folder but the only template available for selection is the responsive classic.
Admin: Tools: Clone-A-Template:
source classic responsive
Target: CLONE
Target Template Display Name: CLONE
Click: GO
Actually the only template available for selection after a vanilla install is responsive classic. Classic green is not an available choice. All are available for "Preview"
PHP 5.6.31
MySQL 5.5.5-10.1.28-MariaDB
No addons other than clone template 1.2.0
No edits to the vanilla install
Rick
RixStix (dot) com
aka: ChainWeavers (dot) com
Administrator
Which Zen Cart version? Please walk me through your installation and cloning procedure.
Totally Zenned
Sorry, I typed that and the forum started acting funny and I forgot that I had to start typing again
155e
Download zip from sourceforge
Upload to server subfolder named 155e
Extract on server
Create new database
Perform vanilla zencart install with demo data
Verify admin and public functionality. No edits or settings customizations or changes from default install.
Only template available for selection is classic responsive (classic green not available as selection)
FTP clone a template fileset after renaming admin folder in the plugin fileset using winscp
Then perform the steps in the previous post.
I can see cloned template folder/files on the server but no database entry is made in the template table (if that is the proper terminology)
Repeat 3 times with same results.
Rick
RixStix (dot) com
aka: ChainWeavers (dot) com
Administrator
Tell staff why this post should be reviewed.