Jump to content

Link prestashop 1.4.9 to Google+ page


Recommended Posts

Hello,

 

i'm using prestashop 1.4.9 and trying to link my website to my google+ page but it doesn't work at all.

 

i've see some topics concerning prestashop 1.5 or 1.6 but it doesn't work 1.4.9

 

i can't find where to add the line of code in footer.tlp and header.tlp :

 

 

<a href="https://plus.google.com/104447349318216324****" rel="publisher">Google+</a>

 

if anyone can help me please, thank you.

 

i also paste these 2 files :

 

Footer.tlp :

 

 

{*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.or...ses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2012 PrestaShop SA
*  @version  Release: $Revision: 14008 $
*  @license    http://opensource.or...ses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

        {if !$content_only}
                </div>

<!-- Right -->
                <div id="right_column" class="column">
                    {$HOOK_RIGHT_COLUMN}
                
</div>
            </div>

<!-- Footer -->
            <div id="footer">{$HOOK_FOOTER}</div>
    {/if}
    </body>
</html>
 

 

 

Header.tlp

 

 

{*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.or...ses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2012 PrestaShop SA
*  @version  Release: $Revision: 14008 $
*  @license    http://opensource.or...ses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR...DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">
    <head>
        <title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
        <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
        <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{/if}
        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
        <meta name="generator" content="PrestaShop" />
        <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" />
        <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico?{$img_update_time}" />
        <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico?{$img_update_time}" />
        <script type="text/javascript">
            var baseDir = '{$content_dir}';
            var static_token = '{$static_token}';
            var token = '{$token}';
            var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};
            var priceDisplayMethod = {$priceDisplay};
            var roundMode = {$roundMode};
        </script>
{if isset($css_files)}
    {foreach from=$css_files key=css_uri item=media}
    <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" />
    {/foreach}
{/if}
{if isset($js_files)}
    {foreach from=$js_files item=js_uri}
    <script type="text/javascript" src="{$js_uri}"></script>
    {/foreach}
{/if}
        {$HOOK_HEADER}
</head>
    
    <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}>
    {if !$content_only}
        {if isset($restricted_country_mode) && $restricted_country_mode}
        <div id="restricted-country">
            <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p>
        </div>
        {/if}
        <div id="page">

            <!-- Header -->
            <div id="header">
                <a id="header_logo" href="{$link->getPageLink('index.php')}" title="{$shop_name|escape:'htmlall':'UTF-8'}">
                    <img class="logo" src="{$img_ps_dir}logo.jpg?{$img_update_time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} />
                </a>
                <div id="header_right">
                    {$HOOK_TOP}
                </div>
            </div>

            <div id="columns">
                <!-- Left -->
                <div id="left_column" class="column">
                    {$HOOK_LEFT_COLUMN}
                </div>

                <!-- Center -->
                <div id="center_column">
    {/if}
 

 

 

Link to comment
Share on other sites

Hello and thank you for your help.

 

actually, i pasted footer and header because i did read it can be in one of them.

 

i tried what you said but it didn't work.

 

that's what i did :

 

 

<div id="footer">{$HOOK_FOOTER}<a href="https://plus.google.com/104447349318216324350" rel="publisher">Google+</a></div>

 

 

did i do anything wrong ?

 

thank you

Edited by MD75 (see edit history)
Link to comment
Share on other sites

when i go back on my google+ page to validate it,

i got a message saying, it hasen't been linked :

 

 

Check that the line of code has been added to your site's homepage and that the modified homepage is live on your site. Then try testing again.

Link to comment
Share on other sites

i'm not sure i understood it clearly

 

when you create a google+ page, you can link it to your website

 

to link it, you need to add this line of commande in footer file and then go back to your google+ page to finalize by clicking on "link website" button.

 

but for now, when i click on this button, it shows the message i pasted here

Link to comment
Share on other sites

code that you pasted creates a button to google profile.

when it is applied correctly - it should appear there where you created it.

so, you created it in footer section of your website - it means that it should be visible there when you open your shop front office

it is visible there (in footer section) ?

Link to comment
Share on other sites

read my post. im not asking about if validator works or not, im asking just about this link that you added. it is visible on your front page footer section?

 

 

so, link, button, whatever you added...  is visible in your footer??
Link to comment
Share on other sites

Actually, it's footer file of my prestashop theme but yes, it's visible in the file like this :

 

read my post. im attaching it once again with underlined and bolded most important part

 

Read my post. im not asking about if validator works or not, im asking just about this link that you added. it is visible on your front page footer section?
Link to comment
Share on other sites

no, it's not and i'm not sure it's supposed to be visible because it's only a way to let google make "official" a page google+ of a website.

 

hope you understand what i mean ?

Link to comment
Share on other sites

if it isn't visible - it means:

1) you see cached version of page, so go to adv. parameteres > performance and clear shop cache and recompile theme

2) code was added to wrong file

 

as long as you will not see it, google will not see it too - this is why it spawns problems while you're trying to verify your website with google tools.

 

 

you can try other way.

use module like html box free, install it, then open module configuration page.

from available positions on the left hand side block select "Footer".

then paste your google link to the code window. save changes and try again

Link to comment
Share on other sites

Hello again,

 

just a last question please, i also have a second site on prestashop 1.6

i did same way to link it to google+ page, it worked but i wanted my website link first letter to be in "caps" way on my google+ so i modified it and since then, i can't link it again.

i tried with your module but it still doesn't work

the button google+ appears in both ways

 

any idea ?

 

Thank you

Edited by MD75 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...