Page 1 of 1
Open Hours 2.0 (Solved)
Posted: Tue Jan 20, 2015 2:21 am
by brasseurs
Hi Dear comunity!
I have recently install this extension but I didn't receive any answer from the developer...
This is the result:
https://www.brasseursartisans.com/index ... on/contact
And I would like to make the background of extension white like the box with the contact informations.
Can you help me?
Thanks!
P.S. I think the contact form doesn't working since I have installed this extension.But I'm receiving all notification about new customer and new order...
Re: Open Hours 2.0
Posted: Tue Jan 20, 2015 9:28 pm
by MackieeE
As for the Opening hours box.. that seems more like an CSS Issue to me?
Add a class to the box-content the opening hours are contained within, and name it, .opening-hours:
Code: Select all
.opening-hours {
overflow: auto;
padding: 5px 20px 19px 18px;
margin-bottom: 10px;
background-color: #fff;
border: 1px solid #DBDBDB;
border-radius: 5px;
position: relative;
top: 7px;
}
Which should produce a box like:

Re: Open Hours 2.0
Posted: Wed Jan 21, 2015 2:51 am
by brasseurs
Hi MackieeE!
Thanks for your fast answer!
The only file for the Open Hours 2.0 is opening_hours.tpl
But I don't really know how make the change, I have tried to add the class but no changes.
This is the code:
Code: Select all
<div class="box">
<div class="box-heading"><?php echo $heading_title; ?></div>
<div class="box-content">
<table cellspacing-right="4" width="100%">
<tbody >
<?php if($show_notes == 1) : { ?>
<tr>
<td align="center" colspan="2"><?php echo $notes; ?></td>
</tr>
<?php } endif; ?>
<?php
foreach( $day_times as $key => $value){ ?>
<tr>
<td valign="top" <?php echo $highlight_today && $key == $today ? 'style="' .$highlight_style. '"' : ''; ?>><?php echo $key; ?></td>
<td valign="top" <?php echo $highlight_today && $key == $today ? 'style="' .$highlight_style. '"' : ''; ?>><?php echo $value; ?></td>
</tr>
<?php } ?>
<?php if($show_notes == 2) : { ?>
<tr>
<td align="center" colspan="2"><br /><?php echo $notes; ?></td>
</tr>
<?php } endif; ?>
</tbody>
</table>
</div>
</div>
Re: Open Hours 2.0
Posted: Mon Jan 26, 2015 8:09 am
by brasseurs
There is one person who can help me?
Thanks
Re: Open Hours 2.0
Posted: Mon Jan 26, 2015 1:23 pm
by fido-x
Add the above-provided class to your stylesheet. Then, in your template file change:
to:
Code: Select all
<div class="box-content opening-hours">
Something to keep in mind for future posts - this is a support area for OpenCart version 2 and you are using OpenCart 1.5.x. Please post any further issues in the correct forum area. You might even get a quicker answer.
Re: Open Hours 2.0
Posted: Mon Jan 26, 2015 8:06 pm
by brasseurs
Hi Fido-x!
Thanks you a lot (again) for your help!
The code work perfectly!
Very great help!
Thank you!
Brasseurs