Jump to content

[solved] facebook link not showing on productpage.


Recommended Posts

Hello fellows,

I search for the follow solution, when I go to a product, below there are some customer options like facebook, email a friend and so on.

 

Now, the facebook link don't show up when I click on a product;

I found the follow things when I start chrome dev tools and inspect the element,

but I can't find these settings in any file, I have search in all them.

 

Can anybody help me to understand these, that I can find these property to switch.

I have below included a picture from the case.

 

Thanks in Advance,

Generaal

post-560642-0-61391000-1374344598_thumb.jpg

Link to comment
Share on other sites

Good morning

 

Have you disable the module " Facebook sharing Block " anyway this is the module.

 

In your database it is called " blocksharefb "

 

The .tpl file shows this:

 

<li id="left_share_fb">

<a href="http://www.facebook.com/sharer.php?u={$product_link}&t={$product_title}" class="js-new-window">{l s='Share on Facebook!' mod='blocksharefb'}</a>

</li>

 

Hope this helps

 

Paul

Link to comment
Share on other sites

Hello Paul, Vekia,

I have disabled, install the module in BO.

And turn on again.

The sharefb.tpl, I have them oversee, but I can't find the part in there to change the settings that I showing in the picture, thats my prob, when I disable in chrome dev tools, style element: "disable none", they comes up and the link working. I search the solution, what I see in dev tools, I also can find in the files!

 

Thanks for explaining your vision about it,

Generaal

Link to comment
Share on other sites

Hoi vekia,

I can provide the sharefb.tpl, but they only are avaible in the root module map, not in my theme map under modules, there are only a map and a translation map there.

I don't know if that are the prob.

 

Thnx in advance,

Generaal

 

 

{*

* 2007-2013 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.org/licenses/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-2013 PrestaShop SA

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

<li id="left_share_fb">

<a href="http://www.facebook.com/sharer.php?u={$product_link}&t={$product_title}" class="js-new-window">{l s='Share on Facebook!' mod='blocksharefb'}</a>

</li>

Link to comment
Share on other sites

To explain the situation,

the below picture show the solution, but I can't find the text in any file with: element.style {

  • display: none;

}

 

post-560642-0-14558700-1374408697_thumb.jpg

 

 

I see also in dev tools pointing to the product.css file.

 

Best Regards,

Gerenaal

Link to comment
Share on other sites

oh dear, everything looks fine here.

the problem is probably somewhere else

 

1) turn force compilation and check your website once again

2) if the problem will still occur, it mean that the problem is probably somewhere else, for example in the js scripts

3) it is possible to check your website? if so, please share the url

 

okay i've got url to your website, im hecking it right now

Link to comment
Share on other sites

okay i've got it:

<script type="text/javascript">/* <![CDATA[ */jQuery(document).ready(function(){var header=$("#header");if(header.length>0)
header.after($("#addshoppers_buttons"));var fb=$("#left_share_fb");if(fb.length>0)
fb.hide();});/* ]]> */</script>

 

this is javascript from your header, you've got there: fb.hide()

 

it is related to the addshoppers module

 

can you try to disable it?

Link to comment
Share on other sites

Hello vekia,

 

I have disable your suggestion and its works!!

Well, I don't know how to find something like you pointed in your tread above!

I have also the same prob to finding the solution for send email to a friend, the send button doe's nothing when I click on it.

And even the bookmark link in permenente links don't show up..

But I have for these issues another tread created.

 

Anyway,

I'm thanking you again for you kindly help with some issue's like these!

 

Generaal

Link to comment
Share on other sites

  • 5 months later...

Sorry to bump this thread but I hope I can help abit in the future.

 

The module that is doing this is /modules/addshoppers/header.tpl

 

As vekia has pointed out it got to do with the javascript by addshoppers. The line which is hiding it is in header.tpl:

 

    var fb = $("#left_share_fb");
    if (fb.length > 0)
      fb.hide();
 
If you want to keep addshopper and the facebook module then delete it.
Cheers.
Link to comment
Share on other sites

×
×
  • Create New...