Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Des Moines, Iowa USA
    Plugin Contributions

    Default Facebook Like Link

    I have been reading on how to add a link to facebook of products and have gotten confused.
    Website :
    The facebook LINK in the header is working great but I am going to add the Facebook LIKE in the product pages.

    Found this tutorial which was quite straight forward and the Like button is there but it does not appear to do anything? Suggestions PLEASE??

    I wrote a tutorial about this:

    How to Add a Facebook Like Button to Your Zen Cart Product Pages



  2. #2
    Join Date
    Feb 2005
    Lansing, Michigan USA
    Plugin Contributions

  3. #3
    Join Date
    Jun 2009
    Des Moines, Iowa USA
    Plugin Contributions

    Default Re: Facebook Like Link


    Add a Facebook Like Button to Your Product Pages

    If you are not already aggressively marketing your business on Facebook you should be. According to Facebook has over 25% of internet traffic in the U.S. and is the most downloaded app of all time. In this tutorial, I will show you step by step how to install a Facebook like button into your zen cart product pages so. For demo purposes I will be adding the button to my Andover Modern free zen cart template which you can download here.

    1. In your favorite plain text editor open includes/templates/your-custom-template-directory/templates/tpl_product_info_display.php. If the file is not there, create an override for it by copying includes/templates/template_default/templates/tpl_product_info_display.php to includes/templates/your-custom-template-directory/templates/tpl_product_info_display.php.

    2. Find the place in the file where you want the button to show and add this code:

    <iframe src="<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:40px"></iframe>

    I think that the best place to put it is under the product title. If you want to add your Facebook Like button under the product title, add the like button code directly after this:

    <!--bof Product Name-->
    <h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
    <!--eof Product Name-->

  4. #4
    Join Date
    Aug 2007
    Gijón, Asturias, Spain
    Plugin Contributions

    Default Facebook Like and Share Buttons

    So, in 2023, there are two methods, Javascript SDK method and iFrame:

    I'm trying to display Like and Share buttons and having a very frustrating experience.

    I've concluded that for the buttons to display
    - the user needs to have accepted the Facebook essential cookies
    - the user needs to be logged into Facebook
    - tracking settings in the browser may need to adjusted

    And being in europe may also influence it (GDPR) but I find no specific setting to deal with that...I assume it is in the initial cookie acceptance.

    I find that with two facebook accounts, logged in from the same browser/pc/country: buttons are displayed for one user but not the other.
    Maybe that's related to the previous point, but I can't find anything.

    PITA#2, when Like and Share buttons are actually displayed.
    - SHARE works correctly opening a dialogue box with image...yesterday. Today it loaded no images, until the evening, with no code changes in-between. More flaky.

    - LIKE. When clicked, I get a broken image and a console error of

    crome-error://chromewebdata/:1 Refused to display '' in a frame because it set 'X-Frame-Options' to 'deny'.

    in Chrome and Firefox. After a day on Stackoverflow and YouTube, I can't find anything that solves this.

    Results are the same with both methods, local or on hosting, with or without an appID, in Zen Cart or on a blank page, using urls of the source page or of the facebook page.

    Some idle hands here may go looking for a solution. Don't. Been there, done that.

    This is only a last-resort post in case anyone has had this problem and solved it/also given up.
    Steve Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...



Similar Threads

  1. v139h Facebook like addon weird appearance on facebook activity
    By navido in forum General Questions
    Replies: 0
    Last Post: 7 Sep 2014, 06:34 PM
  2. v151 facebook like button
    By ken1 in forum General Questions
    Replies: 0
    Last Post: 14 May 2014, 07:03 PM
  3. v151 facebook scraper/google linter can't find my urls with Numinix Facebook Like
    By flernebunu in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 Mar 2013, 11:25 AM
  4. Facebook like
    By SethF in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 1 Oct 2011, 09:10 PM
  5. Facebook Like?
    By JSY SH466Y in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Apr 2011, 02:12 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Zen-Cart, Internet Selling Services, Klamath Falls, OR