Thread: Rich Pins

Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    5
    Plugin Contributions
    0

    Default Rich Pins

    Hi, everyone!

    I have a couple of questions about rich pins...
    1. Is there a plugin for adding products as Rich Pins to Pinterest? I searched but I didn't find anything...
    2. If there is no plugin, what's the best way to implement this? I know Pinterest says oEmbed or Semantic Markup...

    Any help is appreciated! Please bear with me as I am not good at coding... yet. Thank you so much!

  2. #2
    Join Date
    Feb 2008
    Posts
    43
    Plugin Contributions
    0

    Default Re: Rich Pins

    I've been asked by a friend to work on this and so far I've come up with the following chunk of code that gets dropped into the html_header.php file right under the <title> tag

    So far it's going alright and works enough to get validated however, I have a problem getting the image pulled and I am stumped on what to put in there to call it so it shows up.... if anyone can chime in and help it would be greatly appreciated.

    Other then that I have to get the product availability done and it should be good to go

    This was taken from: http://htmyell.com/autofacebookog-op...-for-zen-cart/ and for the most part works as I said and should work with Facebook as well.

    Code:
    //START OF AOG
    $store_name = "My Online Store"; //e.g. "Samanthas Power Tools", or "Gus' China Shop".
    $store_url = "http://www.yourwebsite.com"; //url to your store (no trailing '/')
    $product_type = "product"; //type of product you're selling (see tutorial)
    $use_addr = 0; //use address? if yes, set $use_addr = 1; (no quotes). edit lines 31-34.
    $use_email = 0; //use email address? if yes, set $use_email = 1; (no quotes) edit line 37.
    $use_phone = 0; //use phone number? if yes, set $use_phone = 1; (no quotes) edit line 40.
     
    //if $use_addr is set to 1;
    $street = "124 Your Street";  //change to your street address.
    $city = "Your City"; //your city
    $state = "FL"; //Your State. Facebook exaple uses abbreviation.
    $zip = "32503"; //you're zip/postal code.
    $country = "USA"; //your country. Facebook example uses acronym.
     
    //if $use_email is set to 1;
    $email_address = "[email protected]"; // your email
     
    //if use_phone is set to 1
    $phone_number = "+1-800-555-1234"; //format: +country code - area code - number.
     
    //no need to edit below this line:
    extract($product_info_metatags->fields);
    extract($category_metatags->fields);
    $prod_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    
    //get defined image or default
    $myImage= zen_get_products_image((int)$_GET['products_id']);
    $img = simplexml_load_string($myImage);
    $img = $img['src'];
    if($this_is_home_page){ $depends = $store_name; $product_type = "website"; }
    else if ($categories_name){  $depends = $categories_name; $product_type = "website";  }
    else if ($products_name){ $depends = $products_name; }
    else { $depends = META_TAG_TITLE; $product_type = "website"; }
    //print_r($product_info_metatags);
    //END OF AOG
     ?>
    <!-- START OF AOG TAGS -->
    Last edited by Wulf359; 1 Jun 2013 at 10:39 AM. Reason: Added Credit

  3. #3
    Join Date
    Dec 2011
    Posts
    92
    Plugin Contributions
    0

    Default Re: Rich Pins

    Quote Originally Posted by Wulf359 View Post
    I've been asked by a friend to work on this and so far I've come up with the following chunk of code that gets dropped into the html_header.php file right under the <title> tag

    So far it's going alright and works enough to get validated however, I have a problem getting the image pulled and I am stumped on what to put in there to call it so it shows up.... if anyone can chime in and help it would be greatly appreciated.

    Other then that I have to get the product availability done and it should be good to go
    Hi Wulf,

    Did you ever get this fully working? If so, would you be willing to share how you achieved it?

    Thanks

  4. #4
    Join Date
    Jun 2005
    Location
    Portland, OR
    Posts
    189
    Plugin Contributions
    0

    Default Re: Rich Pins

    this appears to be working well but it's quickly filling up my cache folder with php warnings. any ideas of what might be causing this?

    [22-Sep-2013 16:37:35 America/Los_Angeles] PHP Warning: extract() expects parameter 1 to be array, null given in /home/me/public_html/includes/templates/new/common/html_header.php on line 51
    [22-Sep-2013 16:37:35 America/Los_Angeles] PHP Warning: extract() expects parameter 1 to be array, null given in /home/me/public_html/includes/templates/new/common/html_header.php on line 52


    lines 51 and 52 are:
    PHP Code:
    extract($product_info_metatags->fields);
    extract($category_metatags->fields); 
    i should add i'm using 1.3.9h, if that matters?
    Last edited by bi11i; 23 Sep 2013 at 05:56 AM. Reason: more info on version

 

 

Similar Threads

  1. Pinterest Rich Pins
    By OLCS in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 1 Jun 2015, 02:02 AM
  2. v139h Pinterest - Product Rich Pins
    By badarac in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 14 Mar 2014, 03:55 AM
  3. Rich Text Editor
    By jdes in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Aug 2010, 05:02 AM
  4. Delivering PINs through email
    By apaminerala in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 27 Sep 2007, 07:13 PM

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