Page 7 of 12 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 115
  1. #61
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Facebook "Like" button on every product page?

    I added the code and got the Like button to appear but for some reason it's using the last image on the product_info page which is usually from the "customers also purchased" section. This only happens when you post a comment when adding a Like. Anyone else get this behavior? Any ideas?

    Zen Cart and it's community are the best!!

  2. #62
    Join Date
    Sep 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: Facebook "Like" button on every product page?

    Hey everyone,

    great addition, hopefully a quick question for everyone:

    When I click the like button my facebook feed reads: "Rowan likes test product [1.1] - $0.90 : Zen Cart!, The Art of E-commerce."

    I've edited the meta_tags php file, but I can't seem to shake this tag.

    Store link

    I'm currently running v1.3.9f, pureblue template, canada post module, and lightbox module

    Any advice would be greatly appreciated.

  3. #63
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Facebook "Like" button on every product page?

    Quote Originally Posted by zoAr View Post
    Hey everyone,

    great addition, hopefully a quick question for everyone:

    When I click the like button my facebook feed reads: "Rowan likes test product [1.1] - $0.90 : Zen Cart!, The Art of E-commerce."

    I've edited the meta_tags php file, but I can't seem to shake this tag.

    Store link

    I'm currently running v1.3.9f, pureblue template, canada post module, and lightbox module

    Any advice would be greatly appreciated.
    Working for me, just liked it and saw your pony meta tag and not the stock zc tag. Interestingly, I did not get the image showing even if I added a comment(see my above post). So it's all good for your site, you have to remember to clear the browser cache and page cookies sometimes to see changes.

    Zen Cart and it's community are the best!!

  4. #64
    Join Date
    Nov 2007
    Location
    UK
    Posts
    102
    Plugin Contributions
    0

    Default Re: Facebook "Like" button on every product page?

    I'm really impressed with this as it's worked well when you click the share (to facebook) button, but if I click the like button it doesn't show up on my list of likes in facebook. Is there a slight delay on it?

  5. #65
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Default Re: Facebook "Like" button on every product page?

    Quote Originally Posted by BlessIsaacola View Post
    Can you please kindly post the instruction/code for implementing the XFBML version of the Like button? Thanks!
    Me Too Me Too
    Also the "Share" button you use.
    Newest Site: ChargerPros - Stuff4Toys

  6. #66
    Join Date
    Jun 2006
    Posts
    783
    Plugin Contributions
    0

    Default Re: Facebook "Like" button on every product page?

    ver 1.3.9c

    Well my Facebook LIKE button has worked fine for the past several months. But, within the last week or 2 , when I hit it, I login to FB, but it does NOT post to my FB Wall.

    See here on any product page, please try and see if you have success.
    http://www.cvtreasures.com

  7. #67
    Join Date
    Sep 2007
    Posts
    65
    Plugin Contributions
    0

    Default Re: Facebook "Like" button on every product page?

    Hey there,

    referring to post #29, hey_you talks about a method of controlling the image that is displayed on the facebook page after a 'like' button is clicked. I've tried this method but cannot get it to work. Has anyone else got it to work or found another way of doing it?

    Thanks.
    store.theebooksale.com

  8. #68
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Facebook "Like" button on every product page?

    Quote Originally Posted by ballyc27 View Post
    Hey there,

    referring to post #29, hey_you talks about a method of controlling the image that is displayed on the facebook page after a 'like' button is clicked. I've tried this method but cannot get it to work. Has anyone else got it to work or found another way of doing it?

    Thanks.
    store.theebooksale.com
    On my site I just created a file called jscript_fbimage.php with the following code inside

    Code:
    <?php
      /**
       * Add "image_src" link to <head> section for current product's image
       */
      $sql = "select p.products_id, p.products_image
               from   " . TABLE_PRODUCTS . " p
               where  p.products_status = '1'
               and    p.products_id = '" . (int)$_GET['products_id'] . "'";
      $product_info = $db->Execute($sql);
    
      $products_image = $product_info->fields['products_image'];
      if ($products_image == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == '1') {
        $products_image = PRODUCTS_IMAGE_NO_IMAGE;
      }
      if ($products_image != '') {
        require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE));
    ?>
    <link rel="image_src" href="<?php echo HTTP_SERVER . DIR_WS_CATALOG . $products_image_medium; ?>" />
    <?php  }

    and threw it in the includes/modules/pages/product_info folder.

    I'm not using the FB Like button because I cannot get it to work so I gave up, but it still works if someone shares to FB through AddThis , etc...

  9. #69
    Join Date
    Sep 2007
    Posts
    65
    Plugin Contributions
    0

    Default Re: Facebook "Like" button on every product page?

    Hi khopek,

    thanks for the post.
    I have the FB 'like' button almost working so I'd prefer to stick with that.
    What's not working:
    1. The product name is repeated (and also there is a price and general store info that I would like to remove)
    2. The image posted in facebook is the VISA image:



    Is there a solution to these?
    I would prefer to remove the image altogether if it can't be fixed. Any ideas?

    Thanks.

  10. #70
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Facebook "Like" button on every product page?

    I'm fairly certain the solution I posted for you will work just fine for pulling the correct image. It came from another zenner when I needed help getting the correct image to show when things were shared to facebook. All the code is doing selecting the product id and corresponding image.

 

 
Page 7 of 12 FirstFirst ... 56789 ... LastLast

Similar Threads

  1. Facebook "Like/Share" Plugin - Using OG info for each product?
    By rubiconpeak in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Oct 2012, 12:08 AM
  2. Facebook "Like" Button on each product page - where to add FB details?
    By Yaro in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 6 Jun 2012, 11:26 AM
  3. Facebook "Like" button
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jul 2011, 08:29 PM
  4. Facebook "LIKE" button.
    By Tantirx in forum General Questions
    Replies: 7
    Last Post: 28 Apr 2011, 05:42 AM
  5. Replies: 26
    Last Post: 19 Feb 2010, 02:56 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
  •  
disjunctive-egg