Page 1 of 1

Footer Notification

Posted: Sat Oct 08, 2016 2:14 am
by cutlerycuts
I am currently using an extension for OC 1.5.6.4 of a footer_notification.xml. I've got it to work but for some reason I can't get it to use up the "whole" window like I did with the header_notification.xml. It will only go up to the edge of the footer itself. The header one uses the whole window not just the header length. I don't know if its a stylesheet.css entry that I need to change or modify. If anyone has any ideas, please let me know.
Capture.JPG

footer image - Capture.JPG (10.59 KiB) Viewed 1707 times

PS - I did try to contact the author of the extension but no response.

Re: Footer Notification

Posted: Sat Oct 08, 2016 7:08 am
by IP_CAM
you should better inform us always, what modification you use, and link this mod, also, better show us a site-link, then, possibly, someone may be able to assist.

But if you use the free Mod, just add a </div>, before:
<div id="FooterNotification" style=" background-color:#FF9900;
to make it look like:

Code: Select all

</div><div id="FooterNotification" style=" background-color:#FF9900; z-index:99999;font-size:20px; text-align:center; color:#fff; position:fixed;width:100%;height:28px;bottom:0px;">You are on DEMO site. No orders will be processed!</div>
then, it will probably look like this:
http://www.bigmax.ch/
Ernie

Re: Footer Notification

Posted: Sat Oct 08, 2016 9:16 am
by cutlerycuts
Your suggestion did not work.

Modification is Footer Notification
link: http://www.opencart.com/index.php?route ... tification
Site Link: http://www.cutlerycuts.com/cart

Below is the modification:

<modification>
<id>FooterNotifications</id>
<version>1.0.0</version>
<vqmver>1.0.0</vqmver>
<author>richylh@gmail.com</author>

<file name="catalog/view/theme/default/template/common/footer.tpl">
<operation>
<search position="replace" index="1">
<![CDATA[<body]]>
</search>
<add>
<![CDATA[
<div id="FooterNotifications" style=" background-color:#AA0114; z-index:99999;font-size:20px; text-align:center; color:#fff; position:fixed;width:100%;height:28px;top:0px;">FREE Shipping on U.S. orders over $40 PLUS add any 3 items gets you an extra 10% discount off the entire order!</div>
<body
]]>
</add>
</operation>

</file>
</modification>

Re: Footer Notification

Posted: Sat Oct 08, 2016 4:21 pm
by IP_CAM
You have a screwed up Footer, it does not contain a </body> and no </html> Tag, therefore, it could NOT work ! :'(
And the VqMod itself is written wrongly, there is no such thing as a <body> in a footer section, just a </body>, by default!
---

Code: Select all

<operation>
<search position="replace" index="1">
<![CDATA[<body]]>
</search>
should be:

Code: Select all

<operation>
<search position="replace" index="1">
<![CDATA[</body]]>
</search>
---
DEFAULT OC v.1.5.x Footer:

Code: Select all

<div id="powered"><?php echo $powered; ?></div>
</div>
</body></html>
Your Footer looks like:

Code: Select all

<div id="powered">
<p align="center">
<div style="text-align:center;"><hr />
<p>
<span style="color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; text-align: center; background-color: rgb(248, 248, 248);">© 2016 All Rights Reserved • Cutlery Cuts and Supplies!</span></p>
</div></p>
</div>

</div>
Ernie