Post by 528491 » Mon Mar 14, 2016 3:46 am

Hello,
I need help in enabling certain parts of "Maintenance mode" page to be visible and/or functional, that is, to work as if the regular home page was showing.

Specifically I need on maintenance page:
  • a working link to the contact form (maintenance mode makes all links on the page loop to the current maintenance page)
  • the image slider to be visible
I added code from the common/home.tpl file to the common/maintenance.tpl file yet the browser puts out "Undefined variable: column_left" (etc.) errors. I would be thankful if someone guided me in the right direction.

New member

Posts

Joined
Tue Apr 02, 2013 6:05 pm

Post by IP_CAM » Mon Mar 14, 2016 11:55 am

Just try something like this, 'internal' Module access seems not possible in this Modus.
http://www.bigmax.ch/cart/index.php?route=common/home
I did not even check, if the stylesheet section is required, possibly not all of it!
Just play around with it, you cannot break anything ! But all internal MODULE-Activity will
probably not work, at least, I was unable, to make something going, after creating a
Maintenance Layout. But I only played around a few minutes, so, I just don't know... ;)
Good Luck ;)
Ernie

PS: And, generally, you cannot just take something out of a File, containing 'Definitions/Variables/Values', and
make them work in other places. Such Code - 'Existence' always has to defined/declared, mostly in controller/language/model - files, placed in Sections, named/related to whatever whereever it is 'planned' to 'show off'. Because of Security, they say, 'Globally set Variables' are out of 'style', in most modern Software, to a large extend, but it makes it much more complicated to handle, not only for the hackers :-\ :D

File: maintennance.tpl

Code: Select all

<?php echo $header; ?>
<div class="container">

<style type="text/css">
#container {
	background: #FFFFFF;
	text-align:center;
	width: 90%;
	-webkit-border-radius: 7px 7px 7px 7px;
	-moz-border-radius: 7px 7px 7px 7px;
	-khtml-border-radius: 7px 7px 7px 7px;
	border-radius: 7px 7px 7px 7px;
	-webkit-box-shadow: 1px 1px 2px 2px #DDDDDD;
	-moz-box-shadow: 1px 1px 2px 2px #DDDDDD;
	box-shadow: 1px 1px 2px 2px #DDDDDD;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 10px;
	padding-right: 10px; 
	margin-top: 20px;
	margin-bottom:20px;
	margin-left: 15px;
	margin-right: 15px;
	line-height: 20px;
}
.box {
	padding: 6px 4px 6px 4px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: bold;
	line-height: 14px;
	color: #333;
}
.box a {
	color: #F40000;
	font-weight: bold;
	font-size: 15px;
	text-decoration: none;
}
.price {
	text-decoration: none;
	font-family: Verdana, sans-serif;
	font-weight: bold;
	font-size: 16px;
	color: #333333;
}
.description {
	font-family: Verdana, sans-serif;
	color: #2D2D2D;
	text-decoration: none;
}
.button {
	text-align:center;
	width: 140px;
	-webkit-border-radius: 7px 7px 7px 7px;
	-moz-border-radius: 7px 7px 7px 7px;
	-khtml-border-radius: 7px 7px 7px 7px;
	border-radius: 7px 7px 7px 7px;
	-webkit-box-shadow: 1px 1px 2px 2px #DDDDDD;
	-moz-box-shadow: 1px 1px 2px 2px #DDDDDD;
	box-shadow: 1px 1px 2px 2px #DDDDDD;
	padding-top: 6px;
	padding-bottom: 6px;
	padding-left: 10px;
	padding-right: 10px; 
	background: #CDCDCD;
	border: 1px solid #EEEEEE;
     text-decoration: none;
	color: #F20000;
	line-height: 60px;
	font-family: Verdana, sans-serif;
	font-size: 20px;
	font-weight: bold;
}
</style>

<div class="center">
<table style="border-collapse:collapse;text-align:center;" border="0" width="100%" id="AutoNumber1">
<tr>
<td width="33%" style="class="center">
<div id="container">
<div class="box">
<a href="http://www.openshop.li/shop/index.php?route=product/product&path=25&product_id=499">
<img src="http://images.openshop.li/shop/image/cache/data/demo/skelerodbg-200x200.jpg" title="Abstract modes procedure" alt="Abstract modes procedure" height="200" width="200"></a></br />
<a href="http://www.openshop.li/shop/index.php?route=product/product&path=25&product_id=499">Authentische logischer</a></div>
<div class="description">Tacimates 1945 type advancements faculties billion connecting</div>
<div class="price">Fr. 513.00</div>
<a class="button" href="http://www.openshop.li/shop/index.php?route=product/product&path=25&product_id=499">See Product</a>
</div>
</td>

<!-- CENTER Section  -->
<td width="34% style="class="center">
<div id="container">
The Shop is closed right now. Please click on one of the Images, to continue.
</div>
</td>
<!-- END OF CENTER Section  -->

<td width="33%" style="class="center">
<div id="container">
<div class="box">
<a href="http://www.openshop.li/shop/index.php?route=product/product&path=25&product_id=4644">
<img src="http://images.openshop.li/shop/image/cache/data/demo/619348714_Big-540x540-200x200.jpg" title="Abstract modes procedure" alt="Abstract modes procedure" height="200" width="200"></a><br />
<a href="http://www.openshop.li/shop/index.php?route=product/product&path=25&product_id=4644">Needs notwendigkeit</a></div>
<div class="description">Tacimates 1945 type advancements faculties billion connecting</div>
<div class="price">Fr. 513.00</div>
<a class="button" href="http://www.openshop.li/shop/index.php?route=product/product&path=25&product_id=4644">See Product</a>
</div>
</td>
</tr>
</table>
</center>
</div></div>
<?php echo $footer; ?>

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by grgr » Mon Mar 14, 2016 5:38 pm

Apologies up front for what is about to be some shameless self advertising but, from what you are aksing for it sounds like you intend to have the maintenance page active for extended periods which I would argue may not be the best thing to do.

That is why I did my close store extension - so I could go away but leave the store essentially functioning.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by 528491 » Fri Mar 18, 2016 1:16 am

IP_CAM wrote:Just try something like this, 'internal' Module access seems not possible in this Modus.
Thanks for the reply. I was hoping for something more dynamic than simply writing down 'dummy' html copy of the page, because I need certain functionalities to still be functional, like switching between languages, the contact form etc. But thank you for the input.

New member

Posts

Joined
Tue Apr 02, 2013 6:05 pm

Post by 528491 » Fri Mar 18, 2016 1:24 am

grgr wrote:Apologies up front for what is about to be some shameless self advertising but, from what you are aksing for it sounds like you intend to have the maintenance page active for extended periods which I would argue may not be the best thing to do.

That is why I did my close store extension - so I could go away but leave the store essentially functioning.
Np about the advertising. I checked your extension, however I am not sure will I be able to pull off what I need with it, since I am using Opencart 2.0.1.0.
I just need to be able to switch on/off certain parts of the maintainance.tpl and leave some of the links functional (like contact form for example).

I hope someone will know to point me into right direction, until then I guess I will use some kind of Wordpress mini-site for the time being.

New member

Posts

Joined
Tue Apr 02, 2013 6:05 pm
Who is online

Users browsing this forum: No registered users and 8 guests