Issues with header.tpl update

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeIssues with header.tpl update

This topic has been marked as resolved.

Hi,

Hoping that somebody can shine some light on a problem that i am experiencing. I have just updated header.tpl in order that i might be able to add custom page titles.

website is victoriamaryvintage.com

I have changed the following:

<title><?php echo $title; ?></title>

TO

<title><?php if ($keywords) { echo $keywords; } else { echo $title; } ?></title>

This now throws up an error message on my website as follows:

Notice: Undefined property: Document::$fb_meta in /home/vml82/public_html/catalog/view/theme/shoppica/template/common/header.tpl on line 13

Even when i replace the file with the original this problem still persists.
Can anybody shed any light on what is going on here?
Thanks

January 6, 2012 at 11:39 pm #4961

It seems that you have modified a variable in the header.tpl template or you copied from template of an older version. Open the template and GoTo line 10. You should find the following fragment:

<?php if ($description): ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php endif; ?>
Immediately after it there should be the following line:

<?php echo $this->document->shoppica_fb_meta;  ?>

See if this helps.

Best,
ThemeBurn team

January 10, 2012 at 1:06 pm #5082

Thanks, that did it

January 10, 2012 at 9:59 pm #5093
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.