Re: Clone a Template [Support Thread]
v2.0.0 of "Clone a Template" is now available in the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2087
This release (supporting zc158 and later) contains changes associated with the following GitHub issues:
#6: Turn this into a Zen Cart encapsulated plugin.
#8: Declare all class properties (PHP 8.2+ requirement).
#9: Use admin_html_head.php for css/js loading and zc158 language-file naming conventions.
#13: Retain source template's additional 'soft' configuration settings when cloning.
Re: Clone a Template [Support Thread]
I have a clean copy of 1.5.8a on local server with XAMPP/PHP8.2.
I have installed the Bootstrap template but it will not show up on Clone a Template at all. I have followed all the steps listed and am a bit concerned I have done something wrong.
Re: Clone a Template [Support Thread]
Yes, the documentation's not very clear on this. For a template to show, it must be (a) installed and (b) have its sidebox configuration previously set with Tools :: Layout Boxes Controller.
Re: Clone a Template [Support Thread]
Thank you! I was holding off making any major changes as I wanted to clone the original first. I saw references to this and thought I had done this already. Right after I read this, I noticed that neither side boxes work. Cheers!
Chris
Re: Clone a Template [Support Thread]
Quote:
Originally Posted by
g2ktcf
Thank you! I was holding off making any major changes as I wanted to clone the original first. I saw references to this and thought I had done this already. Right after I read this, I noticed that neither side boxes work. Cheers!
Chris
:thumbsup:
Re: Clone a Template [Support Thread]
I must have messed up or something is going on.
I am slowly trying to update my site to ZC 2.0.1
Fresh install of ZC 2.0.1 with lastest bootstrap template.
After I clone the bootstrap template , named bootstrap copy, all my sideboxes get duplicated . I get 2 set of sideboxes in the layout controller as well.
If i switch back to Bootstrap template, the duplicated sideboxes are gone.
What am i doing wrong?
Thank you
Re: Clone a Template [Support Thread]
bootstrap copy, with that space? I thought I'd disallowed any characters other than alphabetic, numeric and underscores.
Re: Clone a Template [Support Thread]
woops. The actual name is bootstrap_copy
Re: Clone a Template [Support Thread]
Quote:
Originally Posted by
nicksab
woops. The actual name is bootstrap_copy
I'm guessing that that could be the Layout Controller itself, getting confused by the difference between bootstrap and bootstrap_copy. FWIW, I normally name my clones of the Bootstrap template something like xxx_bs4 and I've never had such an issue.
Re: Clone a Template [Support Thread]
just installed this module, i see it in the plugins page but when i click on install i get a http 500 and checking logs i see the following error....
Code:
--> PHP Fatal error: Uncaught Error: Undefined constant "Zencart\ViewBuilders\TEXT_NEW_PLUGIN_DOWNLOAD_AVAILABLE" in /includes/classes/ViewBuilders/PluginManagerController.php:42
i assume i installed it incorrectly? i uploaded the contents of zc_plugins to zc_plugins and wondering if i misunderstood the instructions perhaps?? Also after reading the support thread so far i believe my understanding is that it won't work for any template and is just for responsive/bootstrap templates ie i cannot easily clone my wokiee template??