Forums / Addon Admin Tools / Clone a Template [Support Thread]

Clone a Template [Support Thread]

Views: 46,080

Results 21 to 40 of 108
14 Jul 2016, 1:46 PM
#21
allmart avatar

allmart

Zen Follower

Join Date:
Feb 2016
Location:
Canada
Posts:
192
Plugin Contributions:
0

Clone a Template [Support Thread]

Thanks again for your detailed explanation.

16 Jul 2016, 8:04 PM
#22
zean avatar

zean

Zen Follower

Join Date:
May 2009
Posts:
200
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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

16 Jul 2016, 9:47 PM
#23
zean avatar

zean

Zen Follower

Join Date:
May 2009
Posts:
200
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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

17 Jul 2016, 11:39 AM
#24
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

@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.

25 Jul 2016, 7:22 PM
#25
zean avatar

zean

Zen Follower

Join Date:
May 2009
Posts:
200
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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.

25 Jul 2016, 8:26 PM
#26
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

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.

31 May 2017, 3:17 PM
#27
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

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.

2 Jun 2017, 1:31 PM
#28
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

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

11 Jun 2017, 1:09 PM
#29
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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

11 Jun 2017, 1:38 PM
#30
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

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?

11 Jun 2017, 6:19 PM
#31
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

Oh yes. Save a lot of work

Learning Fast.
Eden Craft Supplies

13 Jun 2017, 12:01 PM
#32
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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

13 Jun 2017, 12:46 PM
#33
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

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?

13 Jun 2017, 9:03 PM
#34
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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

3 Jul 2017, 4:56 AM
#35
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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

3 Jul 2017, 8:33 PM
#36
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

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.

26 Oct 2017, 11:14 PM
#37
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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

27 Oct 2017, 7:52 PM
#38
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

Which Zen Cart version? Please walk me through your installation and cloning procedure.

27 Oct 2017, 10:36 PM
#39
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Clone a Template [Support Thread]

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

28 Oct 2017, 2:23 AM
#40
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Clone a Template [Support Thread]

Thanks, Rick. I'll give this a look tomorrow.