Forums / Templates, Stylesheets, Page Layout / how to customize the disclaimer on the footer?

how to customize the disclaimer on the footer?

Views: 1,100

Results 1 to 7 of 7
26 Aug 2014, 3:21 AM
#1
littlecry avatar

littlecry

New Zenner

Join Date:
Aug 2014
Posts:
4
Plugin Contributions:
0

how to customize the disclaimer on the footer?

Attachment 14451

Hi everyone,

i have a question about how to add a disclaimer on the footer,
i download the disclaimer add-on from this forum and ftp those files to my sever,
but looks like something going wrong, i have attached a picture in this post,
i don't know why the banner and home button on the header now also show on the footer,
and i do not know how to remove the "TEXT_PRODUCTS_DISCLAIMER" on the right bottom of the footer,

my site: https://www.vitawise.ca

anyone can help? Thank you very much!!!!!

and i also copy the code from the tpl_footer.php file on the server:

<?php /** * Common Template - tpl_footer.php * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 ********************************************************************** *This program is distributed in the hope that it will be useful, but *WITHOUT ANY WARRANTY; without even the implied warranty of *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ********************************************************************** * @version $Id: tpl_footer.php 4821 2006-10-23 10:54:15Z drbyte $ */ require(DIR_WS_MODULES . zen_get_module_directory('footer.php')); ?> <?php if (!isset($flag_disable_footer) || !$flag_disable_footer) { ?> <!--bof-navigation display --> <div id="navSuppWrapper"> <div id="navSupp"> <ul> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li> <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?> <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li> <?php } ?> </ul> </div> </div> <!--eof-navigation display --> <!--bof-ip address display --> <?php if (SHOW_FOOTER_IP == '1') { ?> <div id="siteinfoIP"><?php echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></div> <?php } ?> <!--eof-ip address display --> <!--bof-banner #5 display --> <?php if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerFive" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> <!--eof-banner #5 display --> <b>Information and statements regarding health products mentioned on this website have not been evaluated by Health Canada and are not intended to diagnose, treat, cure, or prevent any disease. VitaWise.ca does not guarantee the accuracy, completeness, timeliness, or usefulness of any medical or health information posted or otherwise available on or through access to this website. Information on this website is provided for informational purposes only and is not intended as a substitute for advice from your healthcare practitioner or any other medical professional. <br /> Products information is obtained from the manufacturer’s advertising materials. VitaWise.ca is not responsible for any statements or claims from those manufacturers advertising materials. </b><br /> <!--bof- product disclaimer display CLJ 11/15/2008 --> <div id="disclaimer"><?php echo TEXT_PRODUCTS_DISCLAIMER ; ?> </div> <!--eof- product disclaimer display CLJ 11/15/2008--> <!--bof- site copyright display --> <div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div> <!--eof- site copyright display --> <?php } // flag_disable_footer ?>
26 Aug 2014, 9:21 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: how to customize the disclaimer on the footer?

  1. TEXT_PRODUCTS_DISCLAIMER : you may have omitted uploading a language file. Suggest to re-check that this language file has actually been uploaded (compare to plugin files) - OR- you have omitted to rename includes/languages/english/extra_definitions/YOUR_TEMPLATE to match the name of your template

  2. remove Home : delete this entire line from your tpl_footer.php file:

<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
  1. remove Free Shipping image: You should be able to remove that banner in Admin > Tools > Banner Manager

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Aug 2014, 3:08 AM
#3
littlecry avatar

littlecry

New Zenner

Join Date:
Aug 2014
Posts:
4
Plugin Contributions:
0

Re: how to customize the disclaimer on the footer?

Thank you Frank18, it works! Thanks again!

frank18:

  1. TEXT_PRODUCTS_DISCLAIMER : you may have omitted uploading a language file. Suggest to re-check that this language file has actually been uploaded (compare to plugin files) - OR- you have omitted to rename includes/languages/english/extra_definitions/YOUR_TEMPLATE to match the name of your template

  2. remove Home : delete this entire line from your tpl_footer.php file:

  3. remove Free Shipping image: You should be able to remove that banner in Admin > Tools > Banner Manager

27 Aug 2014, 4:36 AM
#4
littlecry avatar

littlecry

New Zenner

Join Date:
Aug 2014
Posts:
4
Plugin Contributions:
0

Re: how to customize the disclaimer on the footer?

sorry...looks like something is still going wrong, i cannot change the content, please see the attached picture...i don't know what is going wrong...

my site: https://www.vitawise.ca

Attachment 14461

i copy my code here:

define('TEXT_PRODUCTS_DISCLAIMER', '<strong>Disclaimer: </strong>Information and statements regarding health products mentioned on this website have not been evaluated by Health Canada and are not intended to diagnose, treat, cure, or prevent any disease. VitaWise.ca does not guarantee the accuracy, completeness, timeliness, or usefulness of any medical or health information posted or otherwise available on or through access to this website. Information on this website is provided for informational purposes only and is not intended as a substitute for advice from your healthcare practitioner or any other medical professional. Products information is obtained from the manufacturer’s advertising materials. VitaWise.ca is not responsible for any statements or claims from those manufacturers advertising materials. Please use products as directed. <strong>' . STORE_NAME . '</strong> is not responsible for misuse of products. <br />Thank you for your attention,<code>and thank you for your business!</code>');
//EOF

27 Aug 2014, 7:15 AM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: how to customize the disclaimer on the footer?

littlecry:

sorry...looks like something is still going wrong, i cannot change the content, please see the attached picture...i don't know what is going wrong...

my site: www.vitawise.ca

Attachment 14461

i copy my code here:

define('TEXT_PRODUCTS_DISCLAIMER', '<strong>Disclaimer: </strong>Information and statements regarding health products mentioned on this website have not been evaluated by Health Canada and are not intended to diagnose, treat, cure, or prevent any disease. VitaWise.ca does not guarantee the accuracy, completeness, timeliness, or usefulness of any medical or health information posted or otherwise available on or through access to this website. Information on this website is provided for informational purposes only and is not intended as a substitute for advice from your healthcare practitioner or any other medical professional. Products information is obtained from the manufacturer’s advertising materials. VitaWise.ca is not responsible for any statements or claims from those manufacturers advertising materials. Please use products as directed. <strong>' . STORE_NAME . '</strong> is not responsible for misuse of products. <br />Thank you for your attention,<code>and thank you for your business!</code>');
//EOF

In the file includes/languages/english/extra_definitions/YOUR_TEMPLATE/products_disclaimer.php

replace

define('TEXT_PRODUCTS_DISCLAIMER', '<strong>Disclaimer: </strong>Please use products as directed. <strong>' . STORE_NAME . '</strong> is not responsible for misuse of products. <br />This content is located in the file at: <code>includes/languages/english/extra_definitions/YOUR_TEMPLATE/products_disclaimer.php</code>'); 
//EOF

with

define('TEXT_PRODUCTS_DISCLAIMER', '<strong>Disclaimer: </strong>Please use products as directed. <strong>' . STORE_NAME . '</strong> is not responsible for misuse of products. <br /><br />Information and statements regarding health products mentioned on this website have not been evaluated by Health Canada and are not intended to diagnose, treat, cure, or prevent any disease. VitaWise.ca does not guarantee the accuracy, completeness, timeliness, or usefulness of any medical or health information posted or otherwise available on or through access to this website. Information on this website is provided for informational purposes only and is not intended as a substitute for advice from your healthcare practitioner or any other medical professional. Products information is obtained from the manufacturer’s advertising materials. VitaWise.Ca is not responsible for any statements or claims from those manufacturers advertising materials.'); 
//EOF

This file should be saved as products_disclaimer.php and should be uploaded to the folder includes/languages/english/extra_definitions/YOUR_TEMPLATE (rename YOUR_TEMPLATE with the name of your installed template)

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

29 Aug 2014, 3:54 PM
#6
littlecry avatar

littlecry

New Zenner

Join Date:
Aug 2014
Posts:
4
Plugin Contributions:
0

Re: how to customize the disclaimer on the footer?

Thank you for your replay and patience Frank18, but it's still not working...i changed the php code as your posted,

my site: https://www.vitawise.ca

define('TEXT_PRODUCTS_DISCLAIMER', '<strong>Disclaimer: </strong>Please use products as directed. <strong>' . STORE_NAME . '</strong> is not responsible for misuse of products. <br /><br />Information and statements regarding health products mentioned on this website have not been evaluated by Health Canada and are not intended to diagnose, treat, cure, or prevent any disease. VitaWise.ca does not guarantee the accuracy, completeness, timeliness, or usefulness of any medical or health information posted or otherwise available on or through access to this website. Information on this website is provided for informational purposes only and is not intended as a substitute for advice from your healthcare practitioner or any other medical professional. Products information is obtained from the manufacturer’s advertising materials. VitaWise.Ca is not responsible for any statements or claims from those manufacturers advertising materials.'); 
//EOF 

i still cannot change the content, i just add the content on tpl_footer.php,

<!--eof-banner #5 display -->
<b>Information and statements regarding health products mentioned on this website have not been evaluated by Health Canada and are not intended to diagnose, treat, cure, or prevent any disease. VitaWise.ca does not guarantee the accuracy, completeness, timeliness, or usefulness of any medical or health information posted or otherwise available on or through access to this website. Information on this website is provided for informational purposes only and is not intended as a substitute for advice from your healthcare practitioner or any other medical professional. Products information is obtained from the manufacturer’s advertising materials. VitaWise.Ca is not responsible for any statements or claims from those manufacturers advertising materials. </b>

<!--bof- product disclaimer display CLJ 11/15/2008 -->
<div id="disclaimer"><?php echo TEXT_PRODUCTS_DISCLAIMER; ?>
</div>
<!--eof- product disclaimer display CLJ 11/15/2008-->

<!--bof- site copyright display -->
<div id="siteinfoLegal" class="legalCopyright"><?php echo FOOTER_TEXT_BODY; ?></div>
<!--eof- site copyright display -->

<?php
} // flag_disable_footer
?>

i don't know why"This content is located in the file at: includes/languages/english/extra_definitions/YOUR_TEMPLATE/products_disclaimer.php" still there?

Thank you again!

30 Aug 2014, 11:22 AM
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: how to customize the disclaimer on the footer?

Ok, let's do this step by step.

Please post the entire content of the file

includes/languages/english/extra_definitions/theme484/products_disclaimer.php

Cheers / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.