Vote to Improve PrestaShop

PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

 
Photo

[solved] facebook link not showing on productpage.


  • Please log in to reply
11 replies to this topic
Generaal

    PrestaShop Apprentice

  • Members
  • PipPip
  • 238 posts

Posted 20 July 2013 - 07:25 PM

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
Attached File  20-07-2013 19-30-54.jpg   207.98KB   23 downloads

Paulito

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2109 posts

Posted 20 July 2013 - 07:36 PM

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}&amp;t={$product_title}" class="js-new-window">{l s='Share on Facebook!' mod='blocksharefb'}</a>
</li>

Hope this helps

Paul

It is better to give more than you receive

vibestore.co.uk under construction


vekia

    PrestaShop Legend

  • US Moderators
  • 44635 posts

Posted 20 July 2013 - 10:29 PM

you can also check the template files, maybe there is the module .tpl file
if so - then you have to change it, not file from original module dir

free tutorials, free templates, free addons, prestashop modules MndfRK4.png


Generaal

    PrestaShop Apprentice

  • Members
  • PipPip
  • 238 posts

Posted 21 July 2013 - 08:53 AM

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

vekia

    PrestaShop Legend

  • US Moderators
  • 44635 posts

Posted 21 July 2013 - 11:44 AM

can you show the source of the file? it will be really helpfull

free tutorials, free templates, free addons, prestashop modules MndfRK4.png


Generaal

    PrestaShop Apprentice

  • Members
  • PipPip
  • 238 posts

Posted 21 July 2013 - 12:50 PM

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.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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.or...ses/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}&amp;t={$product_title}" class="js-new-window">{l s='Share on Facebook!' mod='blocksharefb'}</a>
</li>

Generaal

    PrestaShop Apprentice

  • Members
  • PipPip
  • 238 posts

Posted 21 July 2013 - 01:12 PM

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;
}

Attached File  21-07-2013 13-59-18.jpg   305.43KB   7 downloads


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

Best Regards,
Gerenaal

vekia

    PrestaShop Legend

  • US Moderators
  • 44635 posts

Posted 21 July 2013 - 01:15 PM

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

free tutorials, free templates, free addons, prestashop modules MndfRK4.png


vekia

    PrestaShop Legend

  • US Moderators
  • 44635 posts

Posted 21 July 2013 - 01:20 PM

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?

free tutorials, free templates, free addons, prestashop modules MndfRK4.png


Generaal

    PrestaShop Apprentice

  • Members
  • PipPip
  • 238 posts

Posted 21 July 2013 - 03:31 PM

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

vekia

    PrestaShop Legend

  • US Moderators
  • 44635 posts

Posted 21 July 2013 - 05:31 PM

thanks for information that it works
i will definitely check your other threads too

thread marked as [solved]

regards

free tutorials, free templates, free addons, prestashop modules MndfRK4.png


samuel89

    PrestaShop Apprentice

  • Members
  • PipPip
  • 55 posts

Posted 30 December 2013 - 08:16 AM

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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users