Jump to content

Pinterest media not picking up image


Recommended Posts

I have added sharing icons called Sharrre. It works great, but the button for pinterest doesn't work fully. It says image_url is not there..

 

I have tried calling the products image but I don't know how.. :/

 

Here's how it looks:

 

$('#pinterest').sharrre({
  share: {
    pinterest: true
  },
  template: '<a class="box" href="#"><div class="share btn btn-default btn-pinterest social-sharing"><span></span></div><div class="count" href="#">{total}</div></a>',
  enableHover: false,
  media: '{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}',
  layout: 'horizontal'
  enableTracking: true,
  click: function(api, options){
    api.simulateClick();
    api.openPopup('pinterest');
  }
});
 
I added:   media: '{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}', and I don't know whatelse I can try there to get the products image url. Anyone who knows?
 
Thanks <3
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...