Clone a Template [Support Thread]
I'll be submitting this plugin to the Plugins area for review later today or in the morning (needed the support thread for the readme).
It's an admin tool that allows you to copy all template-override files (and Layout Boxes Controller configuration) for an existing template on your store to another template name. I think it will be especially useful to create "clones" of the Responsive Classic template that's built into Zen Cart 1.5.5.
The plugin is multi-language-aware, so if your store is multi-lingual and the "source" template includes multi-lingual files, they'll all be copied to the newly-minted "target" template.
I will post back here once I've got a download link from the Plugins.
Re: Clone a Template [Support Thread]
Here's the plugin's download link (available once reviewed): https://www.zen-cart.com/downloads.php?do=file&id=2087
Re: Clone a Template [Support Thread]
The plugin is now available for download from the Plugins.
Re: Clone a Template [Support Thread]
Hi. Quick question I hope. I installed this and used it to clone a template in v1.5.5a and now have two templates with the same name in the template selection menu. Where can I change the name of one of those duplicates. The cloner tool did create the second template with the name I picked.
Thanks
Re: Clone a Template [Support Thread]
Haven't tested the pugin, but normally ,that would be on you template_info.php file.
But probably this plugin will do that.
Re: Clone a Template [Support Thread]
@jsteggy and @mesnitu, that's one of the things on my list of to-do's for the plugin (clone its name, too). As mesnitu indicated, you can physically edit the cloned template's template_info.php file so that it is displayed differently from its parent.
Re: Clone a Template [Support Thread]
or create a new template_info with a user defined name...
once I've play around with a clone template, but it was with a bash script. So I needed the template name ...and description , and the admin folder name.
But this will clone the responsive zc155 template, so with the bootstrap, etc.. right ?
Re: Clone a Template [Support Thread]
Yes, this plugin came about when I was cloning the responsive_classic template that is built into Zen Cart 1.5.5 and later.
Re: Clone a Template [Support Thread]
I've just submitted v1.1.0 to the plugins' area for review:
CHANGE: Update the cloned template's template_info file to include user-specified description.
The plugin's admin page now requires a template description; that text is used as the cloned template's "description" within its template_info.php file, allowing the template to be distinguished from its base in the Tools->Template Selection tool.
Re: Clone a Template [Support Thread]
Quote:
Originally Posted by
lat9
I've just submitted v1.1.0 to the plugins' area for review:
CHANGE: Update the cloned template's template_info file to include user-specified description.
The plugin's admin page now requires a template description; that text is used as the cloned template's "description" within its template_info.php file, allowing the template to be distinguished from its base in the Tools->Template Selection tool.
Thanks Lat9,
So far so good, works as intended. I'll update if I find any bugs :)