-1

In OpenCart (1.5.x) the variable <?php echo $content_bottom; ?> spits out much content including this message:

Welcome to My Site
Welcome to MySite.com, a company dedicated in giving you the best service while offering you the finest products – from genuine laptop batteries, laptop ac adapters/chargers, to LCD monitors – that are 100% genuine and proven to be of high quality that ensure you nothing but the best performance needed in order to give you the greatest satisfaction possible.

I want the variable only to remove that message only and continue to spit the rest of the information out (without removing whole contents)

4

1 回答 1

0

只需打开您的search.tpl(我认为这就是我在网上找到您的真实网站时所在的位置)

/catalog/view/theme/default/template/product/search.tpl

查找<?php echo $content_bottom; ?>并替换为:

<?
$my_message="<p>Welcome to My Site, Welcome to MySite.com, a company dedicated in giving you the best service while offering you the finest products – from genuine laptop batteries, laptop ac adapters/chargers, to LCD monitors – that are 100% genuine and proven to be of high quality that ensure you nothing but the best performance needed in order to give you the greatest satisfaction possible.</p>"
$spitFooter=str_replace($my_message, "", $content_bottom);
echo $spitFooter;
?>
于 2012-07-25T21:41:32.607 回答