Oh wow,
that works a treat, thanks so much Andy and Vince

------------------------------------------------
For other ECT Users who may want to add the
Vacation Message to other store pages, here is the method I used.
(1) Create a file named [maroon]vacation-message.php[/maroon] containing this code:
[font=Courier New]<?php $result=ect_query('SELECT onvacation,vacationmessage FROM admin WHERE adminID=1') or ect_error();
if($rs=ect_fetch_assoc($result)){
if($rs['onvacation']!=0){
print '<div class="[purple]ectwarning[/purple]">' . $rs['vacationmessage'] . '</div>';
}} ?>[/font=Courier New]
(2) On [maroon]index.php[/maroon], or any other store pages whatsoever, inside [purple]<body>[/purple] (and whatever div) at the exact position where you want the
Vacation Message to appear (when activated), add this code:[code]
<?php [green]include_once[/green]("[maroon]vacation-message.php[/maroon]") ?>[/code](3) Upload those 2 files to server and test.
------------------------------------------------
Vince, can I respectfully suggest that in the [maroon]inccart.php[/maroon] file at Line 5809, [red]we don't want the red inline styling code[/red] at all:[code]print '<div class="[purple]
ectwarning[/purple]" [red]style="text-align:center;font-size:1.3em;padding:16px"[/red]>';[/code]Because we can apply all the CSS styles we like to div.[purple]ectwarning[/purple]
And under
Main Settings where we enter the
Vacation Message, we can use whatever inline CSS styling desired there as well, like:
[font=Courier New]<p style="font-size: 110%"><strong>Our store is closed for the Christmas and New Year Break</strong>.</p>
<p>We will be open for business again on Monday 4th January.</p>[/font=Courier New]
Thanks once again for your wonderful support !
Gary
[img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]